# Feature or enhancement `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. https://github.com/python/cpython/blob/cf8941c60356acdd00055e5583a2d64761c34af4/Objects/codeobject.c#L2620-L2630 Refs https://github.com/python/cpython/issues/101865 <!-- gh-linked-prs --> ### Linked PRs * gh-134691 <!-- /gh-linked-prs -->
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)