[Python-Dev] Autoloading? (Making Queue.Queue easier to use)
Greg Ewing
greg.ewing at canterbury.ac.nz
Thu Oct 13 05:44:25 CEST 2005
john.m.camara at comcast.net wrote:
> I guess from Greg’s comments I’m not sure if he wants to
>
> import threading
>
> and as a result
>
> ‘Queue’ becomes available in the local namespace
No!!!
> Queue becomes part of the threading namespace and bound/loaded
> when it is first needed. Queue then becomes accessible through
> ‘threading.Queue’
Yes.
--
Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury, | A citizen of NewZealandCorp, a |
Christchurch, New Zealand | wholly-owned subsidiary of USA Inc. |
greg.ewing at canterbury.ac.nz +--------------------------------------+
More information about the Python-Dev
mailing list