summaryrefslogtreecommitdiffstats
path: root/Doc/c-api
diff options
context:
space:
mode:
authorAlexander Belopolsky <alexander.belopolsky@gmail.com>2010-06-26 02:16:57 (GMT)
committerAlexander Belopolsky <alexander.belopolsky@gmail.com>2010-06-26 02:16:57 (GMT)
commit29605717238720b1ad9d5e4f95eedb0420202aad (patch)
tree01e74c7b6a7668c98293bf0a9a00e3bb0aee6557 /Doc/c-api
parenta5b2dcf2b20190e3812fff8f82ca30fc77edb8fc (diff)
downloadcpython-29605717238720b1ad9d5e4f95eedb0420202aad.zip
cpython-29605717238720b1ad9d5e4f95eedb0420202aad.tar.gz
cpython-29605717238720b1ad9d5e4f95eedb0420202aad.tar.bz2
Merged revisions 82238 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r82238 | alexander.belopolsky | 2010-06-25 22:15:07 -0400 (Fri, 25 Jun 2010) | 11 lines Merged revisions 82236 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r82236 | alexander.belopolsky | 2010-06-25 22:05:19 -0400 (Fri, 25 Jun 2010) | 4 lines 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. ........ ................
Diffstat (limited to 'Doc/c-api')
-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 044d3e5..510ef26 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: