Proposed new syntax

Stephan Houben stephanh42 at gmail.com.invalid
Wed Aug 23 11:35:52 EDT 2017


Op 2017-08-23, Ben Finney schreef <ben+python at benfinney.id.au>:
> Could you be convinced to instead do::
>
>     import functools
>     import itertools
>
>     generate_id = functools.partial(next, itertools.count())

I certainly could be, but I was so far unaware of the desirability to do so.

Stephan



More information about the Python-list mailing list