Python Best Practice Patterns
Several of those patterns are incomplete or frowned upon:* if a method does not use the object's state (no `self` usage) make it a `class-` or `staticmethod`.* Some magic methods are presented. There's more to them[0].* one should not write `class MyClass:` but `class MyClass(object):` (new style class[1])* the last one (`return None`) make me very dubious* Cascading methods: that's a big no. The idiom is that if a method may change the state of the object then it should return None (eg `set.add`)0: well-written and comprehensive guide: http://www.rafekettler.com/magicmethods.html1: http://www.python.org/doc/newstyle/