Mercurial > cpython-lru_cache-weakref
diff Doc/lib/libstdtypes.tex @ 27225:5d42dba49fe5 legacy-trunk
SF patch 664183 and SF bug 664044: Note that both u'%s' % 'x' and
'%s' % u'x' return a unicode object.
| author | Raymond Hettinger <python@rcn.com> |
|---|---|
| date | Mon, 13 Jan 2003 04:29:19 +0000 |
| parents | 41f7726e3e51 |
| children | 4b5c2e025c5e |
line wrap: on
line diff
--- a/Doc/lib/libstdtypes.tex Sun Jan 12 23:01:46 2003 +0000 +++ b/Doc/lib/libstdtypes.tex Mon Jan 13 04:29:19 2003 +0000 @@ -834,7 +834,7 @@ \lineiii{r}{String (converts any python object using \function{repr()}).}{(3)} \lineiii{s}{String (converts any python object using - \function{str()}).}{} + \function{str()}).}{(4)} \lineiii{\%}{No argument is converted, results in a \character{\%} character in the result.}{} \end{tableiii} @@ -855,6 +855,9 @@ not already a zero. \item[(3)] The \code{\%r} conversion was added in Python 2.0. + \item[(4)] + If the object or format provided is a \class{unicode} string, + the resulting string will also be \class{unicode}. \end{description} % XXX Examples?
