[issue11726] linecache becomes specific to Python scripts in Python 3

2015-03-09 Thread Thomas Kluyver
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

[issue11726] linecache becomes specific to Python scripts in Python 3

2013-01-02 Thread STINNER Victor
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

[issue11726] linecache becomes specific to Python scripts in Python 3

2011-06-26 Thread Terry J. Reedy
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

[issue11726] linecache becomes specific to Python scripts in Python 3

2011-04-27 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11726 ___ ___ Python-bugs-list

[issue11726] linecache becomes specific to Python scripts in Python 3

2011-04-01 Thread Terry J. Reedy
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

[issue11726] linecache becomes specific to Python scripts in Python 3

2011-03-31 Thread STINNER Victor
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

[issue11726] linecache becomes specific to Python scripts in Python 3

2011-03-31 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- priority: normal - high ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11726 ___ ___