Python module question

Rodolfo S. Carvalho rodolfo.ueg at gmail.com
Mon Feb 5 14:43:54 EST 2007


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
     Web Developer
rodolfo.ueg at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20070205/eef91187/attachment.html>


More information about the Python-list mailing list