[Python-3000] UPDATED: PEP 3138- String representation in Python3000

Nick Coghlan ncoghlan at gmail.com
Sun May 25 02:45:30 CEST 2008


Terry Reedy wrote:
> |
> | - Add ``isprintable()`` method to the string type. ``str.isprintable()``
> |  return True if ``repr()`` should escape the characters in the string,
> |  False otherwise.
> 
> Is not this backwards?  Isprintable to me mean should *not* escape.

I agree (I suspect the incorrect phrasing is due to the fact that this 
query method used to ask the opposite question - then the name got 
changed without updating the description)

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia
---------------------------------------------------------------
             http://www.boredomandlaziness.org


More information about the Python-3000 mailing list