René's URL Explorer Experiment


Title: gh-128911: Use PyImport_ImportModuleAttr() function by vstinner · Pull Request #129657 · python/cpython · GitHub

Open Graph Title: gh-128911: Use PyImport_ImportModuleAttr() function by vstinner · Pull Request #129657 · python/cpython

X Title: gh-128911: Use PyImport_ImportModuleAttr() function by vstinner · Pull Request #129657 · python/cpython

Description: Replace PyImport_ImportModule() + PyObject_GetAttr() with PyImport_ImportModuleAttr(). Replace PyImport_ImportModule() + PyObject_GetAttrString() with PyImport_ImportModuleAttrString(). Issue: gh-128911

Open Graph Description: Replace PyImport_ImportModule() + PyObject_GetAttr() with PyImport_ImportModuleAttr(). Replace PyImport_ImportModule() + PyObject_GetAttrString() with PyImport_ImportModuleAttrString(). Issue: ...

X Description: Replace PyImport_ImportModule() + PyObject_GetAttr() with PyImport_ImportModuleAttr(). Replace PyImport_ImportModule() + PyObject_GetAttrString() with PyImport_ImportModuleAttrString(). Issue: ...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:bce59a19-4210-765c-4950-95c879a2cf7e
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC5BC:236F3C:1565CA2:1D788D4:696AA591
html-safe-nonce3edcbb18a69898593e089b23773c8aa6581707ba020fcf3de41889e1941ed3c2
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNUJDOjIzNkYzQzoxNTY1Q0EyOjFENzg4RDQ6Njk2QUE1OTEiLCJ2aXNpdG9yX2lkIjoiMTYyMDM1MDAwNDE1NDI0NjU0NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac06751d25929007b23247f1b45a5e05babdfb67c074edddc3f999ac7a155d63a2
hovercard-subject-tagpull_request:2315498473
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///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/129657/files
twitter:imagehttps://avatars.githubusercontent.com/u/194129?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/194129?s=400&v=4
og:image:altReplace PyImport_ImportModule() + PyObject_GetAttr() with PyImport_ImportModuleAttr(). Replace PyImport_ImportModule() + PyObject_GetAttrString() with PyImport_ImportModuleAttrString(). Issue: ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonea51f97dbb9326f71c08ecb61577457d543c602124d1a2672871258ef37ac5261
turbo-cache-controlno-preview
diff-viewunified
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 full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release4bd0eac606c70914085176ef312ebdcd97a8cdf1
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/129657/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F129657%2Ffiles
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%2F129657%2Ffiles
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%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/129657/files
Reloadhttps://github.com/python/cpython/pull/129657/files
Reloadhttps://github.com/python/cpython/pull/129657/files
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/129657/files
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/129657/files
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
vstinnerhttps://github.com/vstinner
python:mainhttps://github.com/python/cpython/tree/main
vstinner:use_importattrhttps://github.com/vstinner/cpython/tree/use_importattr
Conversation 0 https://github.com/python/cpython/pull/129657
Commits 3 https://github.com/python/cpython/pull/129657/commits
Checks 39 https://github.com/python/cpython/pull/129657/checks
Files changed https://github.com/python/cpython/pull/129657/files
Please reload this pagehttps://github.com/python/cpython/pull/129657/files
gh-128911: Use PyImport_ImportModuleAttr() function https://github.com/python/cpython/pull/129657/files#top
Show all changes 3 commits https://github.com/python/cpython/pull/129657/files
76ba47e gh-128911: Use PyImport_ImportModuleAttr() function vstinner Feb 4, 2025 https://github.com/python/cpython/pull/129657/commits/76ba47e6caffb55521ed508d428211537647d12e
a54e98b Fix pymain_run_interactive_hook() vstinner Feb 4, 2025 https://github.com/python/cpython/pull/129657/commits/a54e98b8fcc50853a9950ff9edbcc40edcedd6d4
3cf7a20 Revert _testconsole change: it uses the limited C API vstinner Feb 4, 2025 https://github.com/python/cpython/pull/129657/commits/3cf7a201cdada9226b6cf402b8b1d9215ce03ef3
Clear filters https://github.com/python/cpython/pull/129657/files
Please reload this pagehttps://github.com/python/cpython/pull/129657/files
Please reload this pagehttps://github.com/python/cpython/pull/129657/files
callbacks.c https://github.com/python/cpython/pull/129657/files#diff-706e65ee28911740bf638707e19578b8182e57c6a8a9a4a91105d825f95a139d
stgdict.c https://github.com/python/cpython/pull/129657/files#diff-a75c1edda81c7e4ede83ebbd84c2638023c1b91de15b504f574ba7e08b8b0883
code.c https://github.com/python/cpython/pull/129657/files#diff-94278485c4e8df3fca4a703392bcb66fc6d0993571a0dc01fcf639566bf66304
_testcapimodule.c https://github.com/python/cpython/pull/129657/files#diff-b2d7540efa4f376350ef77b923a6dfcc54bb90424970477f66275f19bad0d30f
main.c https://github.com/python/cpython/pull/129657/files#diff-79e40dbd94b164b5f42a960224cc7496e33c189b4c66a6810904eda7d703b6f2
crossinterp.c https://github.com/python/cpython/pull/129657/files#diff-88c171bf6a3ab394012cb7af2d9929543d379573ff46279de7ad38d4e7a12c54
pythonrun.c https://github.com/python/cpython/pull/129657/files#diff-2ecd9b536bc387479d824dc4b53f89679d6978d25c6b8a28ab21ed03e745e46e
Modules/_ctypes/callbacks.chttps://github.com/python/cpython/pull/129657/files#diff-706e65ee28911740bf638707e19578b8182e57c6a8a9a4a91105d825f95a139d
View file https://github.com/vstinner/cpython/blob/3cf7a201cdada9226b6cf402b8b1d9215ce03ef3/Modules/_ctypes/callbacks.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/129657/{{ revealButtonHref }}
https://github.com/python/cpython/pull/129657/files#diff-706e65ee28911740bf638707e19578b8182e57c6a8a9a4a91105d825f95a139d
https://github.com/python/cpython/pull/129657/files#diff-706e65ee28911740bf638707e19578b8182e57c6a8a9a4a91105d825f95a139d
Modules/_ctypes/stgdict.chttps://github.com/python/cpython/pull/129657/files#diff-a75c1edda81c7e4ede83ebbd84c2638023c1b91de15b504f574ba7e08b8b0883
View file https://github.com/vstinner/cpython/blob/3cf7a201cdada9226b6cf402b8b1d9215ce03ef3/Modules/_ctypes/stgdict.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/129657/{{ revealButtonHref }}
https://github.com/python/cpython/pull/129657/files#diff-a75c1edda81c7e4ede83ebbd84c2638023c1b91de15b504f574ba7e08b8b0883
https://github.com/python/cpython/pull/129657/files#diff-a75c1edda81c7e4ede83ebbd84c2638023c1b91de15b504f574ba7e08b8b0883
Modules/_testcapi/code.chttps://github.com/python/cpython/pull/129657/files#diff-94278485c4e8df3fca4a703392bcb66fc6d0993571a0dc01fcf639566bf66304
View file https://github.com/vstinner/cpython/blob/3cf7a201cdada9226b6cf402b8b1d9215ce03ef3/Modules/_testcapi/code.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/129657/{{ revealButtonHref }}
https://github.com/python/cpython/pull/129657/files#diff-94278485c4e8df3fca4a703392bcb66fc6d0993571a0dc01fcf639566bf66304
https://github.com/python/cpython/pull/129657/files#diff-94278485c4e8df3fca4a703392bcb66fc6d0993571a0dc01fcf639566bf66304
https://github.com/python/cpython/pull/129657/files#diff-94278485c4e8df3fca4a703392bcb66fc6d0993571a0dc01fcf639566bf66304
https://github.com/python/cpython/pull/129657/files#diff-94278485c4e8df3fca4a703392bcb66fc6d0993571a0dc01fcf639566bf66304
https://github.com/python/cpython/pull/129657/files#diff-94278485c4e8df3fca4a703392bcb66fc6d0993571a0dc01fcf639566bf66304
Modules/_testcapimodule.chttps://github.com/python/cpython/pull/129657/files#diff-b2d7540efa4f376350ef77b923a6dfcc54bb90424970477f66275f19bad0d30f
View file https://github.com/vstinner/cpython/blob/3cf7a201cdada9226b6cf402b8b1d9215ce03ef3/Modules/_testcapimodule.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/129657/{{ revealButtonHref }}
https://github.com/python/cpython/pull/129657/files#diff-b2d7540efa4f376350ef77b923a6dfcc54bb90424970477f66275f19bad0d30f
https://github.com/python/cpython/pull/129657/files#diff-b2d7540efa4f376350ef77b923a6dfcc54bb90424970477f66275f19bad0d30f
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L284
Modules/main.chttps://github.com/python/cpython/pull/129657/files#diff-79e40dbd94b164b5f42a960224cc7496e33c189b4c66a6810904eda7d703b6f2
View file https://github.com/vstinner/cpython/blob/3cf7a201cdada9226b6cf402b8b1d9215ce03ef3/Modules/main.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/129657/{{ revealButtonHref }}
https://github.com/python/cpython/pull/129657/files#diff-79e40dbd94b164b5f42a960224cc7496e33c189b4c66a6810904eda7d703b6f2
https://github.com/python/cpython/pull/129657/files#diff-79e40dbd94b164b5f42a960224cc7496e33c189b4c66a6810904eda7d703b6f2
https://github.com/python/cpython/pull/129657/files#diff-79e40dbd94b164b5f42a960224cc7496e33c189b4c66a6810904eda7d703b6f2
https://github.com/python/cpython/pull/129657/files#diff-79e40dbd94b164b5f42a960224cc7496e33c189b4c66a6810904eda7d703b6f2
https://github.com/python/cpython/pull/129657/files#diff-79e40dbd94b164b5f42a960224cc7496e33c189b4c66a6810904eda7d703b6f2
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L331
Python/crossinterp.chttps://github.com/python/cpython/pull/129657/files#diff-88c171bf6a3ab394012cb7af2d9929543d379573ff46279de7ad38d4e7a12c54
View file https://github.com/vstinner/cpython/blob/3cf7a201cdada9226b6cf402b8b1d9215ce03ef3/Python/crossinterp.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/129657/{{ revealButtonHref }}
https://github.com/python/cpython/pull/129657/files#diff-88c171bf6a3ab394012cb7af2d9929543d379573ff46279de7ad38d4e7a12c54
https://github.com/python/cpython/pull/129657/files#diff-88c171bf6a3ab394012cb7af2d9929543d379573ff46279de7ad38d4e7a12c54
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L269
Python/pythonrun.chttps://github.com/python/cpython/pull/129657/files#diff-2ecd9b536bc387479d824dc4b53f89679d6978d25c6b8a28ab21ed03e745e46e
View file https://github.com/vstinner/cpython/blob/3cf7a201cdada9226b6cf402b8b1d9215ce03ef3/Python/pythonrun.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/129657/{{ revealButtonHref }}
https://github.com/python/cpython/pull/129657/files#diff-2ecd9b536bc387479d824dc4b53f89679d6978d25c6b8a28ab21ed03e745e46e
https://github.com/python/cpython/pull/129657/files#diff-2ecd9b536bc387479d824dc4b53f89679d6978d25c6b8a28ab21ed03e745e46e
https://github.com/python/cpython/pull/129657/files#diff-2ecd9b536bc387479d824dc4b53f89679d6978d25c6b8a28ab21ed03e745e46e
https://github.com/python/cpython/pull/129657/files#diff-2ecd9b536bc387479d824dc4b53f89679d6978d25c6b8a28ab21ed03e745e46e
https://github.com/python/cpython/pull/129657/files#diff-2ecd9b536bc387479d824dc4b53f89679d6978d25c6b8a28ab21ed03e745e46e
Please reload this pagehttps://github.com/python/cpython/pull/129657/files
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.