quantifiedcode / python-anti-patterns

An open collection of Python anti-patterns and worst practices.
https://quantifiedcode.github.io/python-anti-patterns
Other
1.71k stars 249 forks source link

__init__ should return None #11

Closed arand closed 9 years ago

arand commented 9 years ago

init should return None or omitted entirely.

lunemec commented 9 years ago

Yes, it actually must return None, if you try to return something, you'll raise exception.

adewes commented 9 years ago

Thanks @arand, @lunemec seems we fell for our own anti-pattern here :D