Why Explicit self Has to Stay

Guido van Rossum: When a method definition is decorated, we don’t know whether to automatically give it a ‘self’ parameter or not: the decorator could turn the function into a static method (which has no ‘self’), or a class method (which has a funny kind of self that refers to a class instead of an … Continue reading Why Explicit self Has to Stay