[issue34880] About the "assert" bytecode

Steven D'Aprano report at bugs.python.org
Wed Oct 3 03:16:44 EDT 2018


Steven D'Aprano <steve+python at pearwood.info> added the comment:

If I have understood you correctly, you are asking whether it is expected behaviour for assert to use the global AssertionError instead of the built-in AssertionError.

I don't see why it shouldn't. In any case, that behaviour goes back to Python 1.5 and perhaps older.

I don't think this is a bug, so I'm going to close this. If you disagree, please re-open it with more detail explaining why you think it is a bug.

----------
nosy: +steven.daprano
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34880>
_______________________________________


More information about the Python-bugs-list mailing list