[Checkins] [zopefoundation/persistent] 0e957a: Add support for Python 3.9.

Jason Madden noreply at github.com
Fri Feb 21 12:32:03 CET 2020


  Branch: refs/heads/master
  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.


  Commit: 1a02a9fb1145db69af2b444a443ebafabd4eb316
      https://github.com/zopefoundation/persistent/commit/1a02a9fb1145db69af2b444a443ebafabd4eb316
  Author: Jason Madden <jamadden at gmail.com>
  Date:   2020-02-21 (Fri, 21 Feb 2020)

  Changed paths:
    M CHANGES.rst
    M persistent/cPersistence.c
    M persistent/cPickleCache.c
    M setup.py

  Log Message:
  -----------
  Merge pull request #129 from zopefoundation/issue124

Fix issue 124


Compare: https://github.com/zopefoundation/persistent/compare/a6a18eaa8f34...1a02a9fb1145


More information about the checkins mailing list