Title: `pydoc` inncorrectly assumes a module has documentation and where · Issue #139971 · python/cpython · GitHub
Open Graph Title: `pydoc` inncorrectly assumes a module has documentation and where · Issue #139971 · python/cpython
X Title: `pydoc` inncorrectly assumes a module has documentation and where · Issue #139971 · python/cpython
Description: Bug report Bug description: >>> import encodings >>> help(encodings) Help on package encodings: NAME encodings - Standard "encodings" Package MODULE REFERENCE https://docs.python.org/3.14/library/encodings.html The following documentatio...
Open Graph Description: Bug report Bug description: >>> import encodings >>> help(encodings) Help on package encodings: NAME encodings - Standard "encodings" Package MODULE REFERENCE https://docs.python.org/3.14/library/e...
X Description: Bug report Bug description: >>> import encodings >>> help(encodings) Help on package encodings: NAME encodings - Standard "encodings" Package MODULE REFERENCE https://do...
Opengraph URL: https://github.com/python/cpython/issues/139971
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`pydoc` inncorrectly assumes a module has documentation and where","articleBody":"# Bug report\n\n### Bug description:\n\n```python\n\u003e\u003e\u003e import encodings\n\u003e\u003e\u003e help(encodings)\nHelp on package encodings:\n\nNAME\n encodings - Standard \"encodings\" Package\n\nMODULE REFERENCE\n https://docs.python.org/3.14/library/encodings.html\n \n The following documentation is automatically generated from the Python\n source files. It may be incomplete, incorrect or include features that\n are considered implementation detail and may vary between Python\n implementations. When in doubt, consult the module reference at the\n location listed above.\n\nDESCRIPTION\n Standard Python encoding modules are stored in this package\n directory.\n \n Codec modules must have names corresponding to normalized encoding\n names as defined in the normalize_encoding() function below, e.g.\n 'utf-8' must be implemented by the module 'utf_8.py'.\n \n Each codec module must export the following interface:\n[lines 1-23]\n\u003e\u003e\u003e print('\\n'.join(x for x in pydoc.render_doc(encodings).splitlines() if 'http' in x))\n https://docs.python.org/3.14/library/encodings.html\n```\n\nThe URL included here is not valid, and seems to be invalid at least back to Python 3.11.\n\nI can't say if this has been deleted by mistake or if it was cleaned out and the documentation should no longer include it.\n\n### CPython versions tested on:\n\n3.14\n\n### Operating systems tested on:\n\nmacOS\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-139995\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/tripleee","@type":"Person","name":"tripleee"},"datePublished":"2025-10-11T19:13:38.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/139971/cpython/issues/139971"}
| 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:7496f6a9-8e84-4be0-77fa-e877b8071289 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A1F2:233E0B:33E4C51:49999B4:6A5124B8 |
| html-safe-nonce | de2f9d0b802fca2ed32784112b0dc95b352e8d35bcd947226224cbb9219d3e60 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMUYyOjIzM0UwQjozM0U0QzUxOjQ5OTk5QjQ6NkE1MTI0QjgiLCJ2aXNpdG9yX2lkIjoiNzQwMjU5MjQwOTUxNzg5Mjc5MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 71295e9eb5d364aa97154a91df1db265fe925ac4bd619434f4e46455312b6262 |
| hovercard-subject-tag | issue:3506255948 |
| 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/139971/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0e79e55abeb0e86ea5896c9cb6fcdf508a66eeebdde07e3c70071f48db0d267e/python/cpython/issues/139971 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0e79e55abeb0e86ea5896c9cb6fcdf508a66eeebdde07e3c70071f48db0d267e/python/cpython/issues/139971 |
| og:image:alt | Bug report Bug description: >>> import encodings >>> help(encodings) Help on package encodings: NAME encodings - Standard "encodings" Package MODULE REFERENCE https://docs.python.org/3.14/library/e... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tripleee |
| hostname | github.com |
| expected-hostname | github.com |
| None | 689b683944b0d7f015d0e776452c970832fa81b82dc15284469b556ecced715b |
| 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 | 942b51ed3bd5feee3d5e2719f890a5fe286edbbb |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width