Naming consistency for various types
Nessuno ha ancora preso questa issue.
- Lingua principale
- Python
- Stelle
- 77.2k
- Fork
- 35.9k
- Metriche di merge delle PR
- Metriche PR in attesa
Descrizione
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: https://github.com/python/cpython/issues/100129
Linked PRs
- gh-126663
- gh-126712
- gh-126721
- gh-126723
- gh-126724
- gh-137122
- gh-137123
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia leggendo le discussioni Discourse collegate e la issue 100129 correlata, quindi esamina le PRs 126663, 126712, 126721, 126723, 126724, 137122 e 137123. Usa l’elenco dei tipi interessati riportato lì per determinare l’ambito concordato; il lavoro è completato quando i tipi selezionati riportano in modo coerente nomi importabili e vengono affrontate le questioni indicate relative a pickling e typeshed.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- python
- Ambito
- backend
- Tipo di issue
- Funzionalità
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 20/100