Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork34.3k
Open
Description
Or is this too pedantic?
GIL enabled:
$ ./pythonPython3.14.0a4+ (heads/main:f3980af38b,Jan212025,11:34:12) [GCC11.4.0]onlinuxType"help","copyright","credits"or"license"formoreinformation.>>>it=iter([1]);list(it)[1]>>>it.__setstate__(0);list(it)[]
GIL disabled:
$ ./pythonPython3.14.0a4+experimentalfree-threadingbuild (heads/main:f3980af38b,Jan212025,11:31:38) [GCC11.4.0]onlinuxType"help","copyright","credits"or"license"formoreinformation.>>>it=iter([1]);list(it)[1]>>>it.__setstate__(0);list(it)[1]
v3.14, current main, its a one line fix.