FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Remove deprecated `co_lnotab` from `CodeType` · Issue #134690 · python/cpython · GitHub

Repository navigation

Remove deprecated co_lnotab from CodeType #134690

Closed

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.

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

Activity

  1. self-assigned this
    on May 26, 2025
  2. added
    type-featureA feature request or enhancement
    interpreter-core(Objects, Python, Grammar, and Parser dirs)
    3.15bugs and security fixes
    on May 26, 2025
  3. added a commit that references this issue on May 26, 2025
  4. picnixz commented on May 26, 2025

    Member

    I had a PR for that somewhere but Irit wasn't very convinced by the removal at that time: #119665 and #119664.

  5. hugovk commented on Mar 24, 2026

    Member

    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:

  6. sobolevn commented on Mar 24, 2026

    MemberAuthor

    I've updated #134691
    I am always in favor of removing stuff when possible :)

  7. added a commit that references this issue on Apr 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

3.15bugs 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


    Back | FazBrowse Home | New Git URL