René's URL Explorer Experiment


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

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

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

Description: The Py_CLEAR(), Py_SETREF() and Py_XSETREF() macros now only evaluate their arguments once. If an argument has side effects, these side effects are no longer duplicated. Use temporary variables to ...

Open Graph Description: The Py_CLEAR(), Py_SETREF() and Py_XSETREF() macros now only evaluate their arguments once. If an argument has side effects, these side effects are no longer duplicated. Use temporary variables to ...

X Description: The Py_CLEAR(), Py_SETREF() and Py_XSETREF() macros now only evaluate their arguments once. If an argument has side effects, these side effects are no longer duplicated. Use temporary variables to ...

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

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:1f0c6f6a-733f-6ddc-cc34-0bc77470ed94
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD0D6:267307:4B7A0:62AF9:696B57FD
html-safe-nonce060f0699d946ca0f83b8aa207d1089f1de07f12b272e694a7def72b3d2dc3a4d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMEQ2OjI2NzMwNzo0QjdBMDo2MkFGOTo2OTZCNTdGRCIsInZpc2l0b3JfaWQiOiI0OTc5OTQ5MzQ1MjIyMzgzNjEzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac88b6a90d5ddd731112c94dac1bdc145550a384a9a68941be9929a4eb969ca8fd
hovercard-subject-tagpull_request:1151127169
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/100070/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/8fdeb1d78e90376c682fff6056f58101d5fa11126b6c0995fb15fe9c2658efcf/python/cpython/pull/100070
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/8fdeb1d78e90376c682fff6056f58101d5fa11126b6c0995fb15fe9c2658efcf/python/cpython/pull/100070
og:image:altThe Py_CLEAR(), Py_SETREF() and Py_XSETREF() macros now only evaluate their arguments once. If an argument has side effects, these side effects are no longer duplicated. Use temporary variables to ...
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/100070#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F100070
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%2F100070
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/100070
Reloadhttps://github.com/python/cpython/pull/100070
Reloadhttps://github.com/python/cpython/pull/100070
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/100070
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/100070
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/100070#issue-comment-box
vstinnerhttps://github.com/vstinner
python:mainhttps://github.com/python/cpython/tree/main
gh-98724: Fix Py_CLEAR() macro side effects (#99100) https://github.com/python/cpython/pull/100070#top
vstinnerhttps://github.com/vstinner
python:mainhttps://github.com/python/cpython/tree/main
Conversation 10 https://github.com/python/cpython/pull/100070
Commits 1 https://github.com/python/cpython/pull/100070/commits
Checks 0 https://github.com/python/cpython/pull/100070/checks
Files changed https://github.com/python/cpython/pull/100070/files
Please reload this pagehttps://github.com/python/cpython/pull/100070
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Dec 7, 2022https://github.com/python/cpython/pull/100070#issue-1481442454
Please reload this pagehttps://github.com/python/cpython/pull/100070
Macro Py_CLEAR references argument two times. #98724https://github.com/python/cpython/issues/98724
Please reload this pagehttps://github.com/python/cpython/pull/100070
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
Dec 7, 2022 https://github.com/python/cpython/pull/100070#ref-issue-1424207362
Macro Py_CLEAR references argument two times. #98724 https://github.com/python/cpython/issues/98724
https://github.com/apps/netlify
netlifyhttps://github.com/apps/netlify
Dec 7, 2022https://github.com/python/cpython/pull/100070#issuecomment-1340645299
Please reload this pagehttps://github.com/python/cpython/pull/100070
cffd9d4https://github.com/python/cpython/commit/cffd9d4363bf4683c416a02b5791dc071b0ff41a
https://app.netlify.com/sites/python-cpython-preview/deploys/639094347616260008a4e69ehttps://app.netlify.com/sites/python-cpython-preview/deploys/639094347616260008a4e69e
https://deploy-preview-100070--python-cpython-preview.netlify.apphttps://deploy-preview-100070--python-cpython-preview.netlify.app
https://camo.githubusercontent.com/909c8c15c4b6524596219911a0074beef925e66f99b15dd20157001e989044fd/68747470733a2f2f6170702e6e65746c6966792e636f6d2f71722d636f64652f65794a30655841694f694a4b563151694c434a68624763694f694a49557a49314e694a392e65794a31636d77694f694a6f64485277637a6f764c32526c6347787665533177636d5632615756334c5445774d4441334d43307463486c30614739754c574e776558526f6232347463484a6c646d6c6c647935755a58527361575a354c6d467763434a392e6f72396d776d5f34434e586d6f497a534d484d36494a3345694975414f653947775432396d722d57536545
Netlify site settingshttps://app.netlify.com/sites/python-cpython-preview/settings/deploys#deploy-notifications
Please reload this pagehttps://github.com/python/cpython/pull/100070
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
Dec 7, 2022https://github.com/python/cpython/pull/100070#event-7975704989
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Dec 7, 2022https://github.com/python/cpython/pull/100070#issuecomment-1340648459
@serge-sans-paillehttps://github.com/serge-sans-paille
@erlend-aaslandhttps://github.com/erlend-aasland
Please reload this pagehttps://github.com/python/cpython/pull/100070
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Dec 7, 2022https://github.com/python/cpython/pull/100070#issuecomment-1340658959
#99701https://github.com/python/cpython/issues/99701
Please reload this pagehttps://github.com/python/cpython/pull/100070
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Dec 7, 2022https://github.com/python/cpython/pull/100070#issuecomment-1340727619
#99739https://github.com/python/cpython/pull/99739
Please reload this pagehttps://github.com/python/cpython/pull/100070
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Dec 7, 2022https://github.com/python/cpython/pull/100070#issuecomment-1340768903
Please reload this pagehttps://github.com/python/cpython/pull/100070
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Dec 7, 2022https://github.com/python/cpython/pull/100070#issuecomment-1340776415
@serge-sans-paillehttps://github.com/serge-sans-paille
#98724https://github.com/python/cpython/issues/98724
Please reload this pagehttps://github.com/python/cpython/pull/100070
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
🔨 test-with-buildbots https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22%3Ahammer%3A%20test-with-buildbots%22
Dec 7, 2022https://github.com/python/cpython/pull/100070#event-7976651256
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
Dec 7, 2022https://github.com/python/cpython/pull/100070#issuecomment-1340812873
@vstinnerhttps://github.com/vstinner
86d8878https://github.com/python/cpython/commit/86d887881a20bd73953525ed9151a46cfb1bc65c
Please reload this pagehttps://github.com/python/cpython/pull/100070
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
🔨 test-with-buildbots https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22%3Ahammer%3A%20test-with-buildbots%22
Dec 7, 2022https://github.com/python/cpython/pull/100070#event-7976651684
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Dec 7, 2022https://github.com/python/cpython/pull/100070#issuecomment-1340953961
Please reload this pagehttps://github.com/python/cpython/pull/100070
https://github.com/sobolevn
sobolevnhttps://github.com/sobolevn
Dec 7, 2022 https://github.com/python/cpython/pull/100070#ref-issue-1481921234
Netlify builds happen for PRs that do not change docs #100072 https://github.com/python/cpython/issues/100072
https://github.com/vstinner
gh-98724https://github.com/python/cpython/issues/98724
: Fix Py_CLEAR() macro side effects (https://github.com/python/cpython/pull/100070/commits/cffd9d4363bf4683c416a02b5791dc071b0ff41a
#99100https://github.com/python/cpython/pull/99100
)https://github.com/python/cpython/pull/100070/commits/cffd9d4363bf4683c416a02b5791dc071b0ff41a
cffd9d4https://github.com/python/cpython/pull/100070/commits/cffd9d4363bf4683c416a02b5791dc071b0ff41a
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Dec 7, 2022https://github.com/python/cpython/pull/100070#issuecomment-1340967135
Please reload this pagehttps://github.com/python/cpython/pull/100070
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
b11a384https://github.com/python/cpython/commit/b11a384dc7471ffc16de4b86e8f5fdeef151f348
Dec 7, 2022https://github.com/python/cpython/pull/100070#event-7978353427
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
December 7, 2022 14:22https://github.com/python/cpython/pull/100070#event-7978354118
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
Dec 7, 2022https://github.com/python/cpython/pull/100070#event-7978354217
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Dec 8, 2022https://github.com/python/cpython/pull/100070#issuecomment-1342231041
#100104https://github.com/python/cpython/pull/100104
Please reload this pagehttps://github.com/python/cpython/pull/100070
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%2F100070
Please reload this pagehttps://github.com/python/cpython/pull/100070
https://github.com/vstinner
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.