René's URL Explorer Experiment


Title: gh-135893: Lazily initialize the libffi allocator in ctypes by ZeroIntensity · Pull Request #161844 · python/cpython · GitHub

Open Graph Title: gh-135893: Lazily initialize the libffi allocator in ctypes by ZeroIntensity · Pull Request #161844 · python/cpython

X Title: gh-135893: Lazily initialize the libffi allocator in ctypes by ZeroIntensity · Pull Request #161844 · python/cpython

Description: The Python programming language. Contribute to python/cpython development by creating an account on GitHub.

Open Graph Description: This prevents libffi from causing side effects when ctypes is imported. Issue: Importing ctypes results in extra open libffi file descriptor since 3.14 #135893

X Description: This prevents libffi from causing side effects when ctypes is imported. Issue: Importing ctypes results in extra open libffi file descriptor since 3.14 #135893

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

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
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:d4295741-ae3a-6ad2-9a14-25de47cb122d
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8CFA:F8C5C:FA288F:13A8E7C:6B02318F
html-safe-nonce322bc1755cf534e9919454a20ab4dea8f57192234d9f1f203501a1095aa7c500
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4Q0ZBOkY4QzVDOkZBMjg4RjoxM0E4RTdDOjZCMDIzMThGIiwidmlzaXRvcl9pZCI6IjQzMDYzMjA3ODE4NDkyNzY4MTUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac2f3155ab18ddef8f7cb9c5198c9e6a0244b1190b491cef71c557dbf5a46e218b
hovercard-subject-tagpull_request:5269909829
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/161844/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/983a96cc473ad72ccde55217f92707b3440ede6f5728ed4deb59773a39afa974/python/cpython/pull/161844
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/983a96cc473ad72ccde55217f92707b3440ede6f5728ed4deb59773a39afa974/python/cpython/pull/161844
og:image:altThis prevents libffi from causing side effects when ctypes is imported. Issue: Importing ctypes results in extra open libffi file descriptor since 3.14 #135893
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameZeroIntensity
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-cache
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
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/python/cpython/pull/161844#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F161844
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F161844
Sign uphttps://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/161844
Reloadhttps://github.com/python/cpython/pull/161844
Reloadhttps://github.com/python/cpython/pull/161844
pythonhttps://github.com/python
cpythonhttps://github.com/python/cpython
Codehttps://github.com/python/cpython
Issues5k+ (5k+)https://github.com/python/cpython/issues
Pull requests2.4k (2.4k)https://github.com/python/cpython/pulls
Actionshttps://github.com/python/cpython/actions
Projectshttps://github.com/python/cpython/projects
Security and qualityhttps://github.com/python/cpython/security
Insightshttps://github.com/python/cpython/insights
https://github.com/python/cpython
ZeroIntensityhttps://github.com/ZeroIntensity
python:mainhttps://github.com/python/cpython/tree/main
ZeroIntensity:ctypes/lazily-load-libffi-closurehttps://github.com/ZeroIntensity/cpython/tree/ctypes/lazily-load-libffi-closure
Conversationhttps://github.com/python/cpython/pull/161844
Commits4 (4)https://github.com/python/cpython/pull/161844/commits
Checkshttps://github.com/python/cpython/pull/161844/checks
Files changedhttps://github.com/python/cpython/pull/161844/files
gh-135893: Lazily initialize the libffi allocator in ctypeshttps://github.com/python/cpython/pull/161844#top
ZeroIntensityhttps://github.com/ZeroIntensity
python:mainhttps://github.com/python/cpython/tree/main
ZeroIntensity:ctypes/lazily-load-libffi-closurehttps://github.com/ZeroIntensity/cpython/tree/ctypes/lazily-load-libffi-closure
https://github.com/ZeroIntensity
ZeroIntensityhttps://github.com/ZeroIntensity
Nov 12, 2026https://github.com/python/cpython/pull/161844#issue-6340921497
Please reload this pagehttps://github.com/python/cpython/pull/161844
Importing ctypes results in extra open libffi file descriptor since 3.14 #135893https://github.com/python/cpython/issues/135893
Please reload this pagehttps://github.com/python/cpython/pull/161844
ZeroIntensityhttps://github.com/ZeroIntensity
November 11, 2026 20:50https://github.com/python/cpython/pull/161844#commits-pushed-031dd0d
https://github.com/ZeroIntensity
Lazily load the libffi allocator in ctypeshttps://github.com/python/cpython/pull/161844/commits/031dd0d2908192b02a4c8f322bea4bc92e7cb644
031dd0dhttps://github.com/python/cpython/pull/161844/commits/031dd0d2908192b02a4c8f322bea4bc92e7cb644
https://github.com/ZeroIntensity
Move comment.https://github.com/python/cpython/pull/161844/commits/aaa7b4b94903afa5d931fdd649f2c625092bf100
aaa7b4bhttps://github.com/python/cpython/pull/161844/commits/aaa7b4b94903afa5d931fdd649f2c625092bf100
https://github.com/ZeroIntensity
ZeroIntensityhttps://github.com/ZeroIntensity
needs backport to 3.14 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.14%22
Nov 12, 2026https://github.com/python/cpython/pull/161844#event-35863346006
https://github.com/ZeroIntensity
ZeroIntensityhttps://github.com/ZeroIntensity
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
code ownerhttps://github.com/python/cpython/blob/eb21dea301df801352ac6b4b21117fe6ef5cae4e/.github/CODEOWNERS#L129
November 12, 2026 01:56https://github.com/python/cpython/pull/161844#event-35863346084
https://github.com/ZeroIntensity
ZeroIntensityhttps://github.com/ZeroIntensity
needs backport to 3.15 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.15%22
Nov 12, 2026https://github.com/python/cpython/pull/161844#event-35863346241
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Nov 12, 2026 https://github.com/python/cpython/pull/161844#ref-issue-3172080363
Importing ctypes results in extra open libffi file descriptor since 3.14 #135893 https://github.com/python/cpython/issues/135893
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Nov 12, 2026https://github.com/python/cpython/pull/161844#event-35863354605
ZeroIntensityhttps://github.com/ZeroIntensity
November 11, 2026 20:57https://github.com/python/cpython/pull/161844#commits-pushed-f5d86a4
https://github.com/ZeroIntensity
Don't make a new test class.https://github.com/python/cpython/pull/161844/commits/f5d86a43135f1b667d06afbe72d597395278f205
f5d86a4https://github.com/python/cpython/pull/161844/commits/f5d86a43135f1b667d06afbe72d597395278f205
https://github.com/ZeroIntensity
Adjust blurb entry.https://github.com/python/cpython/pull/161844/commits/878a8a5f323c9a8c01354e2dab56c99335477314
878a8a5https://github.com/python/cpython/pull/161844/commits/878a8a5f323c9a8c01354e2dab56c99335477314
https://github.com/ZeroIntensity
ZeroIntensityhttps://github.com/ZeroIntensity
🔨 test-with-buildbots https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22%3Ahammer%3A%20test-with-buildbots%22
Nov 12, 2026https://github.com/python/cpython/pull/161844#event-35942004541
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
Nov 12, 2026https://github.com/python/cpython/pull/161844#issuecomment-6830970551
@ZeroIntensityhttps://github.com/ZeroIntensity
878a8a5https://github.com/python/cpython/commit/878a8a5f323c9a8c01354e2dab56c99335477314
https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F161844%2Fmergehttps://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F161844%2Fmerge
Please reload this pagehttps://github.com/python/cpython/pull/161844
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
Nov 12, 2026https://github.com/python/cpython/pull/161844#event-35942011871
https://github.com/mhsmith
mhsmithhttps://github.com/mhsmith
Nov 12, 2026https://github.com/python/cpython/pull/161844#issuecomment-6834623643
Please reload this pagehttps://github.com/python/cpython/pull/161844
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Nov 13, 2026 https://github.com/python/cpython/pull/161844#pullrequestreview-5894283334
View reviewed changes https://github.com/python/cpython/pull/161844/files/878a8a5f323c9a8c01354e2dab56c99335477314
vstinnerhttps://github.com/vstinner
https://github.com/python/cpython/pull/161844#pullrequestreview-5894283334
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
#128485https://github.com/python/cpython/issues/128485
@kumaraditya303https://github.com/kumaraditya303
Please reload this pagehttps://github.com/python/cpython/pull/161844
Modules/_ctypes/callbacks.chttps://github.com/python/cpython/pull/161844/files/878a8a5f323c9a8c01354e2dab56c99335477314#diff-706e65ee28911740bf638707e19578b8182e57c6a8a9a4a91105d825f95a139d
vstinnerhttps://github.com/vstinner
Nov 13, 2026https://github.com/python/cpython/pull/161844#discussion_r4565669255
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
#128485https://github.com/python/cpython/issues/128485
#128485https://github.com/python/cpython/issues/128485
Please reload this pagehttps://github.com/python/cpython/pull/161844
ZeroIntensityhttps://github.com/ZeroIntensity
Nov 13, 2026https://github.com/python/cpython/pull/161844#discussion_r4565896154
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/161844
vstinnerhttps://github.com/vstinner
Nov 13, 2026https://github.com/python/cpython/pull/161844#discussion_r4565926688
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/161844
https://github.com/ZeroIntensity
ZeroIntensityhttps://github.com/ZeroIntensity
Nov 13, 2026https://github.com/python/cpython/pull/161844#issuecomment-6858821178
#128485https://github.com/python/cpython/issues/128485
Please reload this pagehttps://github.com/python/cpython/pull/161844
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Nov 13, 2026 https://github.com/python/cpython/pull/161844#pullrequestreview-5894636406
View reviewed changes https://github.com/python/cpython/pull/161844/files/878a8a5f323c9a8c01354e2dab56c99335477314
vstinnerhttps://github.com/vstinner
https://github.com/python/cpython/pull/161844#pullrequestreview-5894636406
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/161844
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Nov 13, 2026https://github.com/python/cpython/pull/161844#event-36050664815
https://github.com/ZeroIntensity
ZeroIntensityhttps://github.com/ZeroIntensity
9b633f5https://github.com/python/cpython/commit/9b633f55e1124697372caaec319a3b7583531a74
Nov 14, 2026https://github.com/python/cpython/pull/161844#event-36099943556
Please reload this pagehttps://github.com/python/cpython/pull/161844
https://github.com/ZeroIntensity
ZeroIntensityhttps://github.com/ZeroIntensity
November 14, 2026 04:24https://github.com/python/cpython/pull/161844#event-36099945375
https://github.com/apps/miss-islington-app
miss-islington-apphttps://github.com/apps/miss-islington-app
Nov 14, 2026https://github.com/python/cpython/pull/161844#issuecomment-6871656930
@ZeroIntensityhttps://github.com/ZeroIntensity
Please reload this pagehttps://github.com/python/cpython/pull/161844
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
Nov 14, 2026https://github.com/python/cpython/pull/161844#event-36099946479
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Nov 14, 2026https://github.com/python/cpython/pull/161844#issuecomment-6871659136
GH-161975https://github.com/python/cpython/pull/161975
3.15 branchhttps://github.com/python/cpython/tree/3.15
Please reload this pagehttps://github.com/python/cpython/pull/161844
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
needs backport to 3.15 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.15%22
Nov 14, 2026https://github.com/python/cpython/pull/161844#event-36099954158
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Nov 14, 2026https://github.com/python/cpython/pull/161844#issuecomment-6871660481
GH-161976https://github.com/python/cpython/pull/161976
3.14 branchhttps://github.com/python/cpython/tree/3.14
Please reload this pagehttps://github.com/python/cpython/pull/161844
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
needs backport to 3.14 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.14%22
Nov 14, 2026https://github.com/python/cpython/pull/161844#event-36099958485
ZeroIntensityhttps://github.com/ZeroIntensity
Nov 14, 2026 https://github.com/python/cpython/pull/161844#ref-commit-e57a989
https://github.com/miss-islington
https://github.com/ZeroIntensity
[3.15]https://github.com/python/cpython/commit/e57a9891990d9191cd19394c3c03db65b5be042b
gh-135893https://github.com/python/cpython/issues/135893
: Lazily initialize the libffi allocator in ctypes (https://github.com/python/cpython/commit/e57a9891990d9191cd19394c3c03db65b5be042b
G…https://github.com/python/cpython/pull/161844
e57a989https://github.com/python/cpython/commit/e57a9891990d9191cd19394c3c03db65b5be042b
…H-161844https://github.com/python/cpython/pull/161844
GH-161975https://github.com/python/cpython/pull/161975
9b633f5https://github.com/python/cpython/commit/9b633f55e1124697372caaec319a3b7583531a74
ZeroIntensityhttps://github.com/ZeroIntensity
Nov 16, 2026 https://github.com/python/cpython/pull/161844#ref-commit-ca73314
https://github.com/miss-islington
https://github.com/ZeroIntensity
[3.14]https://github.com/python/cpython/commit/ca73314c422fd1303f2152634dba91e2e2e2a7df
gh-135893https://github.com/python/cpython/issues/135893
: Lazily initialize the libffi allocator in ctypes (https://github.com/python/cpython/commit/ca73314c422fd1303f2152634dba91e2e2e2a7df
G…https://github.com/python/cpython/pull/161844
ca73314https://github.com/python/cpython/commit/ca73314c422fd1303f2152634dba91e2e2e2a7df
…H-161844https://github.com/python/cpython/pull/161844
GH-161976https://github.com/python/cpython/pull/161976
9b633f5https://github.com/python/cpython/commit/9b633f55e1124697372caaec319a3b7583531a74
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
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%2F161844
https://github.com/vstinner
vstinner https://github.com/vstinner
https://github.com/python/cpython/pull/161844/files/878a8a5f323c9a8c01354e2dab56c99335477314
https://github.com/ericsnowcurrently
ericsnowcurrently https://github.com/ericsnowcurrently
Please reload this pagehttps://github.com/python/cpython/pull/161844
Please reload this pagehttps://github.com/python/cpython/pull/161844
https://github.com/ZeroIntensity
https://github.com/bedevere-bot
https://github.com/mhsmith
https://github.com/vstinner
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.