co_lnotab
CodeType
co_lnotab was deprecated in the docs in 3.10, deprecation warning was added in 3.12 and now it is time to remove it.
cpython/Objects/codeobject.c
Lines 2620 to 2630 in cf8941c
Refs #101865
codetype.co_lnotab
pythongh-134690: Removed deprecated `codetype.co_lnotab`
I had a PR for that somewhere but Irit wasn't very convinced by the removal at that time: #119665 and #119664.
We're six weeks out from the 3.15 feature freeze, do we want to do this for 3.15 or update the docs to aim for 3.16?
In November 2024, we bumped "may be removed in 3.14" to "may be removed in 3.15":
At that time, pytorch and huggingface were called out as still using it, but they've now been updated:
co_lines()
I've updated #134691 I am always in favor of removing stuff when possible :)
gh-134690: Removed deprecated `codetype.co_lnotab` (#134691)
Activity
pythongh-134690: Removed deprecated `codetype.co_lnotab`
picnixz commentedon May 26, 2025
I had a PR for that somewhere but Irit wasn't very convinced by the removal at that time: #119665 and #119664.
co_lnotabdeprecation/removal #146361 as a duplicate of this issuehugovk commentedon Mar 24, 2026
We're six weeks out from the 3.15 feature freeze, do we want to do this for 3.15 or update the docs to aim for 3.16?
In November 2024, we bumped "may be removed in 3.14" to "may be removed in 3.15":
At that time, pytorch and huggingface were called out as still using it, but they've now been updated:
co_lnotabin favor ofco_lines()pytorch/pytorch#158833sobolevn commentedon Mar 24, 2026
I've updated #134691
I am always in favor of removing stuff when possible :)
gh-134690: Removed deprecated `codetype.co_lnotab` (#134691)