[docs] [issue11726] clarify that linecache only works on files that can be decoded successfully

Antti Haapala report at bugs.python.org
Thu Feb 9 07:06:56 EST 2017


Antti Haapala added the comment:

Every now and then there are new questions and answers regarding the use of `linecache` module on Stack Overflow for doing random access to text files, even though the documentation states that it is meant for Python source code files.

One problem is that the title still states: "11.9. linecache — Random access to text lines"; the title should really be changed to "Random access to Python source code lines" so that the title wouldn't imply that this is a general-purpose random access library for text files.

----------
nosy: +ztane

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11726>
_______________________________________


More information about the docs mailing list