Skip to content

Inaccurate description of ast.AST location attributes #136640

Open
@koyuki7w

Description

@koyuki7w

[The document] (https://docs.python.org/3/library/ast.html#ast.AST.end_col_offset) states:

Instances of ast.expr and ast.stmt subclasses have lineno, col_offset, end_lineno, and end_col_offset attributes.

However, Some other classes which are not subclasses (excepthandler, arg, etc.) also have these attributes.

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