Thomas Kluyver added the comment:

Not exactly a bug, but I think that an improvement is possible. My plan is to 
delay computing the repr until the error is formatted, so that code which 
catches the TypeError can carry on safely.

I think this is more relevant for inspect than for many other modules, because 
by design, we're often calling inspect functions on arbitrary objects which we 
can make few guarantees about.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue30639>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to