Re: Any syntactic cleanup likely for Py3? And what about doc standards?
- From: Torsten Bronger <bronger@xxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 06 Sep 2007 08:38:45 +0200
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@xxxxxxxxxx
(See http://ime.webhop.org for ICQ, MSN, etc.)
.
- References:
- Re: Any syntactic cleanup likely for Py3? And what about doc standards?
- From: Ferenczi Viktor
- Re: Any syntactic cleanup likely for Py3? And what about doc standards?
- From: Torsten Bronger
- Re: Any syntactic cleanup likely for Py3? And what about doc standards?
- From: Ferenczi Viktor
- Re: Any syntactic cleanup likely for Py3? And what about doc standards?
- From: Torsten Bronger
- Re: Any syntactic cleanup likely for Py3? And what about doc standards?
- From: Alan Isaac
- Re: Any syntactic cleanup likely for Py3? And what about doc standards?
- From: Steven D'Aprano
- Re: Any syntactic cleanup likely for Py3? And what about doc standards?
- Prev by Date: Re: Any syntactic cleanup likely for Py3? And what about doc standards?
- Next by Date: Re: We need PIGs :)
- Previous by thread: Re: Any syntactic cleanup likely for Py3? And what about doc standards?
- Next by thread: Re: Any syntactic cleanup likely for Py3? And what about doc standards?
- Index(es):
Relevant Pages
|
|