'%r' docs
Oleg Broytmann
phd at phd.pp.ru
Tue Oct 2 06:35:25 EDT 2001
On Tue, Oct 02, 2001 at 12:24:29PM +0200, Pearu Peterson wrote:
> To my pleasing surprice I discovered (from some python code, not
> mine) that '%s'%(repr(obj)) has shorter form '%r'%(obj).
>
> Though I scanned Python 2.1 docs in order to find some backing for this
> discovery, I found non.
>
> So, is this undocumented feature (and therefore may disappear in
> future??)? Or could some one point out where are the fancy output formats
> documented beside in the Tutorial.
http://www.python.org/doc/current/lib/typesseq-strings.html
Oleg.
----
Oleg Broytmann http://phd.pp.ru/ phd at phd.pp.ru
Programmers don't die, they just GOSUB without RETURN.
More information about the Python-list
mailing list