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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
fc728e4a
Commit
fc728e4a
authored
Apr 28, 2015
by
Jeroen Demeyer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PyTypeObject members tp_compare, tp_richcompare, tp_base
parent
4b8c1991
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
Cython/Includes/cpython/object.pxd
Cython/Includes/cpython/object.pxd
+8
-0
No files found.
Cython/Includes/cpython/object.pxd
View file @
fc728e4a
...
...
@@ -22,6 +22,9 @@ cdef extern from "Python.h":
ctypedef
Py_hash_t
(
*
hashfunc
)(
object
)
ctypedef
object
(
*
reprfunc
)(
object
)
ctypedef
int
(
*
cmpfunc
)(
object
,
object
)
ctypedef
object
(
*
richcmpfunc
)(
object
,
object
,
int
)
# The following functions use 'PyObject*' as first argument instead of 'object' to prevent
# accidental reference counting when calling them during a garbage collection run.
ctypedef
void
(
*
destructor
)(
PyObject
*
)
...
...
@@ -46,6 +49,11 @@ cdef extern from "Python.h":
reprfunc
tp_str
reprfunc
tp_repr
cmpfunc
tp_compare
richcmpfunc
tp_richcompare
PyTypeObject
*
tp_base
ctypedef
struct
PyObject
:
Py_ssize_t
ob_refcnt
PyTypeObject
*
ob_type
...
...
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