remove venv
This commit is contained in:
parent
056387013d
commit
0680c7594e
13999 changed files with 0 additions and 2895688 deletions
|
|
@ -1,12 +0,0 @@
|
|||
from itertools import *
|
||||
|
||||
# Python 3.12:
|
||||
if "batched" not in globals():
|
||||
# https://docs.python.org/3/library/itertools.html#itertools.batched
|
||||
def batched(iterable, n):
|
||||
# batched('ABCDEFG', 3) --> ABC DEF G
|
||||
if n < 1:
|
||||
raise ValueError("n must be at least one")
|
||||
it = iter(iterable)
|
||||
while batch := tuple(islice(it, n)):
|
||||
yield batch
|
||||
Loading…
Add table
Add a link
Reference in a new issue