René's URL Explorer Experiment


Title: gh-120608: Make reversed thread-safe by eendebakpt · Pull Request #120609 · python/cpython · GitHub

Open Graph Title: gh-120608: Make reversed thread-safe by eendebakpt · Pull Request #120609 · python/cpython

X Title: gh-120608: Make reversed thread-safe by eendebakpt · Pull Request #120609 · python/cpython

Description: The reversed builtin is not thread-safe. In reversed_next the object index can be read and decremented by multiple threads leading to incorrect results. The part that needs to happen atomically is ...

Open Graph Description: The reversed builtin is not thread-safe. In reversed_next the object index can be read and decremented by multiple threads leading to incorrect results. The part that needs to happen atomically is ...

X Description: The reversed builtin is not thread-safe. In reversed_next the object index can be read and decremented by multiple threads leading to incorrect results. The part that needs to happen atomically is ...

Opengraph URL: https://github.com/python/cpython/pull/120609

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:ebcf8e47-fa3f-c7a5-2a29-42a4a3c68349
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD1C8:3A35C6:2167E28:2BE3178:696B0BC1
html-safe-nonce91a058e8f915dafbf45a8f871eff2b26f41d03ae2198565a7224b7be106ea2a1
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMUM4OjNBMzVDNjoyMTY3RTI4OjJCRTMxNzg6Njk2QjBCQzEiLCJ2aXNpdG9yX2lkIjoiODE2MjQ1OTM0OTM5Mzc2NTc3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac753cac97107d476a76ea7e0e6f5d3177ac247575b6f359dd2624e904dc20aeea
hovercard-subject-tagpull_request:1923058535
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/cpython/120609/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/2eaeefc95a1f8712e95cca61198e5e0d8d11259b3306d73aeb127901c8f43b73/python/cpython/pull/120609
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/2eaeefc95a1f8712e95cca61198e5e0d8d11259b3306d73aeb127901c8f43b73/python/cpython/pull/120609
og:image:altThe reversed builtin is not thread-safe. In reversed_next the object index can be read and decremented by multiple threads leading to incorrect results. The part that needs to happen atomically is ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameeendebakpt
hostnamegithub.com
expected-hostnamegithub.com
None5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d
turbo-cache-controlno-preview
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release82560a55c6b2054555076f46e683151ee28a19bc
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/120609#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F120609
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F120609
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/120609
Reloadhttps://github.com/python/cpython/pull/120609
Reloadhttps://github.com/python/cpython/pull/120609
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/120609
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 33.9k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 71.1k https://github.com/login?return_to=%2Fpython%2Fcpython
Code https://github.com/python/cpython
Issues 5k+ https://github.com/python/cpython/issues
Pull requests 2.1k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects 31 https://github.com/python/cpython/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/python/cpython/security
Please reload this pagehttps://github.com/python/cpython/pull/120609
Insights https://github.com/python/cpython/pulse
Code https://github.com/python/cpython
Issues https://github.com/python/cpython/issues
Pull requests https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
Jump to bottomhttps://github.com/python/cpython/pull/120609#issue-comment-box
eendebakpthttps://github.com/eendebakpt
python:mainhttps://github.com/python/cpython/tree/main
eendebakpt:reverse_fthttps://github.com/eendebakpt/cpython/tree/reverse_ft
gh-120608: Make reversed thread-safe https://github.com/python/cpython/pull/120609#top
eendebakpthttps://github.com/eendebakpt
python:mainhttps://github.com/python/cpython/tree/main
eendebakpt:reverse_fthttps://github.com/eendebakpt/cpython/tree/reverse_ft
Conversation 11 https://github.com/python/cpython/pull/120609
Commits 4 https://github.com/python/cpython/pull/120609/commits
Checks 0 https://github.com/python/cpython/pull/120609/checks
Files changed https://github.com/python/cpython/pull/120609/files
Please reload this pagehttps://github.com/python/cpython/pull/120609
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
https://github.com/eendebakpt
eendebakpthttps://github.com/eendebakpt
Jun 16, 2024https://github.com/python/cpython/pull/120609#issue-2356024743
Please reload this pagehttps://github.com/python/cpython/pull/120609
reversed is not thread-safe #120608https://github.com/python/cpython/issues/120608
gh-120496: Make enum_iter thread safe #120591https://github.com/python/cpython/pull/120591
reversed is not thread-safe #120608https://github.com/python/cpython/issues/120608
Please reload this pagehttps://github.com/python/cpython/pull/120609
eendebakpthttps://github.com/eendebakpt
June 17, 2024 00:23https://github.com/python/cpython/pull/120609#commits-pushed-f5d81ba
https://github.com/eendebakpt
Make reversed thread-safehttps://github.com/python/cpython/pull/120609/commits/f5d81ba2be7711ca8db738e7cf14e85b8be7d575
f5d81bahttps://github.com/python/cpython/pull/120609/commits/f5d81ba2be7711ca8db738e7cf14e85b8be7d575
https://github.com/eendebakpt
Add Py_EXIT_CRITICAL_SECTIONhttps://github.com/python/cpython/pull/120609/commits/40018a179253487c2f1cc426051c84beb21e817f
40018a1https://github.com/python/cpython/pull/120609/commits/40018a179253487c2f1cc426051c84beb21e817f
https://github.com/eendebakpt
eendebakpthttps://github.com/eendebakpt
ethanfurmanhttps://github.com/ethanfurman
code ownerhttps://github.com/python/cpython/blob/bd4516d9efee109dd3b02a3d60845f9053fc6718/.github/CODEOWNERS#L222
June 16, 2024 22:28https://github.com/python/cpython/pull/120609#event-13177253564
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
Jun 16, 2024https://github.com/python/cpython/pull/120609#event-13177253664
https://github.com/eendebakpt
eendebakpthttps://github.com/eendebakpt
Jun 16, 2024https://github.com/python/cpython/pull/120609#event-13177254478
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Jun 16, 2024 https://github.com/python/cpython/pull/120609#ref-issue-2356024622
reversed is not thread-safe #120608 https://github.com/python/cpython/issues/120608
https://github.com/apps/blurb-it
📜🤖 Added by blurb_it.https://github.com/python/cpython/pull/120609/commits/726f6caadef1d1fe911f5b128241e1f0715f6ad5
726f6cahttps://github.com/python/cpython/pull/120609/commits/726f6caadef1d1fe911f5b128241e1f0715f6ad5
https://github.com/sobolevn
sobolevnhttps://github.com/sobolevn
Jun 17, 2024 https://github.com/python/cpython/pull/120609#pullrequestreview-2122054726
View reviewed changes https://github.com/python/cpython/pull/120609/files/726f6caadef1d1fe911f5b128241e1f0715f6ad5
Misc/NEWS.d/next/Core and Builtins/2024-06-16-22-42-47.gh-issue-120608._-YtWX.rsthttps://github.com/python/cpython/pull/120609/files/726f6caadef1d1fe911f5b128241e1f0715f6ad5#diff-837e51077a92db41cc46f4ad4bdb4de2343dba79972a0cf5bc0f0a9652c51edb
Please reload this pagehttps://github.com/python/cpython/pull/120609
Include/internal/pycore_critical_section.hhttps://github.com/python/cpython/pull/120609/files/726f6caadef1d1fe911f5b128241e1f0715f6ad5#diff-9f21a181cb5e2aebc6034d241c1c401fb7598a7a895b3a0eff4769023bd8fcd9
sobolevnhttps://github.com/sobolevn
Jun 17, 2024https://github.com/python/cpython/pull/120609#discussion_r1642295614
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/120609
erlend-aaslandhttps://github.com/erlend-aasland
Jun 17, 2024https://github.com/python/cpython/pull/120609#discussion_r1642298829
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/120609
erlend-aaslandhttps://github.com/erlend-aasland
Jun 17, 2024https://github.com/python/cpython/pull/120609#discussion_r1642303895
Please reload this pagehttps://github.com/python/cpython/pull/120609
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
#120318https://github.com/python/cpython/pull/120318
Please reload this pagehttps://github.com/python/cpython/pull/120609
lysnikolaouhttps://github.com/lysnikolaou
Jun 17, 2024https://github.com/python/cpython/pull/120609#discussion_r1642449835
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
#120318https://github.com/python/cpython/pull/120318
this commenthttps://github.com/python/cpython/pull/120318#discussion_r1636802125
Please reload this pagehttps://github.com/python/cpython/pull/120609
eendebakpthttps://github.com/eendebakpt
Jun 17, 2024https://github.com/python/cpython/pull/120609#discussion_r1642560274
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/120609
https://github.com/eendebakpt
https://github.com/sobolevn
Update Misc/NEWS.d/next/Core and Builtins/2024-06-16-22-42-47.gh-issu…https://github.com/python/cpython/pull/120609/commits/8c82d5ef83a1d72b5fbecf0f4c9e89fe776922c0
8c82d5ehttps://github.com/python/cpython/pull/120609/commits/8c82d5ef83a1d72b5fbecf0f4c9e89fe776922c0
https://github.com/corona10
corona10https://github.com/corona10
Jun 18, 2024https://github.com/python/cpython/pull/120609#issuecomment-2176005927
#120496 (comment)https://github.com/python/cpython/issues/120496#issuecomment-2173660805
Please reload this pagehttps://github.com/python/cpython/pull/120609
https://github.com/corona10
corona10https://github.com/corona10
Jun 18, 2024 https://github.com/python/cpython/pull/120609#pullrequestreview-2125423788
View reviewed changes https://github.com/python/cpython/pull/120609/files/8c82d5ef83a1d72b5fbecf0f4c9e89fe776922c0
Objects/enumobject.chttps://github.com/python/cpython/pull/120609/files/8c82d5ef83a1d72b5fbecf0f4c9e89fe776922c0#diff-31a1e2180c100842e6d5c77f12796abb3121d9ea9431f512cacc49eedee53603
corona10https://github.com/corona10
Jun 18, 2024https://github.com/python/cpython/pull/120609#discussion_r1644406352
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
cpython/Objects/listobject.chttps://github.com/python/cpython/blob/dacc5ac71a8e546f9ef76805827cb50d4d40cabf/Objects/listobject.c#L3890-L3911
dacc5achttps://github.com/python/cpython/commit/dacc5ac71a8e546f9ef76805827cb50d4d40cabf
@colesburyhttps://github.com/colesbury
Please reload this pagehttps://github.com/python/cpython/pull/120609
eendebakpthttps://github.com/eendebakpt
Jun 18, 2024https://github.com/python/cpython/pull/120609#discussion_r1644414819
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/120609
https://github.com/eendebakpt
eendebakpthttps://github.com/eendebakpt
Jun 23, 2024https://github.com/python/cpython/pull/120609#issuecomment-2185314467
Please reload this pagehttps://github.com/python/cpython/pull/120609
@corona10https://github.com/corona10
#120496https://github.com/python/cpython/issues/120496
Please reload this pagehttps://github.com/python/cpython/pull/120609
https://github.com/eendebakpt
eendebakpthttps://github.com/eendebakpt
Jun 24, 2024https://github.com/python/cpython/pull/120609#issuecomment-2187322432
@corona10https://github.com/corona10
#120971https://github.com/python/cpython/pull/120971
Please reload this pagehttps://github.com/python/cpython/pull/120609
https://github.com/eendebakpt
eendebakpthttps://github.com/eendebakpt
Jun 24, 2024https://github.com/python/cpython/pull/120609#event-13271706947
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F120609
https://github.com/sobolevn
sobolevn https://github.com/sobolevn
https://github.com/python/cpython/pull/120609/files/726f6caadef1d1fe911f5b128241e1f0715f6ad5
https://github.com/corona10
corona10 https://github.com/corona10
https://github.com/python/cpython/pull/120609/files/8c82d5ef83a1d72b5fbecf0f4c9e89fe776922c0
https://github.com/erlend-aasland
erlend-aasland https://github.com/erlend-aasland
https://github.com/python/cpython/pull/120609/files/726f6caadef1d1fe911f5b128241e1f0715f6ad5
https://github.com/lysnikolaou
lysnikolaou https://github.com/lysnikolaou
https://github.com/python/cpython/pull/120609/files/726f6caadef1d1fe911f5b128241e1f0715f6ad5
https://github.com/ethanfurman
ethanfurman https://github.com/ethanfurman
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
Please reload this pagehttps://github.com/python/cpython/pull/120609
https://github.com/eendebakpt
https://github.com/corona10
https://github.com/sobolevn
https://github.com/erlend-aasland
https://github.com/lysnikolaou
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.