[New-bugs-announce] [issue26502] traceback.extract_tb breaks compatibility by returning FrameSummary
report at bugs.python.org
Mon Mar 7 06:15:48 EST 2016
New submission from Petr Viktorin:
According to the docs , traceback.extract_tb should return 4-tuples (filename, line number, function name, text).
Instead, since Python 3.5, it returns FrameSummary objects, which are not tuples, nor tuple subclasses, nor even sequences. (This broke some code in the wild that called len() on FrameSummary.)
Issue 25111 pointed out another tuple incompatibility, which was fixed. Should __len__ be added as well? Or the whole Sequence ABC?
I can provide a patch when those questions are answered.
assignee: docs at python
components: Documentation, Library (Lib)
nosy: docs at python, encukou
title: traceback.extract_tb breaks compatibility by returning FrameSummary
versions: Python 3.5, Python 3.6
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce