[Python-Dev] What if we didn't have repr? (original) (raw)

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