[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 al

[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 : -- versions: -Python 3.1 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

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

2011-04-27 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

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

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

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

2011-03-31 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- priority: normal -> high ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

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

2011-03-31 Thread STINNER Victor
New submission from STINNER Victor : 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 file, ..." => "any file"!