[issue19206] Support disabling file I/O when doing traceback formatting

2020-12-31 Thread Irit Katriel
Change by Irit Katriel : -- stage: -> resolved status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue19206] Support disabling file I/O when doing traceback formatting

2020-12-15 Thread Irit Katriel
Irit Katriel added the comment: Since this issue was created, the traceback module changed considerably, and now we have the TracebackException/StackSummary classes which capture information about an exception for later rendering. The lookup_lines arg controls the timing of the file access:

[issue19206] Support disabling file I/O when doing traceback formatting

2020-11-04 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10, Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue19206] Support disabling file I/O when doing traceback formatting

2013-10-10 Thread STINNER Victor
STINNER Victor added the comment: Unfortunately, the traceback.py module reads from files to load the source lines for the traceback (using linecache.py). linecache is supposed to cache the result. When all files generating tracebacks of your project are cached, only os.stat() is called on

[issue19206] Support disabling file I/O when doing traceback formatting

2013-10-09 Thread Itamar Turner-Trauring
New submission from Itamar Turner-Trauring: In certain situations it is best to avoid doing file I/O. For example, a program that runs in an event loop may wish to avoid any potentially blocking operations; reading from a file usually is fast, but can sometimes take arbitrary long. Another