[Checkins] [zopefoundation/persistent] 0e957a: Add support for Python 3.9.
Jason Madden
noreply at github.com
Wed Feb 19 12:25:43 CET 2020
Branch: refs/heads/issue124
Home: https://github.com/zopefoundation/persistent
Commit: 0e957a4ff23246bdcc9d9e361c6172f4f223e996
https://github.com/zopefoundation/persistent/commit/0e957a4ff23246bdcc9d9e361c6172f4f223e996
Author: Jason Madden <jamadden at gmail.com>
Date: 2020-02-19 (Wed, 19 Feb 2020)
Changed paths:
M CHANGES.rst
M persistent/cPersistence.c
M persistent/cPickleCache.c
M setup.py
Log Message:
-----------
Add support for Python 3.9.
Guard use of the internal functions _Py_*Reference behind correct ifdefs.
Also fix use of deprecated function PyEval_CallObject to be PyObject_CallObject.
Fixes #124
Commit: 6ee588d88a5a61910334ef7766d83708b916510e
https://github.com/zopefoundation/persistent/commit/6ee588d88a5a61910334ef7766d83708b916510e
Author: Jason Madden <jamadden at gmail.com>
Date: 2020-02-19 (Wed, 19 Feb 2020)
Changed paths:
M persistent/cPickleCache.c
Log Message:
-----------
Extra guards around _Py_RefTotal usage.
Testing in a Python 3.9 interpreter with Py_TRACE_REFS defined revealed another issue, the separation of Py_RefTotal out to depend on Py_REF_DEBUG.
Commit: 4a1da4d81a99ec8adc5b3df5a1cf82ae1d2c3bdb
https://github.com/zopefoundation/persistent/commit/4a1da4d81a99ec8adc5b3df5a1cf82ae1d2c3bdb
Author: Jason Madden <jamadden at gmail.com>
Date: 2020-02-19 (Wed, 19 Feb 2020)
Changed paths:
M CHANGES.rst
M persistent/cPickleCache.c
Log Message:
-----------
Remove usage of _Py_NewReference/ForgetReference and _Py_RefTotal.
The extension functions fine even without them even when the core interpreter is built with Py_TRACE_REFS, and it wasn't 100% clear that they were actually being used as expected for modern interpreters. Plus the nesting of defines was getting ugly.
Compare: https://github.com/zopefoundation/persistent/compare/3d222327d07b...4a1da4d81a99
More information about the checkins
mailing list