Open
Description
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
- gh-126662: harmonize naming for three namedtuple base classes in urllib.parse #126663
- gh-126662: naming consistency for signal.ItimerError #126712
- gh-126662: consistent naming for functools._CacheInfo #126721
- gh-126662: Naming consistency for shutil._ntuple_diskusage #126723
- gh-126662: Name consistency for xml.parsers.expat.XMLParserType #126724