Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

list iterator__setstate__() differs for exhausted iterator GIL vs. non-GIL #129139

Open
Labels
@tom-pytel

Description

@tom-pytel

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.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2026 Movatter.jp