Skip to content

Docs: co_exceptiontable missing in Data Model (Code objects) #146362

@HongchengFan

Description

@HongchengFan

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation in the Doc dir

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions