Another Language Change for Debate
Courageous
jkraska at san.rr.com
Sat Jan 12 12:44:49 EST 2002
>So here's my idea. Allow the following syntax:
>
>class MyClass(OtherClass):
> def self.addItems( newItems ):
> self.items += newItems
I wouldn't really change Python in this particular
way, but it does have a certain appeal to it. For example, it
could also be written...
...
def MyClass.addItems ( ...
...
...to define a static function.
Face it, though, one way or another all of these various
kinds of things are just different kinds of syntactic sugar.
*shrug*
C//
More information about the Python-list
mailing list