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
c6a3cb4b
Commit
c6a3cb4b
authored
Apr 04, 2001
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document PySequence_Size(), and describe PySequence_Length() as simply an
alternate name for the same function.
parent
e3850f5b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
Doc/api/api.tex
Doc/api/api.tex
+5
-1
No files found.
Doc/api/api.tex
View file @
c6a3cb4b
...
...
@@ -1876,13 +1876,17 @@ Return \code{1} if the object provides sequence protocol, and
\code
{
0
}
otherwise. This function always succeeds.
\end{cfuncdesc}
\begin{cfuncdesc}
{
int
}{
PySequence
_
Length
}{
PyObject *o
}
\begin{cfuncdesc}
{
int
}{
PySequence
_
Size
}{
PyObject *o
}
Returns the number of objects in sequence
\var
{
o
}
on success, and
\code
{
-1
}
on failure. For objects that do not provide sequence
protocol, this is equivalent to the Python expression
\samp
{
len(
\var
{
o
}
)
}
.
\bifuncindex
{
len
}
\end{cfuncdesc}
\begin{cfuncdesc}
{
int
}{
PySequence
_
Length
}{
PyObject *o
}
Alternate name for
\cfunction
{
PySequence
_
Size()
}
.
\end{cfuncdesc}
\begin{cfuncdesc}
{
PyObject*
}{
PySequence
_
Concat
}{
PyObject *o1, PyObject *o2
}
Return the concatenation of
\var
{
o1
}
and
\var
{
o2
}
on success, and
\NULL
{}
on
failure. This is the equivalent of the Python
...
...
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