Skip to content

PEP 626: outdated timeline for co_lnotab deprecation/removal #146361

@HongchengFan

Description

@HongchengFan

Documentation

PEP 626 (https://peps.python.org/pep-0626/) currently states that:

"The co_lnotab attribute will be deprecated in 3.10 and removed in 3.12."

However, the current documentation and runtime behavior no longer match this timeline:

  • The Data Model documentation says that co_lnotab is deprecated since 3.12 and may be removed in 3.15:
    https://docs.python.org/3/reference/datamodel.html#code-objects

  • In practice, Python 3.12–3.14 still expose co_lnotab and emit:
    DeprecationWarning: co_lnotab is deprecated, use co_lines instead
    while Python 3.10–3.11 do not emit this warning.

This suggests that the PEP reflects the original plan, but not the current behavior.

It would be helpful to update PEP 626 to reflect the current status, or add a note clarifying that the deprecation/removal schedule has changed. This may be intentional, but it would be helpful to clarify.

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation in the Doc dirpendingThe issue will be closed if no feedback is provided

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions