Ben Finney <[email protected]> writes: > generate_id = functools.partial(next, itertools.count())
Is something wrong with:
>>> g = itertools.count().next
>>> g()
0
>>> g()
1
>>> g()
2
>>> ...
--
https://mail.python.org/mailman/listinfo/python-list
