Docs: `co_exceptiontable` missing in Data Model (Code objects)
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Python
- Sterne
- 77.2k
- Forks
- 35.9k
- PR-Merge-Kennzahlen
- PR-Kennzahlen ausstehend
Beschreibung
Documentation
In the Data Model documentation for code objects:
https://docs.python.org/3/reference/datamodel.html#code-objects
The attribute co_exceptiontable (introduced in Python 3.11) is not listed or described.
This attribute is present on code objects and is used for exception handling.
Its absence in the documentation can be confusing for users working with bytecode or code objects.
It would be helpful to document co_exceptiontable, or clarify whether it is considered an implementation detail.
Happy to submit a PR if this is intended.
Linked PRs
- gh-146370
- gh-146405
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne mit dem Abschnitt zu Codeobjekten in der Dokumentation zum Data Model, auf den im Issue verwiesen wird, und vergleiche die dort aufgeführten Attribute mit der API für Codeobjekte in Python 3.11. Prüfe zuerst die verknüpften PRs gh-146370 und gh-146405; die Arbeit ist abgeschlossen, wenn der Status von co_exceptiontable geklärt ist und die Dokumentation diese Entscheidung widerspiegelt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- python
- Bereich
- documentation
- Issue-Typ
- Dokumentation
- Schwierigkeit
- 1/5
- Geschätzter Aufwand
- Unter einer Stunde
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 30/100