Andrei Kulakov <andrei....@gmail.com> added the comment:
I agree that the doc is wrong; I've put up the tiny PR here: https://github.com/python/cpython/pull/27529/files Note that linecache.getline() returns line with \n but is then .strip()'ed. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue42038> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com