mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Docs: Use PY_VERSION_HEX
for version comparison (GH-100179)
(cherry picked from commit 0264f634f7
)
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
This commit is contained in:
parent
370498b12e
commit
bf0a334c4e
2 changed files with 3 additions and 1 deletions
|
@ -2320,7 +2320,7 @@ Porting to Python 3.11
|
|||
can define the following macros and use them throughout
|
||||
the code (credit: these were copied from the ``mypy`` codebase)::
|
||||
|
||||
#if PY_MAJOR_VERSION >= 3 && PY_MINOR_VERSION >= 8
|
||||
#if PY_VERSION_HEX >= 0x03080000
|
||||
# define CPy_TRASHCAN_BEGIN(op, dealloc) Py_TRASHCAN_BEGIN(op, dealloc)
|
||||
# define CPy_TRASHCAN_END(op) Py_TRASHCAN_END
|
||||
#else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue