On 26/07/20 1:34 am, Elizabeth Shashkova wrote:
1. We need this lazy `__repr__` calculation inside our debugger, where we work with different user's objects. Usually it isn't some specific type, for which you know that it'll be big and its `__repr__` calculation will be slow

Seems to me it would be better for the debugger to take a
conservative approach here, and assume that the repr *will*
be big and/or slow unless it's a type that it *does* know
about. All other objects should be displayed using something
similar to object.__repr__ unless the user requests otherwise.

--
Greg
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/5SUZNLSSWJTKBMU7OEKB4ERGEJXDOVIV/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to