Ned Deily <n...@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 <rep...@bugs.python.org> <http://bugs.python.org/issue12867> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com