Possible PEP: Improve classmethod/staticmethod syntax

Gerrit Holl gerrit at nl.linux.org
Wed Jun 4 23:22:55 CEST 2003

Robin Becker schreef op woensdag  4 juni om 19:04:17 +0000:
> why not
>         classdef foo(cls):
>         staticdef bar():
> or just
>         classmethod foo(cls):
>         staticmethod bar():

That would introduce a new keywoard, and it is a noble goal to have
at least keywords as possible (why are print, exec, import keywords...?)


50. If he give a cultivated corn-field or a cultivated sesame-field,
the corn or sesame in the field shall belong to the owner of the field,
and he shall return the money to the merchant as rent.
        -- 1780 BC, Hammurabi, Code of Law
Asperger Syndroom - een persoonlijke benadering:
Het zijn tijden om je zelf met politiek te bemoeien:

More information about the Python-list mailing list