[issue12867] linecache.getline() Returning Error
Ned Deily
report at bugs.python.org
Wed Aug 31 09:21:30 CEST 2011
Ned Deily <nad at acm.org> added the comment:
The linecache module functions take a filename string as an argument, not a file object. Try:
linecache.getlines("/path/to/filename", lineno)
http://docs.python.org/py3k/library/linecache.html
----------
nosy: +ned.deily
resolution: -> works for me
stage: -> committed/rejected
status: open -> closed
type: crash -> behavior
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12867>
_______________________________________
More information about the Python-bugs-list
mailing list