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
e3d5f981
Commit
e3d5f981
authored
Dec 07, 2003
by
Raymond Hettinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Put str() in alphabetical order.
parent
a4ce2f51
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
Doc/lib/libfuncs.tex
Doc/lib/libfuncs.tex
+10
-10
No files found.
Doc/lib/libfuncs.tex
View file @
e3d5f981
...
...
@@ -908,6 +908,16 @@ class C:
\versionadded
{
2.2
}
\end{funcdesc}
\begin{funcdesc}
{
str
}{
\optional
{
object
}}
Return a string containing a nicely printable representation of an
object. For strings, this returns the string itself. The
difference with
\code
{
repr(
\var
{
object
}
)
}
is that
\code
{
str(
\var
{
object
}
)
}
does not always attempt to return a string
that is acceptable to
\function
{
eval()
}
; its goal is to return a
printable string. If no argument is given, returns the empty
string,
\code
{
''
}
.
\end{funcdesc}
\begin{funcdesc}
{
sum
}{
sequence
\optional
{
, start
}}
Sums
\var
{
start
}
and the items of a
\var
{
sequence
}
, from left to
right, and returns the total.
\var
{
start
}
defaults to
\code
{
0
}
.
...
...
@@ -936,16 +946,6 @@ class C(B):
\versionadded
{
2.2
}
\end{funcdesc}
\begin{funcdesc}
{
str
}{
\optional
{
object
}}
Return a string containing a nicely printable representation of an
object. For strings, this returns the string itself. The
difference with
\code
{
repr(
\var
{
object
}
)
}
is that
\code
{
str(
\var
{
object
}
)
}
does not always attempt to return a string
that is acceptable to
\function
{
eval()
}
; its goal is to return a
printable string. If no argument is given, returns the empty
string,
\code
{
''
}
.
\end{funcdesc}
\begin{funcdesc}
{
tuple
}{
\optional
{
sequence
}}
Return a tuple whose items are the same and in the same order as
\var
{
sequence
}
's items.
\var
{
sequence
}
may be a sequence, a
...
...
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