Title: Allow omitting `_pyrepl` module · Issue #145035 · python/cpython · GitHub
Open Graph Title: Allow omitting `_pyrepl` module · Issue #145035 · python/cpython
X Title: Allow omitting `_pyrepl` module · Issue #145035 · python/cpython
Description: Currently, launching Python without the _pyrepl module present causes it to abort. It would be better if it simply went into regular repl mode, rather than requiring the user to set an env var, as this would allow distributors to simply ...
Open Graph Description: Currently, launching Python without the _pyrepl module present causes it to abort. It would be better if it simply went into regular repl mode, rather than requiring the user to set an env var, as ...
X Description: Currently, launching Python without the _pyrepl module present causes it to abort. It would be better if it simply went into regular repl mode, rather than requiring the user to set an env var, as ...
Opengraph URL: https://github.com/python/cpython/issues/145035
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Allow omitting `_pyrepl` module","articleBody":"Currently, launching Python without the `_pyrepl` module present causes it to abort. It would be better if it simply went into regular repl mode, rather than requiring the user to set an env var, as this would allow distributors to simply omit the module rather than having to patch and rebuild CPython.\n\nhttps://github.com/python/cpython/blob/175ab31377d9e616efb95168099d8c2c9036504a/Modules/main.c#L281-L286\n\nI would prefer messages about `ModuleNotFoundError` here to only be shown in verbose mode, though other errors could still cause a full failure (if that's what the maintainers think is best... I disagree, but it's not important to me like `ModuleNotFoundError` would be).\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-145159\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/zooba","@type":"Person","name":"zooba"},"datePublished":"2026-02-20T09:51:12.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/145035/cpython/issues/145035"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:967c3975-086e-1c30-8fbf-4239f1726166 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ADFA:A6E9E:1148136:16F4AC5:6A5420A9 |
| html-safe-nonce | bdd1646f4d8601a363214a28ca462f0cad84251ab7e4a19202ba9d8935158b43 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBREZBOkE2RTlFOjExNDgxMzY6MTZGNEFDNTo2QTU0MjBBOSIsInZpc2l0b3JfaWQiOiIyNjExMDI0ODExMzE3Nzk3MDMzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 3238e50a6d3ffd64b8defdd5b42c1fc6cf9749443997cc151b567d260eb61b3a |
| hovercard-subject-tag | issue:3967606894 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/145035/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2abcee265db02f1a6c3da7d6427670c59be874d994b1e219b98256f5016f12be/python/cpython/issues/145035 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2abcee265db02f1a6c3da7d6427670c59be874d994b1e219b98256f5016f12be/python/cpython/issues/145035 |
| og:image:alt | Currently, launching Python without the _pyrepl module present causes it to abort. It would be better if it simply went into regular repl mode, rather than requiring the user to set an env var, as ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | zooba |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| 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 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width