fix typo in docs (#534)

This commit is contained in:
Oliver Bestwalter 2019-05-26 12:03:03 +02:00 committed by Hynek Schlawack
parent 205e6ed088
commit 669e69daa0
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
Initialization
==============
In Python, instance intialization happens in the ``__init__`` method.
In Python, instance initialization happens in the ``__init__`` method.
Generally speaking, you should keep as little logic as possible in it, and you should think about what the class needs and not how it is going to be instantiated.
Passing complex objects into ``__init__`` and then using them to derive data for the class unnecessarily couples your new class with the old class which makes it harder to test and also will cause problems later.