PEP 359: The "make" Statement
Steven Bethard
steven.bethard at gmail.com
Fri Apr 14 16:44:54 EDT 2006
Rob Williscroft wrote:
> Steven Bethard wrote in news:Pfydnbapx4Bi7qPZnZ2dnUVZ_t-dnZ2d at comcast.com
> in comp.lang.python:
>
>> Open Issues
>> ===========
>>
>> Does the ``make`` keyword break too much code? Originally, the make
>> statement used the keyword ``create`` (a suggestion due to Nick
>> Coghlan). However, investigations into the standard library [4]_ and
>> Zope+Plone code [5]_ revealed that ``create`` would break a lot more
>> code, so ``make`` was adopted as the keyword instead. However, there
>> are still a few instances where ``make`` would break code. Is there a
>> better keyword for the statement?
>>
>
> I don't know wether this has been suggested or not, but
> what about def:
>
> def namespace ns:
> x = 1
>
> def type blah(object):
> pass
>
> def property x:
> def get():
> return ns.x
I think that's probably a bad idea because it would make people think
that the statement acts like a function definition, when it actually
acts like a class definition.
STeVe
More information about the Python-list
mailing list