Skip to content

Remove deprecated co_lnotab from CodeType #134690

Open
@sobolevn

Description

@sobolevn

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.

cpython/Objects/codeobject.c

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 fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)type-featureA feature request or enhancement

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions