On Wed, Mar 1, 2017 at 12:58 PM, Matthias welp <boekew...@gmail.com> wrote:
> You are free to experiment with overriding/extending __repr__ for your
> internal usage, but please note that it might break external libraries
> depending on obj.__repr__ or repr(obj), and print() might break when
> using built-in types as containers for your objects.

Given that this started out with a post about pprint, maybe a more
viable approach would be a dedicated __pprint__ hook? That might be
easier to push through. (I'm not pushing for it though.)

ChrisA
_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to