]> granicus.if.org Git - python/commit
bpo-31949: Fixed several issues in printing tracebacks (PyTraceBack_Print()). (#4289)
authorSerhiy Storchaka <storchaka@gmail.com>
Wed, 15 Nov 2017 15:38:52 +0000 (17:38 +0200)
committerGitHub <noreply@github.com>
Wed, 15 Nov 2017 15:38:52 +0000 (17:38 +0200)
commitedad8eebeee3c99e324a7f1ac5073167c2b0b54d
tree51d1b1a41e635461c0f82cf8e754b2b8dd982b21
parent6545256df93ba54f811206107274cfa5a6d76b86
bpo-31949: Fixed several issues in printing tracebacks (PyTraceBack_Print()). (#4289)

* Setting sys.tracebacklimit to 0 or less now suppresses printing tracebacks.
* Setting sys.tracebacklimit to None now causes using the default limit.
* Setting sys.tracebacklimit to an integer larger than LONG_MAX now means using
  the limit LONG_MAX rather than the default limit.
* Fixed integer overflows in the case of more than 2**31 traceback items on
  Windows.
* Fixed output errors handling.
Lib/test/test_sys.py
Misc/NEWS.d/next/Core and Builtins/2017-11-05-16-11-07.bpo-31949.2yNC_z.rst [new file with mode: 0644]
Python/traceback.c