Any syntactic cleanup likely for Py3? And what about doc standards?

Torsten Bronger bronger at physik.rwth-aachen.de
Thu Sep 6 02:38:45 EDT 2007


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 at jabber.org
                      (See http://ime.webhop.org for ICQ, MSN, etc.)



More information about the Python-list mailing list