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

Oct. 12, 2005
11:03 a.m.
Greg Ewing wrote:
Guido van Rossum wrote:
I see no need. Code that *doesn't* need Queue but does use threading shouldn't have to pay for loading Queue.py.
However, it does seem awkward to have a whole module providing just one small class that logically is so closely related to other threading facilities.
What we want in this kind of situation is some sort of autoloading mechanism, so you can import something from a module and have it trigger the loading of another module behind the scenes to provide it.
Bad idea unless it is tied to a namespace. So that users knows where this auto-loaded functionality is coming from. Otherwise it's just as bad as 'from xxx import *'. John M. Camara
7194
Age (days ago)
7194
Last active (days ago)
0 comments
1 participants
participants (1)
-
john.m.camara@comcast.net