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
Gwenaël Samain
cython
Commits
4e87c5ef
Commit
4e87c5ef
authored
Nov 05, 2017
by
Jeroen Demeyer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add 'except' values for various function types
parent
eeff621b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
Cython/Includes/cpython/object.pxd
Cython/Includes/cpython/object.pxd
+10
-10
No files found.
Cython/Includes/cpython/object.pxd
View file @
4e87c5ef
...
@@ -10,26 +10,26 @@ cdef extern from "Python.h":
...
@@ -10,26 +10,26 @@ cdef extern from "Python.h":
ctypedef
object
(
*
unaryfunc
)(
object
)
ctypedef
object
(
*
unaryfunc
)(
object
)
ctypedef
object
(
*
binaryfunc
)(
object
,
object
)
ctypedef
object
(
*
binaryfunc
)(
object
,
object
)
ctypedef
object
(
*
ternaryfunc
)(
object
,
object
,
object
)
ctypedef
object
(
*
ternaryfunc
)(
object
,
object
,
object
)
ctypedef
int
(
*
inquiry
)(
object
)
ctypedef
int
(
*
inquiry
)(
object
)
except
-
1
ctypedef
Py_ssize_t
(
*
lenfunc
)(
object
)
ctypedef
Py_ssize_t
(
*
lenfunc
)(
object
)
except
-
1
ctypedef
object
(
*
ssizeargfunc
)(
object
,
Py_ssize_t
)
ctypedef
object
(
*
ssizeargfunc
)(
object
,
Py_ssize_t
)
ctypedef
object
(
*
ssizessizeargfunc
)(
object
,
Py_ssize_t
,
Py_ssize_t
)
ctypedef
object
(
*
ssizessizeargfunc
)(
object
,
Py_ssize_t
,
Py_ssize_t
)
ctypedef
int
(
*
ssizeobjargproc
)(
object
,
Py_ssize_t
,
object
)
ctypedef
int
(
*
ssizeobjargproc
)(
object
,
Py_ssize_t
,
object
)
except
-
1
ctypedef
int
(
*
ssizessizeobjargproc
)(
object
,
Py_ssize_t
,
Py_ssize_t
,
object
)
ctypedef
int
(
*
ssizessizeobjargproc
)(
object
,
Py_ssize_t
,
Py_ssize_t
,
object
)
except
-
1
ctypedef
int
(
*
objobjargproc
)(
object
,
object
,
object
)
ctypedef
int
(
*
objobjargproc
)(
object
,
object
,
object
)
except
-
1
ctypedef
int
(
*
objobjproc
)(
object
,
object
)
ctypedef
int
(
*
objobjproc
)(
object
,
object
)
except
-
1
ctypedef
Py_hash_t
(
*
hashfunc
)(
object
)
ctypedef
Py_hash_t
(
*
hashfunc
)(
object
)
except
-
1
ctypedef
object
(
*
reprfunc
)(
object
)
ctypedef
object
(
*
reprfunc
)(
object
)
ctypedef
int
(
*
cmpfunc
)(
object
,
object
)
ctypedef
int
(
*
cmpfunc
)(
object
,
object
)
except
-
2
ctypedef
object
(
*
richcmpfunc
)(
object
,
object
,
int
)
ctypedef
object
(
*
richcmpfunc
)(
object
,
object
,
int
)
# The following functions use 'PyObject*' as first argument instead of 'object' to prevent
# The following functions use 'PyObject*' as first argument instead of 'object' to prevent
# accidental reference counting when calling them during a garbage collection run.
# accidental reference counting when calling them during a garbage collection run.
ctypedef
void
(
*
destructor
)(
PyObject
*
)
ctypedef
void
(
*
destructor
)(
PyObject
*
)
ctypedef
int
(
*
visitproc
)(
PyObject
*
,
void
*
)
ctypedef
int
(
*
visitproc
)(
PyObject
*
,
void
*
)
except
-
1
ctypedef
int
(
*
traverseproc
)(
PyObject
*
,
visitproc
,
void
*
)
ctypedef
int
(
*
traverseproc
)(
PyObject
*
,
visitproc
,
void
*
)
except
-
1
ctypedef
object
(
*
descrgetfunc
)(
object
,
object
,
object
)
ctypedef
object
(
*
descrgetfunc
)(
object
,
object
,
object
)
ctypedef
int
(
*
descrsetfunc
)(
object
,
object
,
object
)
except
-
1
ctypedef
int
(
*
descrsetfunc
)(
object
,
object
,
object
)
except
-
1
...
...
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