Important
This documentation covers IPython versions 6.0 and higher. Beginning with version 6.0, IPython stopped supporting compatibility with Python versions lower than 3.3 including all versions of Python 2.7.
If you are looking for an IPython version compatible with Python 2.7, please use the IPython 5.x LTS release and refer to its documentation (LTS is the long term support release).
Module:core.tbtools
2 Classes
Bases: object
Mirror of stack data’s FrameInfo, but so that we can bypass highlighting on really long frames.
Bases: object
Basic tools used by all traceback printer classes.
Toggle between the currently active color scheme and nocolor.
Output stream that exceptions are written to.
Valid values are:
None: the default, which means that IPython will dynamically resolve to sys.stdout. This ensures compatibility with most tools, including Windows (where plain stdout doesn’t recognize ANSI escapes).
Any object with ‘write’ and ‘flush’ attributes.
Shorthand access to the color table scheme selector method.
Convert a structured traceback (a list) to a string.
Return a list of traceback frames.
Must be implemented by each class.
Return formatted traceback.
Subclasses may override this if they add extra arguments.
Given a filename, returns the number of lines in the file if it ends with the extension “.py”. Otherwise, returns 0.
Given a frame object, returns the total number of lines in the file containing the frame’s code object, or the number of lines in the frame’s source code if the file is not available.
frame (FrameType) – The frame object whose line number is to be determined.
The total number of lines in the file containing the frame’s code object, or the number of lines in the frame’s source code if the file is not available.
Hopefully pretty robust repr equivalent.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4