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