From 3e7974c417283e3855068fc7769cde893f2865e3 Mon Sep 17 00:00:00 2001 From: Nick Radionov Date: Sun, 1 Apr 2018 11:05:29 +0300 Subject: [PATCH 1/2] Fix typo in the text. --- docs/readability/test_for_object_identity_should_be_is_not.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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``. From 2d0ee1726a1d84089995ec0561b7bb9f8ef15174 Mon Sep 17 00:00:00 2001 From: Nick Radionov Date: Sun, 1 Apr 2018 11:06:47 +0300 Subject: [PATCH 2/2] Fix non-existent multiprocessing.pool in the code sample snippet. --- docs/maintainability/from_module_import_all_used.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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