Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
b177f229
Commit
b177f229
authored
May 16, 2020
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Uncomment timedelta macros in datetime.pxd, because why not have them?
parent
98baa2fa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
CHANGES.rst
CHANGES.rst
+2
-0
Cython/Includes/cpython/datetime.pxd
Cython/Includes/cpython/datetime.pxd
+3
-3
No files found.
CHANGES.rst
View file @
b177f229
...
...
@@ -47,6 +47,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)
====================
...
...
Cython/Includes/cpython/datetime.pxd
View file @
b177f229
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment