[Python-Dev] Re: Plea for function/method syntax sugar (PEP 318, with a different syntax)

Bob Ippolito bob at redivi.com
Thu Feb 19 12:24:06 EST 2004


On Feb 19, 2004, at 12:06 PM, Michael Hudson wrote:

> Bob Ippolito <bob at redivi.com> writes:
>
>> Also note that the patch also adds the same sugar to classes, so you
>> could use it in lieu of metaclasses for some cases (like transforming
>> some members that follow a naming convention into properties):
>>
>>>>> class Foo(object) [type]:
>> ...   pass
>> ...
>>>>> Foo
>> <type 'type'>
>
> FWIW, I'm rather less convinced this is useful.

Me too, because you can do it with metaclasses... but then again, 
composing metaclasses is a pain in the butt.

-bob




More information about the Python-Dev mailing list