Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

pydoc inncorrectly assumes a module has documentation and where #139971

Copy link
Copy link
@tripleee

Description

@tripleee
Issue body actions

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 documentation is automatically generated from the Python
    source files.  It may be incomplete, incorrect or include features that
    are considered implementation detail and may vary between Python
    implementations.  When in doubt, consult the module reference at the
    location listed above.

DESCRIPTION
        Standard Python encoding modules are stored in this package
        directory.
    
        Codec modules must have names corresponding to normalized encoding
        names as defined in the normalize_encoding() function below, e.g.
        'utf-8' must be implemented by the module 'utf_8.py'.
    
        Each codec module must export the following interface:
[lines 1-23]
>>> print('\n'.join(x for x in pydoc.render_doc(encodings).splitlines() if 'http' in x))
    https://docs.python.org/3.14/library/encodings.html

The URL included here is not valid, and seems to be invalid at least back to Python 3.11.

I can't say if this has been deleted by mistake or if it was cleaned out and the documentation should no longer include it.

CPython versions tested on:

3.14

Operating systems tested on:

macOS

Linked PRs

Reactions are currently unavailable

Metadata

Metadata

Labels

stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.