##// END OF EJS Templates
FEAT: Fast TB....
FEAT: Fast TB. Try to detect when one of the file we are trying to highlight is too big, and fallback on pre-8.0 traceback code, that avoids stack_data. You can configure the limit with: >>> from IPython.core import ultratb >>> ultratb.FAST_THRESHOLD = 200 We are trying to _guess_ whether the traceback we will render is in a file that will require to parse more than FAST_THRESHOLD lines, though it is actually difficult to get this value correctly, so in some case, the slow path may be used, even if files are longer than FAST_THRESHOLD, especially if the crashing code is at the beginning of the file.

File last commit:

r27747:f5d4e0ac
r28123:3362771d
Show More
print_argv.py
3 lines | 32 B | text/x-python | PythonLexer
Takafumi Arakaki
Add tests for %run option parser
r8121 import sys
Matthias Bussonnier
MAINT: run black on files that ends up in a single line change....
r27747
Thomas Kluyver
Convert print statements to print function calls...
r13348 print(sys.argv[1:])