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

skip@pobox.com skip at pobox.com
Wed Oct 12 18:02:38 CEST 2005


    Guido> At some level, Queue is just an application of threading, while
    Guido> the threading module provides the basic API ...

While Queue is built on top of threading Lock and Condition objects, it is a
highly useful synchronization mechanism in its own right, and is almost
certainly easier to use correctly (at least for novices) than the
lower-level synchronization objects the threading module provides.  If
threading is the "friendly" version of thread, perhaps Queue should be
considered the "friendly" synchronization object.

(I'm playing the devil's advocate here.  I'm fine with Queue being where it
is.)

Skip


More information about the Python-Dev mailing list