[Python-checkins] r59754 - python/trunk/Doc/c-api/utilities.rst
georg.brandl
python-checkins at python.org
Sat Jan 5 22:10:50 CET 2008
Author: georg.brandl
Date: Sat Jan 5 22:10:50 2008
New Revision: 59754
Modified:
python/trunk/Doc/c-api/utilities.rst
Log:
Use markup.
Modified: python/trunk/Doc/c-api/utilities.rst
==============================================================================
--- python/trunk/Doc/c-api/utilities.rst (original)
+++ python/trunk/Doc/c-api/utilities.rst Sat Jan 5 22:10:50 2008
@@ -302,9 +302,9 @@
: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 @@
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()
More information about the Python-checkins
mailing list