Paul Rubin <no.email@nospam.invalid>:

> Ben Finney <ben+pyt...@benfinney.id.au> writes:
>>     generate_id = functools.partial(next, itertools.count())
>
> Is something wrong with:
>
>     >>> g = itertools.count().next

I don't like lambda in Python. However, I like it better than
functools.partial.

Best of all, define an inner function.


Marko
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to