Drop restriction that meta.__prepare__() must return a dict (subclass)

Aperta
#61,623 6 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
python
Ambito
compilers

Direzione di ricerca

Start by reading the linked type-namespace-restriction.diff patch, then review the dependent issues bpo-17422 and bpo-31588 for related constraints and failure cases. Done means the restriction on meta.prepare() is addressed consistently and the relevant class-creation behavior is verified by tests.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

interpreter-core type-feature
BPO 17421
Nosy @loewis, @ncoghlan, @vstinner, @durban, @ericsnowcurrently, @serhiy-storchaka, @cdonovick
Dependencies
  • bpo-17422: language reference should specify restrictions on class namespace
  • bpo-31588: SystemError in class creation in case of a metaclass with a bad prepare() method
  • Files
  • type-namespace-restriction.diff
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = None
    created_at = <Date 2013-03-14.20:20:27.737>
    labels = ['type-feature']
    title = 'Drop restriction that meta.__prepare__() must return a dict (subclass)'
    updated_at = <Date 2019-03-12.22:17:10.507>
    user = 'https://github.com/ericsnowcurrently'
    

    bugs.python.org fields:

    activity = <Date 2019-03-12.22:17:10.507>
    actor = 'donovick'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = []
    creation = <Date 2013-03-14.20:20:27.737>
    creator = 'eric.snow'
    dependencies = ['17422', '31588']
    files = ['29408']
    hgrepos = []
    issue_num = 17421
    keywords = ['patch']
    message_count = 6.0
    messages = ['184187', '184203', '184206', '184309', '303022', '337814']
    nosy_count = 7.0
    nosy_names = ['loewis', 'ncoghlan', 'vstinner', 'daniel.urban', 'eric.snow', 'serhiy.storchaka', 'donovick']
    pr_nums = []
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue17421'
    versions = ['Python 3.4']
    

    Lingua principale
    Python
    Stelle
    77.2k
    Fork
    36k
    Merge medio
    1g 9h
    PR unite (30g)
    558

    Guida per i contributori

    Apri la guida per i contributori

    Come iniziare

    1. Leggi tutta la issue e poi la guida ai contributi del progetto.
    2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
    3. Fai un fork del repository e lavora su un branch.
    4. Apri una pull request che faccia riferimento al numero della issue.

    Altre issue di python/cpython

    Tutte le issue di python/cpython

    Issue simili

    Altre issue su Python

    Ricevi le nuove issue nella tua casella

    Un breve riepilogo di issue GitHub adatte ai principianti.