summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Belopolsky <alexander.belopolsky@gmail.com>2010-06-26 02:05:19 (GMT)
committerAlexander Belopolsky <alexander.belopolsky@gmail.com>2010-06-26 02:05:19 (GMT)
commitcaf5db79240eea69df51e9d1f969dfd52400f3fc (patch)
tree9d438cd5351febb8dfc641012dfac0da1a98827d
parent32e06811565cd8ed34fd980dc45157958e99bee1 (diff)
downloadcpython-caf5db79240eea69df51e9d1f969dfd52400f3fc.zip
cpython-caf5db79240eea69df51e9d1f969dfd52400f3fc.tar.gz
cpython-caf5db79240eea69df51e9d1f969dfd52400f3fc.tar.bz2
Issue #9024: Fixed mark-up for PyDateTime_IMPORT macro and added that
it is typically used in module initialization function. Thanks Tim Golden for the patch.
-rw-r--r--Doc/c-api/datetime.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/c-api/datetime.rst b/Doc/c-api/datetime.rst
index a91e3f8..c4e1e38 100644
--- a/Doc/c-api/datetime.rst
+++ b/Doc/c-api/datetime.rst
@@ -8,9 +8,9 @@ DateTime Objects
Various date and time objects are supplied by the :mod:`datetime` module.
Before using any of these functions, the header file :file:`datetime.h` must be
included in your source (note that this is not included by :file:`Python.h`),
-and the macro :cfunc:`PyDateTime_IMPORT` must be invoked. The macro puts a
-pointer to a C structure into a static variable, ``PyDateTimeAPI``, that is
-used by the following macros.
+and the macro :cmacro:`PyDateTime_IMPORT` must be invoked, usually as part of
+the module initialisation function. The macro puts a pointer to a C structure
+into a static variable, ``PyDateTimeAPI``, that is used by the following macros.
Type-check macros: