Home

Hallöchen!

Steven D'Aprano writes:

> On Thu, 06 Sep 2007 03:31:43 +0000, Alan Isaac wrote:
>
>>> Their only flaw is that they are not "virtual" (in C++ speak).
>>> In other words, you can't pass a "self" parameter to them.
>>
>> http://www.kylev.com/2004/10/13/fun-with-python-properties/
>
>
> I'm not 100% sure I get what problem that piece of code is
> supposed to solve, but if I have understood it, the obvious
> solution is to use inheritance, not nasty tricks with lambdas.

Yes, it is the right solution for the wrong problem.

Tschö,
Torsten.

--
Torsten Bronger, aquisgrana, europa vetus
Jabber ID: bronger@jabber.org
(See http://ime.webhop.org for ICQ, MSN, etc.)

previous
next

Re: wxPython - drawing without paint event
Re: Order of statements using if
ElementTree surprise
Re: I could use some help making this Python code run faster using only Python code.
Experimentation and dealing with transient broken code (was: Python end of file marker similar to pe
Fundacja Hobbit
Podaruj Zycie
Krwinka
Pajacyk
Fundacja Avalon