Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
78e057a3
Commit
78e057a3
authored
Jun 29, 2002
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clarify the version information for the unicode() built-in.
Closes SF bug #575272.
parent
19698174
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
Doc/lib/libfuncs.tex
Doc/lib/libfuncs.tex
+9
-6
No files found.
Doc/lib/libfuncs.tex
View file @
78e057a3
...
...
@@ -873,13 +873,16 @@ def my_import(name):
behaviour of
\code
{
str()
}
except that it returns Unicode strings
instead of 8-bit strings. More precisely, if
\var
{
object
}
is an
Unicode string or subclass it will return a Unicode string without
any additional decoding applied. For objects which provide a
\code
{__
unicode
__}
method, it will call this method without
arguments to create a Unicode string. For all other objects, the
8-bit string version or representation is requested and then
converted to a Unicode string using the codec for the default
encoding in
\code
{
'strict'
}
mode.
any additional decoding applied.
For objects which provide a
\method
{__
unicode
__
()
}
method, it will
call this method without arguments to create a Unicode string. For
all other objects, the 8-bit string version or representation is
requested and then converted to a Unicode string using the codec for
the default encoding in
\code
{
'strict'
}
mode.
\versionadded
{
2.0
}
\versionchanged
[Support for \method{__unicode__()} added]
{
2.2
}
\end{funcdesc}
\begin{funcdesc}
{
vars
}{
\optional
{
object
}}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment