Staging
v0.5.1
https://github.com/python/cpython
Revision 4d8c8c0ad6163c24136d3419eb04f310b31f7e64 authored by Paul Ganssle on 27 April 2019, 19:39:40 UTC, committed by Berker Peksag on 27 April 2019, 19:39:40 UTC
In the process of converting the date.fromtimestamp function to use
argument clinic in GH-8535, the C API for PyDate_FromTimestamp was
inadvertently changed to expect a timestamp object rather than an
argument tuple.

This PR fixes this backwards-incompatible change by adding a new wrapper
function for the C API function that unwraps the argument tuple and
passes it to the underlying function.

This PR also adds tests for both PyDate_FromTimestamp and
PyDateTime_FromTimestamp to prevent any further regressions.
1 parent 5c403b2
History
Tip revision: 4d8c8c0ad6163c24136d3419eb04f310b31f7e64 authored by Paul Ganssle on 27 April 2019, 19:39:40 UTC
bpo-36025: Fix PyDate_FromTimestamp API (GH-11922)
Tip revision: 4d8c8c0
File Mode Size
.azure-pipelines
.github
Doc
Grammar
Include
Lib
Mac
Misc
Modules
Objects
PC
PCbuild
Parser
Programs
Python
Tools
m4
.gitattributes -rw-r--r-- 1.8 KB
.gitignore -rw-r--r-- 1.5 KB
.travis.yml -rw-r--r-- 7.9 KB
CODE_OF_CONDUCT.md -rw-r--r-- 609 bytes
LICENSE -rw-r--r-- 12.5 KB
Makefile.pre.in -rw-r--r-- 64.6 KB
README.rst -rw-r--r-- 9.8 KB
aclocal.m4 -rw-r--r-- 10.7 KB
config.guess -rwxr-xr-x 43.1 KB
config.sub -rwxr-xr-x 35.4 KB
configure -rwxr-xr-x 491.2 KB
configure.ac -rw-r--r-- 162.2 KB
install-sh -rwxr-xr-x 15.0 KB
pyconfig.h.in -rw-r--r-- 43.4 KB
setup.py -rw-r--r-- 99.4 KB

README.rst

back to top