• Serhiy Storchaka's avatar
    [3.6] bpo-31949: Fixed several issues in printing tracebacks… · 38642488
    Serhiy Storchaka yazdı
    [3.6] bpo-31949: Fixed several issues in printing tracebacks (PyTraceBack_Print()). (GH-4289) (#4406)
    
    * 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..
    (cherry picked from commit edad8eeb)
    38642488
traceback.c 21.9 KB