Simple thread-safe counter?
Heiko Wundram
modelnine at ceosg.de
Sat Apr 2 18:00:26 EST 2005
Am Sonntag, 3. April 2005 00:57 schrieb Heiko Wundram:
> <snip>
> or
Make that:
create_counter = syncronized_iterator(itertools.count)
and
counter = create_counter()
to create the actual counter regardless of iterator.
--
--- Heiko.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20050403/aa65d850/attachment.sig>
More information about the Python-list
mailing list