diff options
author | Hugo van Kemenade <hugovk@users.noreply.github.com> | 2022-12-17 07:42:18 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-17 07:42:18 (GMT) |
commit | 0264f634f720fbf12afaf1715a53cd1495fbd85b (patch) | |
tree | 18e683bebd867f05c9f8d83a1c5125fb88663038 /Doc/whatsnew | |
parent | 8edcb30c3f8bdd8099a093146fedbd9b63a3f667 (diff) | |
download | cpython-0264f634f720fbf12afaf1715a53cd1495fbd85b.zip cpython-0264f634f720fbf12afaf1715a53cd1495fbd85b.tar.gz cpython-0264f634f720fbf12afaf1715a53cd1495fbd85b.tar.bz2 |
Docs: Use `PY_VERSION_HEX` for version comparison (#100179)
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r-- | Doc/whatsnew/3.11.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/whatsnew/3.11.rst b/Doc/whatsnew/3.11.rst index 7931988..6f283f1 100644 --- a/Doc/whatsnew/3.11.rst +++ b/Doc/whatsnew/3.11.rst @@ -2319,7 +2319,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 |