Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cython
Commits
f07feb45
Commit
f07feb45
authored
Jul 13, 2010
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix return types of tuple C-API calls
parent
d5f699f1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Cython/Includes/cpython/tuple.pxd
Cython/Includes/cpython/tuple.pxd
+3
-3
No files found.
Cython/Includes/cpython/tuple.pxd
View file @
f07feb45
...
@@ -13,11 +13,11 @@ cdef extern from "Python.h":
...
@@ -13,11 +13,11 @@ cdef extern from "Python.h":
bint
PyTuple_CheckExact
(
object
p
)
bint
PyTuple_CheckExact
(
object
p
)
# Return true if p is a tuple object, but not an instance of a subtype of the tuple type.
# Return true if p is a tuple object, but not an instance of a subtype of the tuple type.
object
PyTuple_New
(
Py_ssize_t
len
)
tuple
PyTuple_New
(
Py_ssize_t
len
)
# Return value: New reference.
# Return value: New reference.
# Return a new tuple object of size len, or NULL on failure.
# Return a new tuple object of size len, or NULL on failure.
object
PyTuple_Pack
(
Py_ssize_t
n
,
...)
tuple
PyTuple_Pack
(
Py_ssize_t
n
,
...)
# Return value: New reference.
# Return value: New reference.
# Return a new tuple object of size n, or NULL on failure. The
# Return a new tuple object of size n, or NULL on failure. The
# tuple values are initialized to the subsequent n C arguments
# tuple values are initialized to the subsequent n C arguments
...
@@ -41,7 +41,7 @@ cdef extern from "Python.h":
...
@@ -41,7 +41,7 @@ cdef extern from "Python.h":
# Return value: Borrowed reference.
# Return value: Borrowed reference.
# Like PyTuple_GetItem(), but does no checking of its arguments.
# Like PyTuple_GetItem(), but does no checking of its arguments.
object
PyTuple_GetSlice
(
object
p
,
Py_ssize_t
low
,
Py_ssize_t
high
)
tuple
PyTuple_GetSlice
(
object
p
,
Py_ssize_t
low
,
Py_ssize_t
high
)
# Return value: New reference.
# Return value: New reference.
# Take a slice of the tuple pointed to by p from low to high and return it as a new tuple.
# Take a slice of the tuple pointed to by p from low to high and return it as a new tuple.
...
...
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