-
-
Notifications
You must be signed in to change notification settings - Fork 33.1k
Open
Labels
3.15new features, bugs and security fixesnew features, bugs and 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
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.
Lines 2620 to 2630 in cf8941c
static PyObject * | |
code_getlnotab(PyObject *self, void *closure) | |
{ | |
PyCodeObject *code = _PyCodeObject_CAST(self); | |
if (PyErr_WarnEx(PyExc_DeprecationWarning, | |
"co_lnotab is deprecated, use co_lines instead.", | |
1) < 0) { | |
return NULL; | |
} | |
return decode_linetable(code); | |
} |
Refs #101865
Linked PRs
Metadata
Metadata
Assignees
Labels
3.15new features, bugs and security fixesnew features, bugs and 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