| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:e3ce6911-f1d1-faea-47b2-b67e9a1de9f2 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A68C:3A8E64:1AB53BE:234AA09:6B021E35 |
| html-safe-nonce | 9d7653313f2a1c1d8268d43c0ddb8d8e940e296c93183f7529435a21503a5e7d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNjhDOjNBOEU2NDoxQUI1M0JFOjIzNEFBMDk6NkIwMjFFMzUiLCJ2aXNpdG9yX2lkIjoiMzg0NTAzNDMxNDkzNzAxNTg2MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 9560d1de883a60817164e31a76b0af88346d5f4c8869f024100f38333eb5cd43 |
| hovercard-subject-tag | pull_request:2866338737 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/139380/files |
| twitter:image | https://avatars.githubusercontent.com/u/10796600?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/10796600?s=400&v=4 |
| og:image:alt | The issue with the tests is that those that don't specify an environment actually use -I and the current environment. Even if the latter is modified with a different PYTHON_HISTORY, because of ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/139380/files#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F139380%2Ffiles |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F139380%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 |
| Reload | https://github.com/python/cpython/pull/139380/files |
| Reload | https://github.com/python/cpython/pull/139380/files |
| Reload | https://github.com/python/cpython/pull/139380/files |
| python | https://github.com/python |
| cpython | https://github.com/python/cpython |
| Code | https://github.com/python/cpython |
| Issues5k+ (5k+) | https://github.com/python/cpython/issues |
| Pull requests2.4k (2.4k) | https://github.com/python/cpython/pulls |
| Actions | https://github.com/python/cpython/actions |
| Projects | https://github.com/python/cpython/projects |
| Security and quality | https://github.com/python/cpython/security |
| Insights | https://github.com/python/cpython/insights |
| Sign up for GitHub
| https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose |
| terms of service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose |
| picnixz | https://github.com/picnixz |
| python:main | https://github.com/python/cpython/tree/main |
| picnixz:fix/repl/history-alteration-139352 | https://github.com/picnixz/cpython/tree/fix/repl/history-alteration-139352 |
|
Conversation
43
| https://github.com/python/cpython/pull/139380 |
|
Commits
12
| https://github.com/python/cpython/pull/139380/commits |
|
Checks
0
| https://github.com/python/cpython/pull/139380/checks |
|
Files changed
| https://github.com/python/cpython/pull/139380/files |
| Please reload this page | https://github.com/python/cpython/pull/139380/files |
|
gh-139352: prevent altering PYTHON_HISTORY file when running REPL tests
| https://github.com/python/cpython/pull/139380/files#top |
|
Show all changes
12 commits
| https://github.com/python/cpython/pull/139380/files |
|
ef22044
prevent altering `PYTHON_HISTORY` file when running REPL tests
picnixz Sep 27, 2025
| https://github.com/python/cpython/pull/139380/commits/ef220447fb8e4aa8428ae98110e46b60a48fd4fb |
|
244cd0b
ensure that PYTHON_HISTORY is not altered
picnixz Sep 27, 2025
| https://github.com/python/cpython/pull/139380/commits/244cd0b6da23e63c8ded4c22a1f61770aecf4ba4 |
|
70ba65a
fix WASI build
picnixz Sep 27, 2025
| https://github.com/python/cpython/pull/139380/commits/70ba65a9e134ee87f341e713b7d099cfce6d2e98 |
|
41ceb15
correctly call setUp/tearDown hooks
picnixz Sep 27, 2025
| https://github.com/python/cpython/pull/139380/commits/41ceb15cf2dad1805838f6f8ddf5fddae736c614 |
|
a574767
run checks after tearDown()
picnixz Sep 28, 2025
| https://github.com/python/cpython/pull/139380/commits/a574767b711079715048fa84030b9cb0ee2ba927 |
|
e44596e
add eager checks in regrtest
picnixz Sep 28, 2025
| https://github.com/python/cpython/pull/139380/commits/e44596e975fe3d49e72ca8d235e966724b9f2fc1 |
|
5126bf0
fix editline analysis on macOS
picnixz Sep 29, 2025
| https://github.com/python/cpython/pull/139380/commits/5126bf0a815d783e6797f653abc1cd4d9eced731 |
|
6237cc7
fix mypy
picnixz Sep 29, 2025
| https://github.com/python/cpython/pull/139380/commits/6237cc779fbd43cc790eba7a2c284510f0550c71 |
|
9d31898
fix possible unbound errors
picnixz Sep 29, 2025
| https://github.com/python/cpython/pull/139380/commits/9d318985eac5b4768ab68f6a05bc920b57083761 |
|
1c7e2d9
fixup!
picnixz Sep 29, 2025
| https://github.com/python/cpython/pull/139380/commits/1c7e2d9b083382254ad5c7c24bdd679ffbd94ddc |
|
21b3083
simplify!
picnixz Sep 29, 2025
| https://github.com/python/cpython/pull/139380/commits/21b308371db3005e9cae2976ab9e7c3d29e57e99 |
|
8939460
fix C readline
picnixz Oct 5, 2025
| https://github.com/python/cpython/pull/139380/commits/8939460235bedd2c432acf169d0db2315d2839d7 |
|
Clear filters
| https://github.com/python/cpython/pull/139380/files |
| Please reload this page | https://github.com/python/cpython/pull/139380/files |
| Please reload this page | https://github.com/python/cpython/pull/139380/files |
|
readline.py
| https://github.com/python/cpython/pull/139380/files#diff-42f9fa1db06717da03a700b0766e97629aabf111c0afab47f2f32867c81d87a6 |
|
main.py
| https://github.com/python/cpython/pull/139380/files#diff-90b1258926545f5c3c67e7de0cb5f50dc293b41c7a075a3eb316df99f3b875d5 |
|
script_helper.py
| https://github.com/python/cpython/pull/139380/files#diff-ab537d38e290ab1e31c5f9dc71ceadec8f26de787bac9c3143d3528b482d2156 |
|
test_cmd_line_script.py
| https://github.com/python/cpython/pull/139380/files#diff-c69c5c4fe60c0f6e7d6b899735e3671397db217175cdf3f4906087d84664e4fd |
|
test_pyrepl.py
| https://github.com/python/cpython/pull/139380/files#diff-527def17e95277d68de9ccbef2358e5b89aba5407163ff8d0777936bb3f3bfab |
|
test_repl.py
| https://github.com/python/cpython/pull/139380/files#diff-5401943d2b776b0ff00529833651ea8a9ad5ecbbf064efc86a5caa7d746ecd91 |
|
2025-09-27-12-02-49.gh-issue-139352.dblQRA.rst
| https://github.com/python/cpython/pull/139380/files#diff-722029784dc3a89ac95f9b4ae235fb683c39b38981f7570f4d63fbc4b98a82af |
|
readline.c
| https://github.com/python/cpython/pull/139380/files#diff-c132c341140255d60e7d57d6d94ceb0b8fa364efac5bdbbd344e2c977c805144 |
|
| https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L571 |
| Lib/_pyrepl/readline.py | https://github.com/python/cpython/pull/139380/files#diff-42f9fa1db06717da03a700b0766e97629aabf111c0afab47f2f32867c81d87a6 |
|
View file
| https://github.com/picnixz/cpython/blob/8939460235bedd2c432acf169d0db2315d2839d7/Lib/_pyrepl/readline.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/139380/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/139380/files#diff-42f9fa1db06717da03a700b0766e97629aabf111c0afab47f2f32867c81d87a6 |
|
| https://github.com/python/cpython/pull/139380/files#diff-42f9fa1db06717da03a700b0766e97629aabf111c0afab47f2f32867c81d87a6 |
|
| https://github.com/python/cpython/pull/139380/files#diff-42f9fa1db06717da03a700b0766e97629aabf111c0afab47f2f32867c81d87a6 |
|
| https://github.com/python/cpython/pull/139380/files#diff-42f9fa1db06717da03a700b0766e97629aabf111c0afab47f2f32867c81d87a6 |
| ambv | https://github.com/ambv |
| Oct 6, 2025 | https://github.com/python/cpython/pull/139380/files#r2406331677 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/139380/files |
|
| https://github.com/python/cpython/pull/139380/files#diff-42f9fa1db06717da03a700b0766e97629aabf111c0afab47f2f32867c81d87a6 |
|
| https://github.com/python/cpython/pull/139380/files#diff-42f9fa1db06717da03a700b0766e97629aabf111c0afab47f2f32867c81d87a6 |
| ambv | https://github.com/ambv |
| Oct 6, 2025 | https://github.com/python/cpython/pull/139380/files#r2406343045 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/139380/files |
|
| https://github.com/python/cpython/pull/139380/files#diff-42f9fa1db06717da03a700b0766e97629aabf111c0afab47f2f32867c81d87a6 |
|
| https://github.com/python/cpython/pull/139380/files#diff-42f9fa1db06717da03a700b0766e97629aabf111c0afab47f2f32867c81d87a6 |
| Lib/test/libregrtest/main.py | https://github.com/python/cpython/pull/139380/files#diff-90b1258926545f5c3c67e7de0cb5f50dc293b41c7a075a3eb316df99f3b875d5 |
|
View file
| https://github.com/picnixz/cpython/blob/8939460235bedd2c432acf169d0db2315d2839d7/Lib/test/libregrtest/main.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/139380/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/139380/files#diff-90b1258926545f5c3c67e7de0cb5f50dc293b41c7a075a3eb316df99f3b875d5 |
|
| https://github.com/python/cpython/pull/139380/files#diff-90b1258926545f5c3c67e7de0cb5f50dc293b41c7a075a3eb316df99f3b875d5 |
|
| https://github.com/python/cpython/pull/139380/files#diff-90b1258926545f5c3c67e7de0cb5f50dc293b41c7a075a3eb316df99f3b875d5 |
| ambv | https://github.com/ambv |
| Oct 6, 2025 | https://github.com/python/cpython/pull/139380/files#r2406365049 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/139380/files |
|
| https://github.com/python/cpython/pull/139380/files#diff-90b1258926545f5c3c67e7de0cb5f50dc293b41c7a075a3eb316df99f3b875d5 |
|
| https://github.com/python/cpython/pull/139380/files#diff-90b1258926545f5c3c67e7de0cb5f50dc293b41c7a075a3eb316df99f3b875d5 |
|
| https://github.com/python/cpython/pull/139380/files#diff-90b1258926545f5c3c67e7de0cb5f50dc293b41c7a075a3eb316df99f3b875d5 |
| Lib/test/support/script_helper.py | https://github.com/python/cpython/pull/139380/files#diff-ab537d38e290ab1e31c5f9dc71ceadec8f26de787bac9c3143d3528b482d2156 |
|
View file
| https://github.com/picnixz/cpython/blob/8939460235bedd2c432acf169d0db2315d2839d7/Lib/test/support/script_helper.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/139380/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/139380/files#diff-ab537d38e290ab1e31c5f9dc71ceadec8f26de787bac9c3143d3528b482d2156 |
|
| https://github.com/python/cpython/pull/139380/files#diff-ab537d38e290ab1e31c5f9dc71ceadec8f26de787bac9c3143d3528b482d2156 |
|
| https://github.com/python/cpython/pull/139380/files#diff-ab537d38e290ab1e31c5f9dc71ceadec8f26de787bac9c3143d3528b482d2156 |
| Lib/test/test_cmd_line_script.py | https://github.com/python/cpython/pull/139380/files#diff-c69c5c4fe60c0f6e7d6b899735e3671397db217175cdf3f4906087d84664e4fd |
|
View file
| https://github.com/picnixz/cpython/blob/8939460235bedd2c432acf169d0db2315d2839d7/Lib/test/test_cmd_line_script.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/139380/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/139380/files#diff-c69c5c4fe60c0f6e7d6b899735e3671397db217175cdf3f4906087d84664e4fd |
|
| https://github.com/python/cpython/pull/139380/files#diff-c69c5c4fe60c0f6e7d6b899735e3671397db217175cdf3f4906087d84664e4fd |
|
| https://github.com/python/cpython/pull/139380/files#diff-c69c5c4fe60c0f6e7d6b899735e3671397db217175cdf3f4906087d84664e4fd |
|
| https://github.com/python/cpython/pull/139380/files#diff-c69c5c4fe60c0f6e7d6b899735e3671397db217175cdf3f4906087d84664e4fd |
|
| https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L572 |
| Lib/test/test_pyrepl/test_pyrepl.py | https://github.com/python/cpython/pull/139380/files#diff-527def17e95277d68de9ccbef2358e5b89aba5407163ff8d0777936bb3f3bfab |
|
View file
| https://github.com/picnixz/cpython/blob/8939460235bedd2c432acf169d0db2315d2839d7/Lib/test/test_pyrepl/test_pyrepl.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/139380/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/139380/files#diff-527def17e95277d68de9ccbef2358e5b89aba5407163ff8d0777936bb3f3bfab |
|
| https://github.com/python/cpython/pull/139380/files#diff-527def17e95277d68de9ccbef2358e5b89aba5407163ff8d0777936bb3f3bfab |
|
| https://github.com/python/cpython/pull/139380/files#diff-527def17e95277d68de9ccbef2358e5b89aba5407163ff8d0777936bb3f3bfab |
|
| https://github.com/python/cpython/pull/139380/files#diff-527def17e95277d68de9ccbef2358e5b89aba5407163ff8d0777936bb3f3bfab |
|
| https://github.com/python/cpython/pull/139380/files#diff-527def17e95277d68de9ccbef2358e5b89aba5407163ff8d0777936bb3f3bfab |
|
| https://github.com/python/cpython/pull/139380/files#diff-527def17e95277d68de9ccbef2358e5b89aba5407163ff8d0777936bb3f3bfab |
|
| https://github.com/python/cpython/pull/139380/files#diff-527def17e95277d68de9ccbef2358e5b89aba5407163ff8d0777936bb3f3bfab |
|
| https://github.com/python/cpython/pull/139380/files#diff-527def17e95277d68de9ccbef2358e5b89aba5407163ff8d0777936bb3f3bfab |
| Lib/test/test_repl.py | https://github.com/python/cpython/pull/139380/files#diff-5401943d2b776b0ff00529833651ea8a9ad5ecbbf064efc86a5caa7d746ecd91 |
|
View file
| https://github.com/picnixz/cpython/blob/8939460235bedd2c432acf169d0db2315d2839d7/Lib/test/test_repl.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/139380/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/139380/files#diff-5401943d2b776b0ff00529833651ea8a9ad5ecbbf064efc86a5caa7d746ecd91 |
|
| https://github.com/python/cpython/pull/139380/files#diff-5401943d2b776b0ff00529833651ea8a9ad5ecbbf064efc86a5caa7d746ecd91 |
|
| https://github.com/python/cpython/pull/139380/files#diff-5401943d2b776b0ff00529833651ea8a9ad5ecbbf064efc86a5caa7d746ecd91 |
|
| https://github.com/python/cpython/pull/139380/files#diff-5401943d2b776b0ff00529833651ea8a9ad5ecbbf064efc86a5caa7d746ecd91 |
|
| https://github.com/python/cpython/pull/139380/files#diff-5401943d2b776b0ff00529833651ea8a9ad5ecbbf064efc86a5caa7d746ecd91 |
|
| https://github.com/python/cpython/pull/139380/files#diff-5401943d2b776b0ff00529833651ea8a9ad5ecbbf064efc86a5caa7d746ecd91 |
|
| https://github.com/python/cpython/pull/139380/files#diff-5401943d2b776b0ff00529833651ea8a9ad5ecbbf064efc86a5caa7d746ecd91 |
| Misc/NEWS.d/next/Tests/2025-09-27-12-02-49.gh-issue-139352.dblQRA.rst | https://github.com/python/cpython/pull/139380/files#diff-722029784dc3a89ac95f9b4ae235fb683c39b38981f7570f4d63fbc4b98a82af |
|
View file
| https://github.com/picnixz/cpython/blob/8939460235bedd2c432acf169d0db2315d2839d7/Misc/NEWS.d/next/Tests/2025-09-27-12-02-49.gh-issue-139352.dblQRA.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/139380/{{ revealButtonHref }} |
| Please reload this page | https://github.com/python/cpython/pull/139380/files |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |