A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2003-December/040608.html below:

[Python-Dev] pprint and list/tuple/dict subclasses

[Python-Dev] pprint and list/tuple/dict subclasses [Python-Dev] pprint and list/tuple/dict subclassesWalter Dörwald walter at livinglogic.de
Tue Dec 2 15:15:51 EST 2003
Fred L. Drake, Jr. wrote:

> Walter Dörwald writes:
>  > Currently pprint refuses to prettyprint subclasses of list,
>  > tuple and dict. Does it make sense to change that for 2.4?
>  > 
>  > Of course once __repr__() is overwritten by a subclass,
>  > pprint has to use that instead of its own formatting.
> 
> There's a patch for this that's on my list of things to look at I
> think.  The discussion associated with the patch had the right idea,
> but I've not had time to review the patch (which I think is
> embarrassingly short);

AFAICT it should only change four lines.

> if you'd like to do so, be my guest!

Is this patch on SF? What's the patch id?

Bye,
    Walter Dörwald



More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4