@@ -1,8 +1,8 @@ | |||
| 1 | 1 | PEP 499 implemented: the "python -m module_name" command line option now binds the imported module | |
| 2 | 2 | to both ``sys.modules['__main__]'`` and additionally to ``sys.modules['module_name']``. | |
| 3 | - This prevents subtle bug that arise when a later import of the module by name within the code | ||
| 3 | + This prevents a subtle bug that arise when a later import of the module by name within the code | ||
| 4 | 4 | formerly produced a distinct instance of the module, | |
| 5 | 5 | which led to hard to debug issues where the object resolved by ``__main__.obj_name`` | |
| 6 | 6 | was distinct from the object resolved by ``module_name.obj_name``. | |
| 7 | - This led to subtle breakage of code which relied on objtect identity tests, | ||
| 7 | + This led to subtle breakage of code which relied on object identity tests, | ||
| 8 | 8 | particularly ``isinstance()`` tests and ``try/except`` clauses. | |
0 commit comments