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/2009-January/085707.html below:

[Python-Dev] pprint(iterator)

[Python-Dev] pprint(iterator) [Python-Dev] pprint(iterator)Terry Reedy tjreedy at udel.edu
Fri Jan 30 05:27:14 CET 2009
Ron Adam wrote:
> 
> 
> Steven D'Aprano wrote:
>> Michael Foord wrote:
>>
>>> Don't we have a pretty-print API - and isn't it spelled __str__ ?
>>
>> Not really. If it were as simple as calling str(obj), there would be 
>> no need for the pprint module.
> 
> I agree.  And when I want to use pprint, there are usually additional 
> output formatting requirements I need that isn't a "one size fits all" 
> type of problem.

Like others, I am wary of over-expanding the list of special methods. 
Perhap format strings could have a fourth conversion specifier, !p 
(pretty) in addition to !s, !r, and !a.

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