[Python-Dev] Autoloading? (Making Queue.Queue easier to use) (original) (raw)
Reinhold Birkenfeld reinhold-birkenfeld-nospam at wolke7.net
Fri Oct 14 19:30:05 CEST 2005
- Previous message: [Python-Dev] Autoloading? (Making Queue.Queue easier to use)
- Next message: [Python-Dev] AST branch update
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Sokolov Yura wrote:
May be allow modules to define getattr ?
def getattr(thing): try: return somestandartway(thing) except AttributeError: if thing=="Queue": import sys from Queue import Queue setattr(sys.modules[name],"Queue",Queue) return Queue raise
I proposed something like this in the RFE tracker a while ago, but no one commented on it.
Reinhold
-- Mail address is perfectly valid!
- Previous message: [Python-Dev] Autoloading? (Making Queue.Queue easier to use)
- Next message: [Python-Dev] AST branch update
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]