You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
0fbab7f changed the semantic of PyTraceBack_Print and sys.tracebacklimit. It no longer match the documentation and the behavior of the traceback module. Setting sys.tracebacklimit to 0 or less no longer suppress printing tracebacks in PyTraceBack_Print(). Setting sys.tracebacklimit to None (as at shutdown stage) no longer makes PyTraceBack_Print() using default limit, but suppress printing tracebacks and sets a TypeError without returning failure from PyTraceBack_Print().
The proposed PR restores the initial purposed semantic and fixes several other bugs in PyTraceBack_Print().
Setting sys.tracebacklimit to 0 or less now suppress 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 items on Windows.
New changeset edad8ee by Serhiy Storchaka in branch 'master': bpo-31949: Fixed several issues in printing tracebacks (PyTraceBack_Print()). (bpo-4289) edad8ee
New changeset 3864248 by Serhiy Storchaka in branch '3.6':
[3.6] bpo-31949: Fixed several issues in printing tracebacks (PyTraceBack_Print()). (GH-4289) (bpo-4406) 3864248
Activity
serhiy-storchaka commentedon Nov 5, 2017
0fbab7f changed the semantic of PyTraceBack_Print and sys.tracebacklimit. It no longer match the documentation and the behavior of the traceback module. Setting sys.tracebacklimit to 0 or less no longer suppress printing tracebacks in PyTraceBack_Print(). Setting sys.tracebacklimit to None (as at shutdown stage) no longer makes PyTraceBack_Print() using default limit, but suppress printing tracebacks and sets a TypeError without returning failure from PyTraceBack_Print().
The proposed PR restores the initial purposed semantic and fixes several other bugs in PyTraceBack_Print().
berkerpeksag commentedon Nov 5, 2017
This was also reported in bpo-12276.
serhiy-storchaka commentedon Nov 15, 2017
New changeset edad8ee by Serhiy Storchaka in branch 'master':
bpo-31949: Fixed several issues in printing tracebacks (PyTraceBack_Print()). (bpo-4289)
edad8ee
serhiy-storchaka commentedon Nov 15, 2017
New changeset 3864248 by Serhiy Storchaka in branch '3.6':
[3.6] bpo-31949: Fixed several issues in printing tracebacks (PyTraceBack_Print()). (GH-4289) (bpo-4406)
3864248