[issue39180] Missing getlines func documentation from linecache module

New submission from Karthikeyan Singaravelan <tir.karthi@gmail.com>: As a note getlines is not exposed via __all__ : https://github.com/python/cpython/blob/22424c02e51fab3b62cbe255d0b87d1b55b9a... ---------- nosy: +xtreak _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue39180> _______________________________________

Change by Khalid Mammadov <khalidmammadov9@gmail.com>: ---------- keywords: +patch pull_requests: +17216 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17784 _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue39180> _______________________________________

Khalid Mammadov <khalidmammadov9@gmail.com> added the comment: How to find if it was intentional or over-site? ---------- _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue39180> _______________________________________

Ammar Askar <ammar@ammaraskar.com> added the comment: A good place to start is looking at the blame to find the commit that introduced it. Which was: https://github.com/python/cpython/commit/17ab123cf1f0597e7e257c1ce83a6e87b85... and if we browse to the state of the file before that commit we see: https://github.com/python/cpython/blob/bbd89b66b1b3c44836f560b60c7a176a6172f... which indicates that it used to be exposed but was maybe overlooked when __all__ was added. ---------- nosy: +ammar2 _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue39180> _______________________________________

Khalid Mammadov <khalidmammadov9@gmail.com> added the comment: Looks like it's not meant to be made public as the module is meant to be working on a single line. So closing the issue and PR ---------- nosy: -ammar2 stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue39180> _______________________________________

Change by Khalid Mammadov <khalidmammadov9@gmail.com>: ---------- resolution: -> duplicate _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue39180> _______________________________________
participants (3)
-
Ammar Askar
-
Karthikeyan Singaravelan
-
Khalid Mammadov