Hacker News new | ask | show | jobs
by abecedarius 4488 days ago
For the 'method object' one, I use nested functions. Python is not Java or Smalltalk.

The @classmethod example I'd write with an ordinary function also, outside the class.