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
4c7bd3c8
Commit
4c7bd3c8
authored
Mar 19, 2020
by
Zackery Spytz
Committed by
GitHub
Mar 19, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add some missing Py3.3+ declarations to object.pxd (GH-3445)
parent
c5f2231e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
Cython/Includes/cpython/object.pxd
Cython/Includes/cpython/object.pxd
+18
-0
No files found.
Cython/Includes/cpython/object.pxd
View file @
4c7bd3c8
...
...
@@ -132,6 +132,17 @@ cdef extern from "Python.h":
# failure. This is the equivalent of the Python statement "del
# o.attr_name".
object
PyObject_GenericGetDict
(
object
o
,
void
*
context
)
# Return value: New reference.
# A generic implementation for the getter of a __dict__ descriptor. It
# creates the dictionary if necessary.
# New in version 3.3.
int
PyObject_GenericSetDict
(
object
o
,
object
value
,
void
*
context
)
except
-
1
# A generic implementation for the setter of a __dict__ descriptor. This
# implementation does not allow the dictionary to be deleted.
# New in version 3.3.
int
Py_LT
,
Py_LE
,
Py_EQ
,
Py_NE
,
Py_GT
,
Py_GE
object
PyObject_RichCompare
(
object
o1
,
object
o2
,
int
opid
)
...
...
@@ -332,6 +343,13 @@ cdef extern from "Python.h":
# returned. On error, -1 is returned. This is the equivalent to
# the Python expression "len(o)".
Py_ssize_t
PyObject_LengthHint
(
object
o
,
Py_ssize_t
default
)
except
-
1
# Return an estimated length for the object o. First try to return its
# actual length, then an estimate using __length_hint__(), and finally
# return the default value. On error, return -1. This is the equivalent to
# the Python expression "operator.length_hint(o, default)".
# New in version 3.4.
object
PyObject_GetItem
(
object
o
,
object
key
)
# Return value: New reference.
# Return element of o corresponding to the object key or NULL on
...
...
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