[Python-Dev] @decorators, the PEP and the "options" out there?
Bob Ippolito
bob at redivi.com
Mon Aug 9 03:25:20 CEST 2004
On Aug 8, 2004, at 9:11 PM, Mark 'Kamikaze' Hughes wrote:
> Mon, Aug 09, 2004 at 12:01:47PM +1200 in
> <200408090001.i7901lsx005666 at cosc353.cosc.canterbury.ac.nz>,
> Greg Ewing <greg at cosc.canterbury.ac.nz> spake:
>> IxokaI <ixokai at gmail.com>:
>>> '"define methy1 at staticmethod" is wrong, but "at
>>> staticmethod define methy2" is right.
>> Pardon? They *both* sound like utter nonsense to me.
>> That's the other main objection I have to '@'. I just
>> can't help pronouncing it in my head as "at".
>
> Try pronouncing it as "attribute" (n.) or "attribute" (v.). Either
> one makes sense in context.
Not really. It's actually a transformation, not an attribute. A more
appropriate verb would be "make" or "is", I guess.
@staticmethod
def foo(...):
pass
-bob
More information about the Python-Dev
mailing list