[Python-Dev] syntactic sugar idea for {static,class}methods (original) (raw)
Barry A. Warsaw barry@zope.com
Tue, 12 Feb 2002 13:44:11 -0500
- Previous message: [Python-Dev] syntactic sugar idea for {static,class}methods
- Next message: [Python-Dev] syntactic sugar idea for {static,class}methods
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
"SM" == Skip Montanaro <skip@pobox.com> writes:
MH> s C(object): def static(arg) [staticmethod]: return 1 + arg
BAW> Why the square brackets though?
SM> I believe Guido addressed this in his DevDay presentation.
SM> The list construct is to allow future extensions without
SM> requiring parser changes.
Okie dokie. -Barry
- Previous message: [Python-Dev] syntactic sugar idea for {static,class}methods
- Next message: [Python-Dev] syntactic sugar idea for {static,class}methods
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]