Hi,
when I read docs about itertools, something makes me misunderstand:
1, Why Arguments do not write in () behind function name? Better to keep docs style consistently.
In other place it's like: https://docs.python.org/3.13/library/stdtypes.html#index-22
or https://docs.python.org/3.13/library/math.html#module-math
2, The Example or Results is not what I get in interactive interpreter!
e.g.
1st, itertools functions including batched() return an iterator,must use next() or list()... to read elements
2nd,it's ('A', 'B', 'C') ('D', 'E', 'F') ('G',), 3 tuples with string elements each , NOT 'ABC' 'DEF' 'G', NOT 'ABC DEF G'
e.g.
it's ('A','B'), NOT 'AB',maybe return ('AB','AC','AD','BC','BD','CD') is better,but the func does not do now.
Strictly speaking, the itertools docs is wrong. As official docs, eg given should tell greenhand exactly what language return.