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
5bd29d5e
Commit
5bd29d5e
authored
Apr 28, 2015
by
scoder
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #383 from jdemeyer/PyTypeObject_cmp
PyTypeObject members tp_compare, tp_richcompare, tp_base
parents
4b8c1991
fc728e4a
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 @
5bd29d5e
...
...
@@ -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