Skip to content

Commit 3b0514d

Browse files
encukouAA-Turner
andauthored
Apply suggestions from code review
Co-authored-by: Adam Turner <[email protected]>
1 parent 3fc9447 commit 3b0514d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Doc/c-api/module.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -294,12 +294,12 @@ The distinction is similar to the :py:meth:`~object.__new__` and
294294
Unlike modules created using single-phase initialization, these modules are not
295295
singletons.
296296
For example, if the :py:attr:`sys.modules` entry is removed and the module
297-
is re-imported, a new module object is created, and, typically, populated with
298-
fresh method and class objects.
297+
is re-imported, a new module object is created, and typically populated with
298+
fresh method and type objects.
299299
The old module is subject to normal garbage collection.
300300
This mirrors the behavior of pure-Python modules.
301301
302-
Additional module instances may also be created in
302+
Additional module instances may be created in
303303
:ref:`sub-interpreters <sub-interpreter-support>`
304304
or after after Python runtime reinitialization
305305
(:c:func:`Py_Finalize` and :c:func:`Py_Initialize`).
@@ -312,7 +312,7 @@ and all state, including references to Python objects, should be specific to
312312
a particular module instance.
313313
See :ref:`isolating-extensions-howto` for more details and a practical guide.
314314
315-
A simpler way to avoid the issues is
315+
A simpler way to avoid these issues is
316316
:ref:`raising an error on repeated initialization <isolating-extensions-optout>`.
317317
318318
All modules created using multi-phase initialization are expected to support

0 commit comments

Comments
 (0)