diff --git a/docs/maintainability/from_module_import_all_used.rst b/docs/maintainability/from_module_import_all_used.rst index 799cd6a..5cc715a 100644 --- a/docs/maintainability/from_module_import_all_used.rst +++ b/docs/maintainability/from_module_import_all_used.rst @@ -44,7 +44,7 @@ In these cases, use one of these idioms: # or import multiprocessing as mp - pool = mp.pool(8) + pool = mp.Pool(8) References diff --git a/docs/readability/test_for_object_identity_should_be_is_not.rst b/docs/readability/test_for_object_identity_should_be_is_not.rst index efd2280..0b9ca52 100644 --- a/docs/readability/test_for_object_identity_should_be_is_not.rst +++ b/docs/readability/test_for_object_identity_should_be_is_not.rst @@ -2,7 +2,7 @@ Test for object identity should be ``is`` ======================================== Testing the identity of two objects can be achieved in python with a special operator called ``is``. -Most prominently it is used to check whether an variable points to ``None``. +Most prominently it is used to check whether a variable points to ``None``. But the operator can examine any kind of identity. This often leads to confusion because equality of two different objects will return ``False``.