mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
bpo-34880: Add the LOAD_ASSERTION_ERROR opcode. (GH-15073)
Fix assert statement misbehavior if AssertionError is shadowed.
This commit is contained in:
parent
8371799e30
commit
ce6a070414
14 changed files with 2664 additions and 2627 deletions
|
@ -2242,6 +2242,13 @@ main_loop:
|
|||
}
|
||||
}
|
||||
|
||||
case TARGET(LOAD_ASSERTION_ERROR): {
|
||||
PyObject *value = PyExc_AssertionError;
|
||||
Py_INCREF(value);
|
||||
PUSH(value);
|
||||
FAST_DISPATCH();
|
||||
}
|
||||
|
||||
case TARGET(LOAD_BUILD_CLASS): {
|
||||
_Py_IDENTIFIER(__build_class__);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue