]> granicus.if.org Git - python/commitdiff
Merged revisions 82236 via svnmerge from
authorAlexander Belopolsky <alexander.belopolsky@gmail.com>
Sat, 26 Jun 2010 02:12:19 +0000 (02:12 +0000)
committerAlexander Belopolsky <alexander.belopolsky@gmail.com>
Sat, 26 Jun 2010 02:12:19 +0000 (02:12 +0000)
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.
........

Doc/c-api/datetime.rst

index a91e3f80dfb1fbd6f0bf1436a6acf010b2405e57..c4e1e381a87c416b857618d76554d94810dcac2a 100644 (file)
@@ -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: