◐ Shell
clean mode source ↗

Message 396118 - Python tracker

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
```