Skip to content

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

Closed as duplicate

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.

Activity

  1. sergey-miryanov commented on Mar 24, 2026

    @sergey-miryanov
    Contributor

    PEP has a final status, and it serves historical reasons now. We usually don't update PEPs in the final state.

  2. HongchengFan commented on Mar 24, 2026

    @HongchengFan
    Author

    Thanks for the clarification!

    That makes sense regarding PEPs being kept as historical records.

  3. hugovk commented on Mar 24, 2026

    @hugovk
    Member

    Let's mark this as a duplicate of #134690 and continue discussion there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions