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
99181ac6
Commit
99181ac6
authored
Nov 29, 2001
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add an index entry for the discussion of PyEval_CallObject().
This is related to SF bug #485165.
parent
ea4d2c02
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
Doc/ext/extending.tex
Doc/ext/extending.tex
+9
-8
No files found.
Doc/ext/extending.tex
View file @
99181ac6
...
...
@@ -509,14 +509,15 @@ the presence of \NULL{} pointers (but note that \var{temp} will not be
section~
\ref
{
refcounts
}
, ``Reference Counts.''
Later, when it is time to call the function, you call the C function
\cfunction
{
PyEval
_
CallObject()
}
. This function has two arguments, both
pointers to arbitrary Python objects: the Python function, and the
argument list. The argument list must always be a tuple object, whose
length is the number of arguments. To call the Python function with
no arguments, pass an empty tuple; to call it with one argument, pass
a singleton tuple.
\cfunction
{
Py
_
BuildValue()
}
returns a tuple when its
format string consists of zero or more format codes between
parentheses. For example:
\cfunction
{
PyEval
_
CallObject()
}
.
\ttindex
{
PyEval
_
CallObject()
}
This
function has two arguments, both pointers to arbitrary Python objects:
the Python function, and the argument list. The argument list must
always be a tuple object, whose length is the number of arguments. To
call the Python function with no arguments, pass an empty tuple; to
call it with one argument, pass a singleton tuple.
\cfunction
{
Py
_
BuildValue()
}
returns a tuple when its format string
consists of zero or more format codes between parentheses. For
example:
\begin{verbatim}
int arg;
...
...
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