[EMAIL PROTECTED] (Aahz) writes: > This is one case where'd recommend using a plan RLock() instead of using > Queue -- the RLock() will be more efficient...
I'm starting to believe the GIL covers up an awful lot of sloppiness in Python. I wonder if there could be a decorator approach: @synchronized def counter(): t = itertools.count() while True: yield t.next() or better yet, counter = synchronized(itertools.count()) -- http://mail.python.org/mailman/listinfo/python-list