Re: Python module question

2007-02-05 Thread Gabriel Genellina
En Mon, 05 Feb 2007 16:43:54 -0300, Rodolfo S. Carvalho <[EMAIL PROTECTED]> 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

Python module question

2007-02-05 Thread Rodolfo S. Carvalho
Hi folks I have a question for this mailing list. When I'm writing a class, I can rewrite the method __getattr__() to modify the object's method/attribute access behavior. My question is: can I code a method __getattr__() to change the behavior of the 'import' command? -- Rodolfo Carvalho