[prev in list] [next in list] [prev in thread] [next in thread]
List: python-list
Subject: Re: call by reference howto????
From: aahz () pythoncraft ! com (Aahz)
Date: 2008-02-29 18:19:44
Message-ID: fq9ic0$sh8$1 () panix3 ! panix ! com
[Download RAW message or body]
In article <mailman.1430.1204294373.9267.python-list@python.org>,
Steve Holden <steve@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@pythoncraft.com) <*> http://www.pythoncraft.com/
"All problems in computer science can be solved by another level of
indirection." --Butler Lampson
--
http://mail.python.org/mailman/listinfo/python-list
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic