diff options
| author | Damien George <damien@micropython.org> | 2021-07-27 00:41:27 +1000 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2022-03-10 10:43:21 +1100 |
| commit | cac939ddc3625da7e6cf1cf0309daba25fc1cedb (patch) | |
| tree | 8e0417aab0ea5c9e22d6679edefb6a265cd31ab5 /docs | |
| parent | bc181550a4790f4dcfaf10e7e61ecfcdf346d5a8 (diff) | |
py/modsys: Add optional sys.tracebacklimit attribute.
With behaviour as per CPython.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/library/sys.rst | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/library/sys.rst b/docs/library/sys.rst index d36394c88..f4ff8786a 100644 --- a/docs/library/sys.rst +++ b/docs/library/sys.rst @@ -144,6 +144,14 @@ Constants Standard output `stream`. +.. data:: tracebacklimit + + A mutable attribute holding an integer value which is the maximum number of traceback + entries to store in an exception. Set to 0 to disable adding tracebacks. Defaults + to 1000. + + Note: this is not available on all ports. + .. data:: version Python language version that this implementation conforms to, as a string. |
