Op 2017-08-23, Ben Finney schreef <ben+pyt...@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
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to