Sokolov Yura wrote:
> 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

I proposed something like this in the RFE tracker a while ago, but no
one commented on it.

Reinhold

-- 
Mail address is perfectly valid!

_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to