[issue25573] FrameSummary repr() does not support previously working uses of repr in traceback module

Robert Collins report at bugs.python.org
Sun Sep 11 20:15:26 EDT 2016


Robert Collins added the comment:

So I think its fine to have a __len__ reporting 4. tuple(..) works via the iter() call, but thats really just a thunk to keep existing code working, and so __len__ for the same reason makes sense.

On the documentation issue, yes, updating the docs is appropriate.

Having the repr produce all the elements would be ok, the reason it is lazy is to avoid high costs for transient FrameSummary when its created and discarded shortly after.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25573>
_______________________________________


More information about the Python-bugs-list mailing list