You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 649748b
Browse filesBrowse the repository at this point in the historyBrowse files
Add Python 3.14 support with free-threaded (no-GIL) compatibility
Python 3.14 compatibility:
- Add PyUnicodeWriter compatibility macros for Python 3.14+
(Python 3.14 introduced public PyUnicodeWriter API, deprecating private _PyUnicodeWriter)
- Add PyHASH_MULTIPLIER compatibility macro for Python 3.13+
(Python 3.13 introduced public PyHASH_MULTIPLIER constant)
- Update ttuple_repr() and ttuple_hash() to use new compatibility macros
Free-threaded Python support:
- Add `freethreading_compatible=True` Cython directive to protocol.pyx
- Disable C freelist in tupleobj.c when Py_GIL_DISABLED is defined
(global static arrays are not thread-safe without the GIL)
Code cleanup (Python 3.9+ minimum):
- Simplify trashcan macros (always use Py_TRASHCAN_BEGIN/END for Python 3.9+)
- Remove obsolete Python 2.x and <3.7 backports from datetime handling
- Remove python.pxd (no longer needed, use standard cpython.datetime)
- Update datetime.pyx to use cpython.datetime's timezone_new and datetime_from_timestamp
- Remove dateutil dependency from tests (datetime.fromisoformat available since 3.7)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
0 commit comments