Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
Closed
Description
Crash report
What happened?
Python3.14.0a6+ (heads/main:0e53038ea82,Mar242025,14:56:34) [GCC7.5.0]onlinuxType"help","copyright","credits"or"license"formoreinformation.>>>classA:...def__anext__(self):...raiseStopAsyncIteration...>>>anext(A(),"a")Segmentationfault (coredumped)
There is no crash withanext(A()) or when directly calling__anext__(). Or when__anext__ is declared withasync def, it's fine. Or when__anext__() doesn't raise, it's also fine.
NB: I haven't bisected the change but itmight be related to what I wrote in76ffaef.
CPython versions tested on:
CPython main branch
Operating systems tested on:
No response
Output from running 'python -VV' on the command line:
No response