bpo-34880: Add the LOAD_ASSERTION_ERROR opcode. (GH-15073)
Fix assert statement misbehavior if AssertionError is shadowed.
diff --git a/Doc/library/dis.rst b/Doc/library/dis.rst
index 4a20245..b5243d0 100644
--- a/Doc/library/dis.rst
+++ b/Doc/library/dis.rst
@@ -752,6 +752,14 @@
from the block stack.
+.. opcode:: LOAD_ASSERTION_ERROR
+
+ Pushes :exc:`AssertionError` onto the stack. Used by the :keyword:`assert`
+ statement.
+
+ .. versionadded:: 3.9
+
+
.. opcode:: LOAD_BUILD_CLASS
Pushes :func:`builtins.__build_class__` onto the stack. It is later called