Repository navigation
co_lnotab must be removed in 3.12 according to PEP 626 #101865
Copy link
Copy link
Closed
Labels
3.12only security fixesonly security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-featureA feature request or enhancementA feature request or enhancement
Description
Activity
- addedtype-featureA feature request or enhancementA feature request or enhancementinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)3.12only security fixesonly security fixes
on Feb 13, 2023 I don't get any warning when using
co_lnotab in 3.11, so I don't think we can remove it yet.
Don't assume everyone has read PEP 626.We should at least warn when using it for a couple of versions, before removing it.
It isn't causing us any problems either, so there is not rush to remove it. It can wait for 3.14 or so.
Ok then, so
DeprecationWarningit is! 👍- changed the title
[-]`co_lnotab` must be removed in 3.12 according to PEP626[/-][+]`co_lnotab` must be removed in 3.12 according to PEP 626[/+]on Mar 18, 2023 - added a commit that references this issue
on Apr 3, 2023 - added 5 commits that reference this issue
on Nov 4, 2024
Metadata
Metadata
Assignees
Labels
3.12only security fixesonly security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-featureA feature request or enhancementA feature request or enhancement
https://peps.python.org/pep-0626/#backwards-compatibility
It was documented as deprecated in 3.10 and to-be-removed in 3.12: https://docs.python.org/3/whatsnew/3.10.html#pep-626-precise-line-numbers-for-debugging-and-other-tools
Original issue: #86412
Right now CPython does not use
co_lnotabin its source code.But, there are two mentions of it:
gdb:cpython/Misc/gdbinit
Lines 60 to 61 in 6ef6915
clinic.test:cpython/Lib/test/clinic.test
Line 3575 in 6ef6915
If that's fine - I would like to do the honours.
CC @markshannon
Linked PRs
co_lnotabfrom code objects as per PEP 626 #101866