Suggested generator to add to threading module.
amuys at shortech.com.au
Fri Jan 16 05:58:43 CET 2004
Found myself needing serialised access to a shared generator from
multiple threads. Came up with the following
lock = threading.Lock()
next = gen.next()
I considered suggesting it for itertools, but really it's thread
specific so I am suggesting it for the threading module.
More information about the Python-list