summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2020-05-16 20:16:11 +0200
committerStefan Behnel <stefan_ml@behnel.de>2020-05-16 20:16:11 +0200
commit83ac1a27735d562baf58f3577bc933ee7cbb8c29 (patch)
tree99a40a27427757cd6ab80f2654acc3010395a6fc
parentd6e6de9237bde72e7878f7b1fe0e58fdccd36dd2 (diff)
parentb177f2296686833a3903e0b8a7dcf4afbed2e56d (diff)
downloadcython-83ac1a27735d562baf58f3577bc933ee7cbb8c29.tar.gz
Merge branch '0.29.x'
-rw-r--r--CHANGES.rst2
-rw-r--r--Cython/Includes/cpython/datetime.pxd6
2 files changed, 5 insertions, 3 deletions
diff --git a/CHANGES.rst b/CHANGES.rst
index efedfde81..929b70c74 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -455,6 +455,8 @@ Bugs fixed
was not declared as ``extern "C"``.
(Github issue #3414)
+* Three missing timedelta access macros were added in ``cpython.datetime``.
+
0.29.17 (2020-04-26)
====================
diff --git a/Cython/Includes/cpython/datetime.pxd b/Cython/Includes/cpython/datetime.pxd
index 3d561f046..cd0f90719 100644
--- a/Cython/Includes/cpython/datetime.pxd
+++ b/Cython/Includes/cpython/datetime.pxd
@@ -90,9 +90,9 @@ cdef extern from "datetime.h":
int PyDateTime_TIME_GET_MICROSECOND(object o)
# Getters for timedelta (C macros).
- #int PyDateTime_DELTA_GET_DAYS(object o)
- #int PyDateTime_DELTA_GET_SECONDS(object o)
- #int PyDateTime_DELTA_GET_MICROSECONDS(object o)
+ int PyDateTime_DELTA_GET_DAYS(object o)
+ int PyDateTime_DELTA_GET_SECONDS(object o)
+ int PyDateTime_DELTA_GET_MICROSECONDS(object o)
# PyDateTime CAPI object.
PyDateTime_CAPI *PyDateTimeAPI