Mercurial > cpython-lru_cache-weakref
diff Doc/lib/libstdtypes.tex @ 27226:ebeb00b8d502 2.2
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:33:36 +0000 |
| parents | 0c85a947e2c0 |
| children | 2759b048da9b |
line wrap: on
line diff
--- a/Doc/lib/libstdtypes.tex Sun Jan 12 14:57:53 2003 +0000 +++ b/Doc/lib/libstdtypes.tex Mon Jan 13 04:33:36 2003 +0000 @@ -826,7 +826,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} @@ -847,6 +847,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?
