[Python-Dev] Autoloading? (Making Queue.Queue easier to use) (original) (raw)
Sokolov Yura falcon at intercable.ru
Thu Oct 13 10:48:56 CEST 2005
- Previous message: [Python-Dev] Autoloading? (Making Queue.Queue easier to use)
- Next message: [Python-Dev] Autoloading? (Making Queue.Queue easier to use)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
May be allow modules to define getattr ?
def getattr(thing): try: return some_standart_way(thing) except AttributeError: if thing=="Queue": import sys from Queue import Queue setattr(sys.modules[name],"Queue",Queue) return Queue raise
- Previous message: [Python-Dev] Autoloading? (Making Queue.Queue easier to use)
- Next message: [Python-Dev] Autoloading? (Making Queue.Queue easier to use)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]