]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.8] bpo-39562: Prevent collision of future and compiler flags (GH-19230) (GH-19835)
authorPablo Galindo <Pablogsal@gmail.com>
Fri, 1 May 2020 14:18:27 +0000 (15:18 +0100)
committerGitHub <noreply@github.com>
Fri, 1 May 2020 14:18:27 +0000 (07:18 -0700)
commit5055c274c6e4f2bb8025910dedf0ff89f4bdd170
tree0e8ec7fff9958bd3afcabb38f968fd26eba9dd5f
parent95e208dce505c542b8e4f8f42c57e6d4793b6895
[3.8] bpo-39562: Prevent collision of future and compiler flags (GH-19230) (GH-19835)

The constant values of future flags in the __future__ module
is updated in order to prevent collision with compiler flags.
Previously PyCF_ALLOW_TOP_LEVEL_AWAIT was clashing
with CO_FUTURE_DIVISION..
(cherry picked from commit 4454057269b995341b04d13f0bf97f96080f27d0)

Co-authored-by: Batuhan Taşkaya <batuhanosmantaskaya@gmail.com>
Doc/whatsnew/3.8.rst
Include/code.h
Include/compile.h
Lib/__future__.py
Lib/test/test_future.py
Misc/NEWS.d/next/Core and Builtins/2020-05-01-14-58-16.bpo-39562.KCsX8n.rst [new file with mode: 0644]
Python/bltinmodule.c