Title: clean up obsolete .pyo references · Issue #162531 · python/cpython · GitHub
Open Graph Title: clean up obsolete .pyo references · Issue #162531 · python/cpython
X Title: clean up obsolete .pyo references · Issue #162531 · python/cpython
Description: Bug report python has written optimized bytecode to .pyc files since 3.5. make pycremoval, the interpreter guide, and zipimport still refer to .pyo files. https://discuss.python.org/t/updating-old-patch-to-run-on-3-16-getting-weird-error...
Open Graph Description: Bug report python has written optimized bytecode to .pyc files since 3.5. make pycremoval, the interpreter guide, and zipimport still refer to .pyo files. https://discuss.python.org/t/updating-old-...
X Description: Bug report python has written optimized bytecode to .pyc files since 3.5. make pycremoval, the interpreter guide, and zipimport still refer to .pyo files. https://discuss.python.org/t/updating-old-...
Opengraph URL: https://github.com/python/cpython/issues/162531
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"clean up obsolete .pyo references","articleBody":"### Bug report\n\npython has written optimized bytecode to .pyc files since 3.5. make pycremoval, the interpreter guide, and zipimport still refer to .pyo files.\n\nhttps://discuss.python.org/t/updating-old-patch-to-run-on-3-16-getting-weird-errors/110249/9\n\n### CPython versions tested on:\n\n3.16\n\n### Operating systems tested on:\n\nmacOS\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-162532\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/tonghuaroot","@type":"Person","name":"tonghuaroot"},"datePublished":"2026-11-24T07:15:31Z","url":"https://github.com/python/cpython/issues/162531"}
| 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 | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:4d05ea9b-5d07-02f9-e1fc-5728ac6b6715 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D7DC:223718:D3FC7C:11D36F8:6B064C17 |
| html-safe-nonce | d49c5aa1363abc7c6ea42b365c426dba1ee966d65bc1fe255d1466f8e8eee8a1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEN0RDOjIyMzcxODpEM0ZDN0M6MTFEMzZGODo2QjA2NEMxNyIsInZpc2l0b3JfaWQiOiIzNjE3NDk1NDg1OTkwMTk0MTk5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | eaab4f18ff24b4637c8f273f7f17608a66b63b095c5328b01dadab15894c45b2 |
| hovercard-subject-tag | issue:6576675789 |
| 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/162531/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c1227adf6c1d78013958b69b2b0be1b8a80609314d325619a838614e1e3c7b30/python/cpython/issues/162531 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c1227adf6c1d78013958b69b2b0be1b8a80609314d325619a838614e1e3c7b30/python/cpython/issues/162531 |
| og:image:alt | Bug report python has written optimized bytecode to .pyc files since 3.5. make pycremoval, the interpreter guide, and zipimport still refer to .pyo files. https://discuss.python.org/t/updating-old-... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tonghuaroot |
| hostname | github.com |
| expected-hostname | github.com |
| None | 772b6997ca4daa0428dd49a25d76052e765555ae560fe9c88517eb828bbd861e |
| 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 | f1f9a08f7c769a37f1dfc18ad43d463c222a7eea |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width