python / python/cpython

ctypes: fail to create a _ctypes._SimpleCData subclass using a closure like calling super() without arguments

Offen
#73,456 15 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

3.11 3.12 3.13 topic-ctypes type-bug
Vorherrschende Sprache
Python
Sterne
77.2k
Forks
36k
Ø Merge
1 T. 9 Std.
Gemergte PRs (30 T.)
558

Beschreibung

BPO 29270
Nosy @ncoghlan, @vstinner, @serhiy-storchaka, @eryksun, @https://github.com/hakril, @waveform80
Files
  • issue_29270_01.patch
  • 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 2017-01-13.22:10:22.119>
    labels = ['ctypes', 'type-bug', '3.9', '3.10', '3.11']
    title = 'ctypes: fail to create a _ctypes._SimpleCData subclass using a closure like calling super() without arguments'
    updated_at = <Date 2022-03-28.22:12:40.498>
    user = 'https://github.com/waveform80'
    

    bugs.python.org fields:

    activity = <Date 2022-03-28.22:12:40.498>
    actor = 'vstinner'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['ctypes']
    creation = <Date 2017-01-13.22:10:22.119>
    creator = 'Dave Jones'
    dependencies = []
    files = ['46285']
    hgrepos = []
    issue_num = 29270
    keywords = ['patch']
    message_count = 14.0
    messages = ['285444', '285450', '285454', '285469', '285473', '285474', '285475', '285480', '286287', '286310', '313985', '355368', '360252', '416219']
    nosy_count = 7.0
    nosy_names = ['ncoghlan', 'vstinner', 'serhiy.storchaka', 'eryksun', 'hakril', 'Dave Jones', 'Asdger Gdsfe']
    pr_nums = []
    priority = 'normal'
    resolution = None
    stage = 'needs patch'
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue29270'
    versions = ['Python 3.9', 'Python 3.10', 'Python 3.11']
    

    Linked PRs
    • gh-104576

    Beitragsleitfaden

    Beitragsleitfaden öffnen

    Erste Schritte

    1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
    2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
    3. Forke das Repository und arbeite in einem Branch.
    4. Öffne einen Pull Request, der die Issue-Nummer nennt.

    Rechercherichtung

    Beginne mit der Durchsicht des verknüpften issue_29270_01.patch und des PR gh-104576. Untersuche anschließend die ctypes-Implementierung und die vorhandenen Tests rund um die Erstellung von Subklassen von _ctypes._SimpleCData. Als erledigt gilt die Aufgabe, wenn die gemeldete Closure und der Fall von super() ohne Argumente korrekt funktionieren und die relevanten Tests erfolgreich sind.

    Vom Indexierungsmodell aus dem Issue-Text verfasst.

    Bewertung

    Tech-Stack
    python
    Bereich
    backend
    Issue-Typ
    Bug
    Schwierigkeit
    4/5
    Geschätzter Aufwand
    3-5 Tage
    Aktivitätsstatus
    Veraltet
    Klarheit
    Größtenteils klar
    Anfängerfreundlichkeit
    25/100

    Neue Issues direkt in Ihr Postfach

    Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.