Thomas Kluyver added the comment:
Someone on reddit ran into this, expecting that linecache can be used for an
arbitrary text file:
http://www.reddit.com/r/Python/comments/2yetxc/utf8_encoding_problems/
I was quite surprised that the docs say allows one to get any line from any
file. I've
STINNER Victor added the comment:
Well, my initial message doesn't convince me anymore today (especially after
reading Terry's message), so I prefer to close the issue as rejected. I don't
think that it's really a problem :-)
--
resolution: - rejected
status: open - closed
Changes by Terry J. Reedy tjre...@udel.edu:
--
versions: -Python 3.1
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11726
___
___
Python-bugs-list
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11726
___
___
Python-bugs-list
Terry J. Reedy tjre...@udel.edu added the comment:
The help(linecache) Description is more specific as to the intention (based on
traceback usage):
This is intended to read lines from modules imported -- hence if a filename is
not found, it will look down the module search path for a file by
New submission from STINNER Victor victor.stin...@haypocalc.com:
linecache document doesn't tell that the module reads the #coding:xxx cookie to
get the encoding of the Python file. linecache reads this cookie since 41665
(May 09 2007).
The linecache module allows one to get any line from any
Changes by Raymond Hettinger raymond.hettin...@gmail.com:
--
priority: normal - high
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11726
___
___