René's URL Explorer Experiment


Title: [3.11] gh-98724: Fix Py_CLEAR() macro side effects (#99100) by vstinner · Pull Request #99288 · python/cpython · GitHub

Open Graph Title: [3.11] gh-98724: Fix Py_CLEAR() macro side effects (#99100) by vstinner · Pull Request #99288 · python/cpython

X Title: [3.11] gh-98724: Fix Py_CLEAR() macro side effects (#99100) by vstinner · Pull Request #99288 · python/cpython

Description: The Py_CLEAR(), Py_SETREF() and Py_XSETREF() macros now only evaluate their argument once. If an argument has side effects, these side effects are no longer duplicated. Add test_py_clear() and test...

Open Graph Description: The Py_CLEAR(), Py_SETREF() and Py_XSETREF() macros now only evaluate their argument once. If an argument has side effects, these side effects are no longer duplicated. Add test_py_clear() and test...

X Description: The Py_CLEAR(), Py_SETREF() and Py_XSETREF() macros now only evaluate their argument once. If an argument has side effects, these side effects are no longer duplicated. Add test_py_clear() and test...

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

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:9be3133b-bd36-d8e5-85b1-f975b4b765b1
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id936A:2F1DAE:704E7C:94306C:696B4A6F
html-safe-nonce3547091caf72b9c9dbaa06a59205899577ce1eb79173cb07aab36373812ad947
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MzZBOjJGMURBRTo3MDRFN0M6OTQzMDZDOjY5NkI0QTZGIiwidmlzaXRvcl9pZCI6IjI5MjE5MTkxMzcxNjk3NTQ3MzUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac4cbf44169c2e8d6c8436587644c26ec474ad529d0681e9574fcc056ed50ff842
hovercard-subject-tagpull_request:1116080331
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/99288/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/0ece3ca2a992db6d2aee89ffd4184aaa976a43b105fc7f9ad262e01ace1ce661/python/cpython/pull/99288
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/0ece3ca2a992db6d2aee89ffd4184aaa976a43b105fc7f9ad262e01ace1ce661/python/cpython/pull/99288
og:image:altThe Py_CLEAR(), Py_SETREF() and Py_XSETREF() macros now only evaluate their argument once. If an argument has side effects, these side effects are no longer duplicated. Add test_py_clear() and test...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamevstinner
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/99288#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F99288
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%2F99288
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/99288
Reloadhttps://github.com/python/cpython/pull/99288
Reloadhttps://github.com/python/cpython/pull/99288
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/99288
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/99288
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/99288#issue-comment-box
vstinnerhttps://github.com/vstinner
python:3.11https://github.com/python/cpython/tree/3.11
[3.11] gh-98724: Fix Py_CLEAR() macro side effects (#99100) https://github.com/python/cpython/pull/99288#top
vstinnerhttps://github.com/vstinner
python:3.11https://github.com/python/cpython/tree/3.11
Conversation 2 https://github.com/python/cpython/pull/99288
Commits 1 https://github.com/python/cpython/pull/99288/commits
Checks 0 https://github.com/python/cpython/pull/99288/checks
Files changed https://github.com/python/cpython/pull/99288/files
Please reload this pagehttps://github.com/python/cpython/pull/99288
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Nov 9, 2022https://github.com/python/cpython/pull/99288#issue-1442077381
Please reload this pagehttps://github.com/python/cpython/pull/99288
c03e05chttps://github.com/python/cpython/commit/c03e05c2e72f3ea5e797389e7d1042eef85ad37a
Macro Py_CLEAR references argument two times. #98724https://github.com/python/cpython/issues/98724
Please reload this pagehttps://github.com/python/cpython/pull/99288
https://github.com/vstinner
gh-98724https://github.com/python/cpython/issues/98724
: Fix Py_CLEAR() macro side effects (https://github.com/python/cpython/pull/99288/commits/a474ce0db75d13db0217a359b5e0d722750290ba
#99100https://github.com/python/cpython/pull/99100
)https://github.com/python/cpython/pull/99288/commits/a474ce0db75d13db0217a359b5e0d722750290ba
a474ce0https://github.com/python/cpython/pull/99288/commits/a474ce0db75d13db0217a359b5e0d722750290ba
c03e05chttps://github.com/python/cpython/commit/c03e05c2e72f3ea5e797389e7d1042eef85ad37a
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
needs backport to 3.10 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.10%22
Nov 9, 2022https://github.com/python/cpython/pull/99288#event-7773373816
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
Nov 9, 2022 https://github.com/python/cpython/pull/99288#ref-issue-1424207362
Macro Py_CLEAR references argument two times. #98724 https://github.com/python/cpython/issues/98724
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Nov 9, 2022https://github.com/python/cpython/pull/99288#event-7773374765
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
Nov 9, 2022 https://github.com/python/cpython/pull/99288#ref-pullrequest-1436238174
gh-98724: Fix Py_CLEAR() macro side effects #99100 https://github.com/python/cpython/pull/99100
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
1082890https://github.com/python/cpython/commit/108289085719db8b227d65ce945e806f91be8f80
Nov 9, 2022https://github.com/python/cpython/pull/99288#event-7774700509
https://github.com/miss-islington
miss-islingtonhttps://github.com/miss-islington
Nov 9, 2022https://github.com/python/cpython/pull/99288#issuecomment-1308936836
@vstinnerhttps://github.com/vstinner
Please reload this pagehttps://github.com/python/cpython/pull/99288
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Nov 9, 2022https://github.com/python/cpython/pull/99288#event-7774701227
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
November 9, 2022 15:29https://github.com/python/cpython/pull/99288#event-7774701247
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
Nov 9, 2022https://github.com/python/cpython/pull/99288#issuecomment-1308937143
GH-99292https://github.com/python/cpython/pull/99292
3.10 branchhttps://github.com/python/cpython/tree/3.10
Please reload this pagehttps://github.com/python/cpython/pull/99288
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
needs backport to 3.10 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.10%22
Nov 9, 2022https://github.com/python/cpython/pull/99288#event-7774703561
miss-islingtonhttps://github.com/miss-islington
Nov 9, 2022 https://github.com/python/cpython/pull/99288#ref-commit-de37748
https://github.com/vstinner
https://github.com/miss-islington
pythongh-98724https://github.com/python/cpython/issues/98724
: Fix Py_CLEAR() macro side effects (https://github.com/miss-islington/cpython/commit/de377482d94b884c18c1fb61931ef0bc1a234b61
pythonGH-99100https://github.com/python/cpython/pull/99100
) (https://github.com/miss-islington/cpython/commit/de377482d94b884c18c1fb61931ef0bc1a234b61
p…https://github.com/python/cpython/pull/99288
de37748https://github.com/miss-islington/cpython/commit/de377482d94b884c18c1fb61931ef0bc1a234b61
…ythonGH-99288https://github.com/python/cpython/pull/99288
1082890https://github.com/miss-islington/cpython/commit/108289085719db8b227d65ce945e806f91be8f80
c03e05chttps://github.com/miss-islington/cpython/commit/c03e05c2e72f3ea5e797389e7d1042eef85ad37a
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Nov 18, 2022 https://github.com/python/cpython/pull/99288#ref-pullrequest-1454985370
[3.11] Revert "[3.11] gh-98724: Fix Py_CLEAR() macro side effects (#99100)" #99573 https://github.com/python/cpython/pull/99573
vstinnerhttps://github.com/vstinner
Nov 18, 2022 https://github.com/python/cpython/pull/99288#ref-commit-f728554
https://github.com/vstinner
Revert "https://github.com/python/cpython/commit/f72855416b04b0917416928b521136a02e082416
gh-98724https://github.com/python/cpython/issues/98724
: Fix Py_CLEAR() macro side effects (https://github.com/python/cpython/commit/f72855416b04b0917416928b521136a02e082416
#99100https://github.com/python/cpython/pull/99100
) (https://github.com/python/cpython/commit/f72855416b04b0917416928b521136a02e082416
#99288https://github.com/python/cpython/pull/99288
)"https://github.com/python/cpython/commit/f72855416b04b0917416928b521136a02e082416
f728554https://github.com/python/cpython/commit/f72855416b04b0917416928b521136a02e082416
1082890https://github.com/python/cpython/commit/108289085719db8b227d65ce945e806f91be8f80
vstinnerhttps://github.com/vstinner
Nov 21, 2022 https://github.com/python/cpython/pull/99288#ref-commit-0c6b3a2
https://github.com/vstinner
[3.11] Revert "[3.11]https://github.com/python/cpython/commit/0c6b3a2d8e1a887bda6baed27664a62392f2cdc3
gh-98724https://github.com/python/cpython/issues/98724
: Fix Py_CLEAR() macro side effects (https://github.com/python/cpython/commit/0c6b3a2d8e1a887bda6baed27664a62392f2cdc3
#9…https://github.com/python/cpython/pull/99100
0c6b3a2https://github.com/python/cpython/commit/0c6b3a2d8e1a887bda6baed27664a62392f2cdc3
…9100https://github.com/python/cpython/pull/99100
#99573https://github.com/python/cpython/pull/99573
gh-98724https://github.com/python/cpython/issues/98724
#99100https://github.com/python/cpython/pull/99100
#99288https://github.com/python/cpython/pull/99288
1082890https://github.com/python/cpython/commit/108289085719db8b227d65ce945e806f91be8f80
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%2F99288
Please reload this pagehttps://github.com/python/cpython/pull/99288
https://github.com/vstinner
https://github.com/miss-islington
https://github.com/bedevere-bot
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.