[Python-3000] String formating operations in python 3k

Nick Coghlan ncoghlan at gmail.com
Thu Apr 6 11:09:30 CEST 2006


Ian D. Bollinger wrote:
> On 4/5/06, *John J Lee* <jjl at pobox.com <mailto:jjl at pobox.com>> wrote:
> 
>     But how about putting them at the start, after the $?  That way, the
>     format character can't get mixed up with the text following it.  For
>     example, $r{foo} would mean the same as the current %(foo)r.
> 
> 
> This is somewhat tangental, but hopefully an $r formatting operation 
> won't be necessary in Py3k, assuming repr() and str() can somehow be 
> combined.

repr() (machine readable) and str() (human readable) do different things, so 
why would combining them even be considered?

Cheers,
Nick.

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


More information about the Python-3000 mailing list