Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Python has public/protected/private as well as static/class/instance methods.

> doesn't require you to have object instances to call non-static functions

Not sure, what you mean, because you need to pass something for self?

Either:

    obj.foo (args...);
Or:

   cls.foo (obj, args...);


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

Search: