Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.3k
Closed
Description
Bug report
Bug description:
defgen():yield1deff():breakpoint()g=gen()try:g.throw(TypeError)exceptTypeError:pass# line 10f()
b 10cTraceback (most recent call last): File "/home/gaogaotiantian/programs/mycpython/scrabble.py", line 12, in <module> f() ~^^ File "/home/gaogaotiantian/programs/mycpython/scrabble.py", line 8, in f g.throw(TypeError) ~~~~~~~^^^^^^^^^^^ File "/home/gaogaotiantian/programs/mycpython/scrabble.py", line 1, in gen def gen():ValueError: Cannot disable PY_THROW events. Callback removed.PY_THROW can't be disabled.
CPython versions tested on:
CPython main branch
Operating systems tested on:
Linux