[Python-Dev] What if we didn't have repr?

Greg Ewing greg.ewing at canterbury.ac.nz
Wed May 22 01:14:35 CEST 2013


Łukasz Langa wrote:
> 1. Make __str__() a protocol for arbitrary string conversion.
> 2. Move the current __repr__() contracts, both firm and informal to a 
> new, extensible version of pprint.

-1. The purposes of repr() and pprint() are quite different.

Please let's not make any sweeping changes about str() and
repr(). They're generally okay as they are, IMO.

-- 
Greg


More information about the Python-Dev mailing list