diff options
author | Paul Ganssle <pganssle@users.noreply.github.com> | 2018-11-13 08:02:25 (GMT) |
---|---|---|
committer | Victor Stinner <vstinner@redhat.com> | 2018-11-13 08:02:25 (GMT) |
commit | 0d12672b30b8c6c992bef7564581117ae83e11ad (patch) | |
tree | d2b7a03d5264c1d4cf3b5f786ca15ef9fb1cad44 /Python/codecs.c | |
parent | 3015fb8ce4d25603434b9b44bb7effb98a481532 (diff) | |
download | cpython-0d12672b30b8c6c992bef7564581117ae83e11ad.zip cpython-0d12672b30b8c6c992bef7564581117ae83e11ad.tar.gz cpython-0d12672b30b8c6c992bef7564581117ae83e11ad.tar.bz2 |
bpo-35081: Remove Py_BUILD_CORE from datetime.h (GH-10416)
Datetime macros like PyDate_Check() have two implementations, one using
the C API capsule and one using direct access to the datetime type
symbols defined in _datetimemodule.c. Since the direct access versions
of the macros are only used in _datetimemodule.c, they have been moved
out of "datetime.h" and into _datetimemodule.c.
The _PY_DATETIME_IMPL macro is currently necessary in order to avoid
both duplicate definitions of these macros in _datetimemodule.c and
unnecessary declarations of C API capsule-related macros and varibles in
datetime.h.
Co-Authored-By: Victor Stinner <vstinner@redhat.com>
Diffstat (limited to 'Python/codecs.c')
0 files changed, 0 insertions, 0 deletions