From 669e69daa0fe4b330417dedaa91f1ff82a921251 Mon Sep 17 00:00:00 2001 From: Oliver Bestwalter Date: Sun, 26 May 2019 12:03:03 +0200 Subject: [PATCH] fix typo in docs (#534) --- docs/init.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/init.rst b/docs/init.rst index 80bf8236..109fcff9 100644 --- a/docs/init.rst +++ b/docs/init.rst @@ -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.