Anthony Sottile <asott...@umich.edu> added the comment:
here is a minimal reproduction: ```python def iterboom(): raise AssertionError yield 1 next(1 for x in iterboom()) ``` python 3.9: ``` $ python3.9 t.py Traceback (most recent call last): File "/tmp/rinohtype/t.py", line 5, in <module> next(1 for x in iterboom()) File "/tmp/rinohtype/t.py", line 5, in <genexpr> next(1 for x in iterboom()) File "/tmp/rinohtype/t.py", line 2, in iterboom raise AssertionError AssertionError ``` ``` $ python3.10 t.py Traceback (most recent call last): File "/tmp/rinohtype/t.py", line 5, in <module> next(1 for x in iterboom()) File "/tmp/rinohtype/t.py", line -1, in <genexpr> File "/tmp/rinohtype/t.py", line 2, in iterboom raise AssertionError AssertionError ``` ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue44297> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com