-
-
Notifications
You must be signed in to change notification settings - Fork 34.3k
Description
Documentation
PEP 626 (https://peps.python.org/pep-0626/) currently states that:
"The
co_lnotabattribute 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_lnotabis 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_lnotaband 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
Labels
Projects
Status