call by reference howto????

Aahz aahz at pythoncraft.com
Fri Feb 29 13:19:44 EST 2008


In article <mailman.1430.1204294373.9267.python-list at python.org>,
Steve Holden  <steve at holdenweb.com> wrote:
>
>As near as I can make out you appear to want to have thang delegate 
>certain of its method to thang.this. The easiest way to do that would be 
>to implement a __getattr__() in the Thang class to do so, but remember 
>that it won't be called for cases where the class has a real attribute 
>with the correct name.

...unless thang is a new-style class using __getattribute__()...

(Just a drive-by nitpicking. ;-)
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

"All problems in computer science can be solved by another level of     
indirection."  --Butler Lampson



More information about the Python-list mailing list