[Python-ideas] Compact repr operator (i.e., __short_repr__)
Nick Coghlan
ncoghlan at gmail.com
Thu Feb 11 05:11:34 EST 2016
On 11 February 2016 at 19:24, Mahmoud Hashemi <mahmoud at hatnote.com> wrote:
> Michael: Yes, I have several projects on PyPI, some of which are related and
> somewhat popular, but I hardly think that a PyPI package can encompass the
> API changes I'm describing. We already have several built-in modules
> (reprlib, pprint) and 3rd party modules (IPython Notebook, Django 500 pages,
> the Werkzeug debugger) that see a great deal of usage, but only support a
> few builtinn types and have to hack heuristics for the rest.
I generally haven't been following these threads, but this one caught my eye.
Making pprint extensible was one of the rationales for adding
functools.singledispatch to the standard library. However, as far as I
am aware, we haven't had anyone find the time to follow up on that
change by actually applying it where it would make sense to do so.
Cheers,
Nick.
--
Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia
More information about the Python-ideas
mailing list