Skip to content

Naming consistency for various types #126662

Open
@tungol

Description

@tungol

Feature or enhancement

Proposal:

A number of classes self-report names which are not an importable name for that type.
The inconsistency means that the class itself can’t be pickled, typeshed can’t match their display name, and can cause minor confusion. I’m interested in getting these to be consistent where possible.

An accounting of all the types I know about in the category is available at the linked discuss thread.

Has this already been discussed elsewhere?

I have already discussed this feature proposal on Discourse

Links to previous discussion of this feature:

Recent discuss thread: https://discuss.python.org/t/naming-consistency-for-various-types/70401

Another related discussion for types exposed in the types module is available here: #100129

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    stdlibPython modules in the Lib dirtype-featureA feature request or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions