0

Is there any reason why this syntax wouldn't be possible?

def myclass.method(self):
    pass

Instead, python currently uses assignment, such as:

def f(self):
    pass
myclass.method = f
benjimin
  • 2,128
  • 17
  • 35

0 Answers0