diff options
| author | Georg Brandl <georg@python.org> | 2008-01-05 21:10:50 +0000 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2008-01-05 21:10:50 +0000 |
| commit | 7390f6caa0bc8cdb856f1067fbec518aab155752 (patch) | |
| tree | 0933f1bf19fd9888675cb0d2fdcf90209aa82610 /Doc/c-api | |
| parent | 60c19d26928efeff7eeb0123290b3a4705fce53a (diff) | |
| download | cpython-git-7390f6caa0bc8cdb856f1067fbec518aab155752.tar.gz | |
Use markup.
Diffstat (limited to 'Doc/c-api')
| -rw-r--r-- | Doc/c-api/utilities.rst | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/c-api/utilities.rst b/Doc/c-api/utilities.rst index 65adf3198a..f2a2c7422b 100644 --- a/Doc/c-api/utilities.rst +++ b/Doc/c-api/utilities.rst @@ -302,9 +302,9 @@ Importing Modules :func:`compile`, load the module. Return a new reference to the module object, or *NULL* with an exception set if an error occurred. Before Python 2.4, the module could still be created in error cases. Starting with Python 2.4, *name* - is removed from ``sys.modules`` in error cases, and even if *name* was already - in ``sys.modules`` on entry to :cfunc:`PyImport_ExecCodeModule`. Leaving - incompletely initialized modules in ``sys.modules`` is dangerous, as imports of + is removed from :attr:`sys.modules` in error cases, and even if *name* was already + in :attr:`sys.modules` on entry to :cfunc:`PyImport_ExecCodeModule`. Leaving + incompletely initialized modules in :attr:`sys.modules` is dangerous, as imports of such modules have no way to know that the module object is an unknown (and probably damaged with respect to the module author's intents) state. @@ -315,7 +315,7 @@ Importing Modules structures not already created will still not be created. .. versionchanged:: 2.4 - *name* is removed from ``sys.modules`` in error cases. + *name* is removed from :attr:`sys.modules` in error cases. .. cfunction:: long PyImport_GetMagicNumber() |
