Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32.4k
Closed
Description
The co_lnotab attribute will be deprecated in 3.10 and removed in 3.12.
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 useco_lnotab
in its source code.
But, there are two mentions of it:
- In
gdb
:And I have no idea how it works! Some weird mix of C and some kind of a DSL / scripting languageLines 60 to 61 in6ef6915
set $__sz = ((PyVarObject *)$__co->co_lnotab)->ob_size/2 set $__p = (unsigned char *)((PyBytesObject *)$__co->co_lnotab)->ob_sval - In
clinic.test
:But, this is just a string-based test. So, I think it can stay thereLine 3575 in6ef6915
co_lnotab: PyBytesObject(c_default="(PyBytesObject *)self->co_lnotab") = None
If that's fine - I would like to do the honours.
Linked PRs
- gh-101865: Deprecate
co_lnotab
from code objects as per PEP 626 #101866 - gh-101865: Docs: Keep co_lnotab deprecation for at least 3.14 #126392
- [3.13] gh-101865: Docs: Keep co_lnotab deprecation for at least 3.14 (GH-126392) #126403
- [3.12] gh-101865: Docs: Keep co_lnotab deprecation for at least 3.14 (GH-126392) #126404