Hacker News new | past | comments | ask | show | jobs | submit login

Class methods are not so useful in python as in java and C#.

I think that classmethods was added only for java/C# folks.

In fact it's always better just to combine defs in module and use it as module.method.

I like the approach in Scala with "objects" (Scala-singletones).

About "self": I don't understand you. Can you show me a language with optional (not forced) OOP, that lets you bloody patch objects and classes that deals with this problem in better way?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: