Skip to content

reversed is not thread-safe #120608

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
eendebakpt opened this issue Jun 16, 2024 · 0 comments
Closed

reversed is not thread-safe #120608

eendebakpt opened this issue Jun 16, 2024 · 0 comments
Labels
topic-free-threading type-bug An unexpected behavior, bug, or error

Comments

@eendebakpt
Copy link
Contributor

eendebakpt commented Jun 16, 2024

Bug report

Bug description:

The reversed builtin is not thread safe. The same element from a sequence can be returned multiple times.

CPython versions tested on:

CPython main branch

Operating systems tested on:

Windows

Linked PRs

@eendebakpt eendebakpt added the type-bug An unexpected behavior, bug, or error label Jun 16, 2024
ambv added a commit that referenced this issue Mar 12, 2025
Co-authored-by: Sam Gross <[email protected]>
Co-authored-by: Kumar Aditya <[email protected]>
Co-authored-by: Łukasz Langa <[email protected]>
seehwan pushed a commit to seehwan/cpython that referenced this issue Apr 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic-free-threading type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

3 participants