News for hackers. Stuff that matters.
Re:Reasons Python Sucks by lmm on Tuesday December 18, 2018 @11:04AM (#18707543)
> Static method? @staticmethod

> Static variable? declare it outside of your methods but inside your class

Sounds like you're still thinking in Java :). A static method is rarely what you want (and if you do you can put it on the class like for variables); functions are first-class so you can just put them in your module.

There are no comments on this comment yet.