René's URL Explorer Experiment


Title: gh-46927: Prevent readline from overriding environment by mbriand · Pull Request #133585 · python/cpython · GitHub

Open Graph Title: gh-46927: Prevent readline from overriding environment by mbriand · Pull Request #133585 · python/cpython

X Title: gh-46927: Prevent readline from overriding environment by mbriand · Pull Request #133585 · python/cpython

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

Open Graph Description: Readline library will set the LINES and COLUMNS environment variables during initialization. One might expect these variables to be updated later on SIGWINCH, but this is not the case with cpython....

X Description: Readline library will set the LINES and COLUMNS environment variables during initialization. One might expect these variables to be updated later on SIGWINCH, but this is not the case with cpython....

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

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:65a34d1d-09c3-db3a-ddcc-f5fe6d2df6df
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9408:361639:3576782:474FB50:6B020B36
html-safe-nonce9ebcc7dda7f29bc37f0a75238d5b25bd63effef26ae0e17c025711c265727c02
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NDA4OjM2MTYzOTozNTc2NzgyOjQ3NEZCNTA6NkIwMjBCMzYiLCJ2aXNpdG9yX2lkIjoiODA4OTU5MzAyNzE4NzgzNzc1MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacbd8da4bc5fd5888c85ff64fa891218a74f1ea233e377ba61efe1f14a218af62c
hovercard-subject-tagpull_request:2504806717
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/133585/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/27dbb2a4fa2bb3eb6c941cb02e382cfcdee6a7193cee0134b3ea48ca881cbdc8/python/cpython/pull/133585
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/27dbb2a4fa2bb3eb6c941cb02e382cfcdee6a7193cee0134b3ea48ca881cbdc8/python/cpython/pull/133585
og:image:altReadline library will set the LINES and COLUMNS environment variables during initialization. One might expect these variables to be updated later on SIGWINCH, but this is not the case with cpython....
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamembriand
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/133585#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F133585
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%2F133585
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/133585
Reloadhttps://github.com/python/cpython/pull/133585
Reloadhttps://github.com/python/cpython/pull/133585
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
mbriandhttps://github.com/mbriand
python:mainhttps://github.com/python/cpython/tree/main
mbriand:fix-issue-46927https://github.com/mbriand/cpython/tree/fix-issue-46927
Conversationhttps://github.com/python/cpython/pull/133585
Commits4 (4)https://github.com/python/cpython/pull/133585/commits
Checkshttps://github.com/python/cpython/pull/133585/checks
Files changedhttps://github.com/python/cpython/pull/133585/files
gh-46927: Prevent readline from overriding environmenthttps://github.com/python/cpython/pull/133585#top
mbriandhttps://github.com/mbriand
python:mainhttps://github.com/python/cpython/tree/main
mbriand:fix-issue-46927https://github.com/mbriand/cpython/tree/fix-issue-46927
https://github.com/mbriand
mbriandhttps://github.com/mbriand
May 7, 2025https://github.com/python/cpython/pull/133585#issue-3046427631
Please reload this pagehttps://github.com/python/cpython/pull/133585
Curses terminal resize problems when Python is in interactive mode #46927https://github.com/python/cpython/issues/46927
Please reload this pagehttps://github.com/python/cpython/pull/133585
https://github.com/apps/python-cla-bot
python-cla-bothttps://github.com/apps/python-cla-bot
May 7, 2025https://github.com/python/cpython/pull/133585#issuecomment-2859101371
Please reload this pagehttps://github.com/python/cpython/pull/133585
https://cla.python.org/
Please reload this pagehttps://github.com/python/cpython/pull/133585
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
May 7, 2025https://github.com/python/cpython/pull/133585#issuecomment-2859101425
require a NEWS entryhttps://devguide.python.org/core-developers/committing/#updating-news-and-what-s-new-in-python
blurb_ithttps://blurb-it.herokuapp.com
blurbhttps://pypi.org/project/blurb/
Please reload this pagehttps://github.com/python/cpython/pull/133585
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
May 7, 2025 https://github.com/python/cpython/pull/133585#ref-issue-1198831062
Curses terminal resize problems when Python is in interactive mode #46927 https://github.com/python/cpython/issues/46927
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
May 7, 2025https://github.com/python/cpython/pull/133585#event-17559091591
https://github.com/mbriand
mbriandhttps://github.com/mbriand
force-pushedhttps://github.com/python/cpython/compare/4465cf17da555b118256c6f079e15a5a16e1b71c..c2e4e290a3dbb68839aeb7d6dd96da1bacefe5d4
4465cf1https://github.com/python/cpython/commit/4465cf17da555b118256c6f079e15a5a16e1b71c
c2e4e29https://github.com/python/cpython/commit/c2e4e290a3dbb68839aeb7d6dd96da1bacefe5d4
Compare https://github.com/python/cpython/compare/4465cf17da555b118256c6f079e15a5a16e1b71c..c2e4e290a3dbb68839aeb7d6dd96da1bacefe5d4
May 8, 2025 07:03https://github.com/python/cpython/pull/133585#event-17568285511
https://github.com/mbriand
mbriandhttps://github.com/mbriand
May 8, 2025 https://github.com/python/cpython/pull/133585#pullrequestreview-2824335514
View reviewed changes https://github.com/python/cpython/pull/133585/files
Modules/readline.chttps://github.com/python/cpython/pull/133585/files#diff-c132c341140255d60e7d57d6d94ceb0b8fa364efac5bdbbd344e2c977c805144
mbriandhttps://github.com/mbriand
May 8, 2025https://github.com/python/cpython/pull/133585#discussion_r2079220430
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/133585
https://github.com/ZeroIntensity
ZeroIntensityhttps://github.com/ZeroIntensity
May 11, 2025 https://github.com/python/cpython/pull/133585#pullrequestreview-2831432933
View reviewed changes https://github.com/python/cpython/pull/133585/files
ZeroIntensityhttps://github.com/ZeroIntensity
https://github.com/python/cpython/pull/133585#pullrequestreview-2831432933
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
test_readlinehttps://github.com/python/cpython/blob/main/Lib/test/test_readline.py
Please reload this pagehttps://github.com/python/cpython/pull/133585
Misc/NEWS.d/next/Core_and_Builtins/2025-05-07-18-31-31.gh-issue-46927.sF02gj.rsthttps://github.com/python/cpython/pull/133585/files#diff-1555567c70b1439365e60c91d9fbdca587ad35d03e755736c4e79c737589fac5
Please reload this pagehttps://github.com/python/cpython/pull/133585
https://github.com/mbriand
mbriandhttps://github.com/mbriand
ZeroIntensityhttps://github.com/ZeroIntensity
May 14, 2025 06:26https://github.com/python/cpython/pull/133585#event-17647112799
https://github.com/ZeroIntensity
ZeroIntensityhttps://github.com/ZeroIntensity
May 14, 2025 https://github.com/python/cpython/pull/133585#pullrequestreview-2840109656
View reviewed changes https://github.com/python/cpython/pull/133585/files
Lib/test/test_readline.pyhttps://github.com/python/cpython/pull/133585/files#diff-b4ac044a458e81aaaf6aad0767e5f5af8e27c310be9ed216e88dfb0839281bfd
Please reload this pagehttps://github.com/python/cpython/pull/133585
https://github.com/mbriand
mbriandhttps://github.com/mbriand
force-pushedhttps://github.com/python/cpython/compare/6325feb97bc68e55f77a37390849ce09bf60b478..a91fe5dc64f038236d4a6dc4290a0f6203f5bf7d
6325febhttps://github.com/python/cpython/commit/6325feb97bc68e55f77a37390849ce09bf60b478
a91fe5dhttps://github.com/python/cpython/commit/a91fe5dc64f038236d4a6dc4290a0f6203f5bf7d
Compare https://github.com/python/cpython/compare/6325feb97bc68e55f77a37390849ce09bf60b478..a91fe5dc64f038236d4a6dc4290a0f6203f5bf7d
May 15, 2025 06:18https://github.com/python/cpython/pull/133585#event-17665403941
https://github.com/mbriand
mbriandhttps://github.com/mbriand
ZeroIntensityhttps://github.com/ZeroIntensity
May 16, 2025 05:32https://github.com/python/cpython/pull/133585#event-17682892410
https://github.com/mbriand
mbriandhttps://github.com/mbriand
Jul 10, 2025https://github.com/python/cpython/pull/133585#issuecomment-3057643568
Please reload this pagehttps://github.com/python/cpython/pull/133585
https://github.com/mbriand
mbriandhttps://github.com/mbriand
force-pushedhttps://github.com/python/cpython/compare/a91fe5dc64f038236d4a6dc4290a0f6203f5bf7d..4d18a9cc50db0f5cfd6d9f767708405527c1f525
a91fe5dhttps://github.com/python/cpython/commit/a91fe5dc64f038236d4a6dc4290a0f6203f5bf7d
4d18a9chttps://github.com/python/cpython/commit/4d18a9cc50db0f5cfd6d9f767708405527c1f525
Compare https://github.com/python/cpython/compare/a91fe5dc64f038236d4a6dc4290a0f6203f5bf7d..4d18a9cc50db0f5cfd6d9f767708405527c1f525
February 13, 2026 15:04https://github.com/python/cpython/pull/133585#event-22769125785
https://github.com/mbriand
mbriandhttps://github.com/mbriand
Feb 13, 2026https://github.com/python/cpython/pull/133585#issuecomment-3897851432
Please reload this pagehttps://github.com/python/cpython/pull/133585
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Apr 24, 2026https://github.com/python/cpython/pull/133585#issuecomment-4313085361
Please reload this pagehttps://github.com/python/cpython/pull/133585
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
stale https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Astale
Apr 24, 2026https://github.com/python/cpython/pull/133585#event-24836423517
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
Jun 26, 2026 https://github.com/python/cpython/pull/133585#ref-issue-1198835832
curses' sigwinch handler isn't visible from python #48199 https://github.com/python/cpython/issues/48199
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
Jun 27, 2026https://github.com/python/cpython/pull/133585#issuecomment-4820418750
mbriand#1https://github.com/mbriand/cpython/pull/1
Please reload this pagehttps://github.com/python/cpython/pull/133585
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
stale https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Astale
Jul 3, 2026https://github.com/python/cpython/pull/133585#event-27516076931
https://github.com/mbriand
mbriandhttps://github.com/mbriand
force-pushedhttps://github.com/python/cpython/compare/d0d6a4e18d9845b8cd5d88aa7bd0ba186790f113..dcf9fe3a1501878d5acbfd4f40185e3286879eaa
d0d6a4ehttps://github.com/python/cpython/commit/d0d6a4e18d9845b8cd5d88aa7bd0ba186790f113
dcf9fe3https://github.com/python/cpython/commit/dcf9fe3a1501878d5acbfd4f40185e3286879eaa
Compare https://github.com/python/cpython/compare/d0d6a4e18d9845b8cd5d88aa7bd0ba186790f113..dcf9fe3a1501878d5acbfd4f40185e3286879eaa
July 3, 2026 09:46https://github.com/python/cpython/pull/133585#event-27522974689
https://github.com/mbriand
mbriandhttps://github.com/mbriand
AA-Turnerhttps://github.com/AA-Turner
AlexWaygoodhttps://github.com/AlexWaygood
FFY00https://github.com/FFY00
JelleZijlstrahttps://github.com/JelleZijlstra
cjw296https://github.com/cjw296
emmatypinghttps://github.com/emmatyping
jaracohttps://github.com/jaraco
kumaraditya303https://github.com/kumaraditya303
vsajiphttps://github.com/vsajip
code ownershttps://github.com/python/cpython/blob/f75028f7ceebee4cbeb46bf040834e2005d57436/.github/CODEOWNERS#L66
July 3, 2026 09:47https://github.com/python/cpython/pull/133585#event-27522975781
https://github.com/mbriand
mbriandhttps://github.com/mbriand
DinoVhttps://github.com/DinoV
Eclips4https://github.com/Eclips4
Fidget-Spinnerhttps://github.com/Fidget-Spinner
Yhg1shttps://github.com/Yhg1s
asvetlovhttps://github.com/asvetlov
brandtbucherhttps://github.com/brandtbucher
brettcannonhttps://github.com/brettcannon
carljmhttps://github.com/carljm
diegorussohttps://github.com/diegorusso
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
freakboy3742https://github.com/freakboy3742
iritkatrielhttps://github.com/iritkatriel
isidenticalhttps://github.com/isidentical
markshannonhttps://github.com/markshannon
methanehttps://github.com/methane
mhsmithhttps://github.com/mhsmith
ncoghlanhttps://github.com/ncoghlan
savannahostrowskihttps://github.com/savannahostrowski
sethmlarsonhttps://github.com/sethmlarson
willingchttps://github.com/willingc
code ownershttps://github.com/python/cpython/blob/f75028f7ceebee4cbeb46bf040834e2005d57436/.github/CODEOWNERS#L188
July 3, 2026 09:47https://github.com/python/cpython/pull/133585#event-27522980529
mbriandhttps://github.com/mbriand
July 3, 2026 11:47https://github.com/python/cpython/pull/133585#commits-pushed-02d53ae
https://github.com/mbriand
pythongh-46927https://github.com/python/cpython/issues/46927
: Prevent readline from overriding environmenthttps://github.com/python/cpython/pull/133585/commits/02d53ae3080f7128f49be34acd52d731e8253f58
02d53aehttps://github.com/python/cpython/pull/133585/commits/02d53ae3080f7128f49be34acd52d731e8253f58
https://github.com/mbriand
Disable rl_change_environment on applehttps://github.com/python/cpython/pull/133585/commits/775ae4a00c55f5ccd3d77119b0591b9a928c0ed6
775ae4ahttps://github.com/python/cpython/pull/133585/commits/775ae4a00c55f5ccd3d77119b0591b9a928c0ed6
https://github.com/mbriand
Add testhttps://github.com/python/cpython/pull/133585/commits/8bbc1cf2fc34caa414f9b75d03a913ec3f6927c7
8bbc1cfhttps://github.com/python/cpython/pull/133585/commits/8bbc1cf2fc34caa414f9b75d03a913ec3f6927c7
https://github.com/serhiy-storchaka
https://github.com/claude
https://github.com/mbriand
pythongh-46927https://github.com/python/cpython/issues/46927
: Detect rl_change_environment with a configure probehttps://github.com/python/cpython/pull/133585/commits/e3bce0d1810fda69ce2c50ce91b183825726870e
e3bce0dhttps://github.com/python/cpython/pull/133585/commits/e3bce0d1810fda69ce2c50ce91b183825726870e
https://github.com/mbriand
mbriandhttps://github.com/mbriand
Jul 3, 2026https://github.com/python/cpython/pull/133585#issuecomment-4874980217
mbriand#1https://github.com/mbriand/cpython/pull/1
Please reload this pagehttps://github.com/python/cpython/pull/133585
https://github.com/mbriand
mbriandhttps://github.com/mbriand
Jul 3, 2026https://github.com/python/cpython/pull/133585#issuecomment-4874988608
Please reload this pagehttps://github.com/python/cpython/pull/133585
https://github.com/mbriand
mbriandhttps://github.com/mbriand
Jul 6, 2026 https://github.com/python/cpython/pull/133585#ref-pullrequest-4818355226
gh-46927: Prevent readline from overriding environment #153184 https://github.com/python/cpython/pull/153184
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%2F133585
https://github.com/ZeroIntensity
ZeroIntensity https://github.com/ZeroIntensity
https://github.com/python/cpython/pull/133585/files/f14a8d6d8a8d1d656b58d87d3dadfe72c5c60eb8
Please reload this pagehttps://github.com/python/cpython/pull/133585
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/133585
https://github.com/mbriand
https://github.com/serhiy-storchaka
https://github.com/ZeroIntensity
https://github.com/StanFromIreland
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.