Another Language Change for Debate

Alex Martelli aleax at aleax.it
Fri Jan 11 18:05:53 EST 2002


IB wrote:

> Hello, Michael:
> 
> My 2 cents are that we have to ask one more question - what other
> benefits would there be if such syntax would be allowed?

Playing devil's advocate:

class sic(object):
    def sic.aclassmethod(): pass
    def self.anormalmethod(): pass

Isn't this better than the current

class sic(object):
    def aclassmethod(klass): pass
    aclassmethod = classmethod(aclassmethod)
    def anormalmethod(self): pass


Alex





More information about the Python-list mailing list