Possible PEP: Improve classmethod/staticmethod syntax
Robin Becker
robin at jessikat.fsnet.co.uk
Wed Jun 4 12:27:29 EDT 2003
In article <20030603164521903-0400 at braeburn.themorgue.org>, Kevin Smith
<Kevin.Smith at sas.com> writes
.....
>A new proposed syntax for method modifiers is as follows:
>
> def classmethod foo(cls):
> <code goes here>
>
> def staticmethod bar():
> <code goes here>
>
.....
why not
classdef foo(cls):
staticdef bar():
or just
classmethod foo(cls):
staticmethod bar():
--
Robin Becker
More information about the Python-list
mailing list