[Python-Dev] Definining properties - a use case for class decorators?
michele.simionato at gmail.com
Mon Oct 24 09:30:02 CEST 2005
On 10/23/05, Nick Coghlan <ncoghlan at gmail.com> wrote:
> Very nice indeed. I'd be more supportive if it was defined as a new statement
> such as "create" with the syntax:
> create TYPE NAME(ARGS):
I like it, but it would require a new keyword. Alternatively, one
could abuse 'def':
def TYPE NAME(ARGS):
but then people would likely be confused as Skip was, earlier in this thread,
so I guess 'def' is a not an option.
IMHO a new keyword could be justified for such a powerful feature,
but only Guido's opinion counts on this matters ;)
Anyway I expected people to criticize the proposal as too powerful and
dangerously close to Lisp macros.
More information about the Python-Dev