mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
SF patch 664183 and SF bug 664044: Note that both u'%s' % 'x' and
'%s' % u'x' return a unicode object.
This commit is contained in:
parent
bc65521567
commit
2bd1568d35
1 changed files with 4 additions and 1 deletions
|
@ -834,7 +834,7 @@ The conversion types are:
|
||||||
\lineiii{r}{String (converts any python object using
|
\lineiii{r}{String (converts any python object using
|
||||||
\function{repr()}).}{(3)}
|
\function{repr()}).}{(3)}
|
||||||
\lineiii{s}{String (converts any python object using
|
\lineiii{s}{String (converts any python object using
|
||||||
\function{str()}).}{}
|
\function{str()}).}{(4)}
|
||||||
\lineiii{\%}{No argument is converted, results in a \character{\%}
|
\lineiii{\%}{No argument is converted, results in a \character{\%}
|
||||||
character in the result.}{}
|
character in the result.}{}
|
||||||
\end{tableiii}
|
\end{tableiii}
|
||||||
|
@ -855,6 +855,9 @@ Notes:
|
||||||
not already a zero.
|
not already a zero.
|
||||||
\item[(3)]
|
\item[(3)]
|
||||||
The \code{\%r} conversion was added in Python 2.0.
|
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}
|
\end{description}
|
||||||
|
|
||||||
% XXX Examples?
|
% XXX Examples?
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue