]> granicus.if.org Git - python/commit
bpo-34880: Add the LOAD_ASSERTION_ERROR opcode. (GH-15073)
authorZackery Spytz <zspytz@gmail.com>
Sun, 25 Aug 2019 09:44:09 +0000 (03:44 -0600)
committerSerhiy Storchaka <storchaka@gmail.com>
Sun, 25 Aug 2019 09:44:09 +0000 (12:44 +0300)
commitce6a070414ed1e1374d1e6212bfbff61b6d5d755
tree55f9d0c54b98ad3c95e78a235668f6dbc314087b
parent8371799e300475c8f9f967e900816218d3500e5d
bpo-34880: Add the LOAD_ASSERTION_ERROR opcode. (GH-15073)

Fix assert statement misbehavior if AssertionError is shadowed.
14 files changed:
Doc/library/dis.rst
Doc/whatsnew/3.9.rst
Include/opcode.h
Lib/importlib/_bootstrap_external.py
Lib/opcode.py
Lib/test/test_dis.py
Lib/test/test_exceptions.py
Misc/NEWS.d/next/Core and Builtins/2019-08-01-10-45-51.bpo-34880.u_x_CG.rst [new file with mode: 0644]
Python/ceval.c
Python/compile.c
Python/importlib.h
Python/importlib_external.h
Python/importlib_zipimport.h
Python/opcode_targets.h