Proposed new syntax

Paul Rubin no.email at nospam.invalid
Thu Aug 24 03:47:09 EDT 2017


Ben Finney <ben+python at benfinney.id.au> writes:
>     generate_id = functools.partial(next, itertools.count())

Is something wrong with:

    >>> g = itertools.count().next
    >>> g()
    0
    >>> g()
    1
    >>> g()
    2
    >>> ...



More information about the Python-list mailing list