[Python-Dev] Autoloading? (Making Queue.Queue easier to use)

Nick Coghlan ncoghlan at gmail.com
Thu Oct 13 12:51:05 CEST 2005

john.m.camara at comcast.net wrote:
> It sounds like he feels Queue should just be part of threading but queues
> can be used in other contexts besides threading.  So having separate
> modules is a good thing.

If threads aren't involved, you should use "collections.deque" directly, 
rather than going through "Queue.Queue". The latter jumps through a lot of 
hoops in order to be thread-safe.

This confusion is one of the reasons I have a problem with the current name of 
the Queue module.


Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia

More information about the Python-Dev mailing list