Commit caf5db79 authored by Alexander Belopolsky's avatar Alexander Belopolsky

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.
parent 32e06811
......@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment