Python module question

Gabriel Genellina gagsl-py at yahoo.com.ar
Mon Feb 5 19:43:13 EST 2007


En Mon, 05 Feb 2007 16:43:54 -0300, Rodolfo S. Carvalho  
<rodolfo.ueg at gmail.com> escribió:

> My question is: can I code a method __getattr__() to change the behavior  
> of
> the 'import' command?

You can play with __import__, imp and ihooks, but could you explain better  
what you need?
Perhaps you don't ever need to change how import works.

-- 
Gabriel Genellina




More information about the Python-list mailing list