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
e1255baa
Commit
e1255baa
authored
Jul 17, 2017
by
Jeroen Demeyer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add declarations for PyObject_GenericGetAttr and PyObject_GenericSetAttr
parent
a2db27bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
Cython/Includes/cpython/object.pxd
Cython/Includes/cpython/object.pxd
+4
-0
No files found.
Cython/Includes/cpython/object.pxd
View file @
e1255baa
...
@@ -102,6 +102,8 @@ cdef extern from "Python.h":
...
@@ -102,6 +102,8 @@ cdef extern from "Python.h":
# or NULL on failure. This is the equivalent of the Python
# or NULL on failure. This is the equivalent of the Python
# expression "o.attr_name".
# expression "o.attr_name".
object
PyObject_GenericGetAttr
(
object
o
,
object
attr_name
)
int
PyObject_SetAttrString
(
object
o
,
char
*
attr_name
,
object
v
)
except
-
1
int
PyObject_SetAttrString
(
object
o
,
char
*
attr_name
,
object
v
)
except
-
1
# Set the value of the attribute named attr_name, for object o, to
# Set the value of the attribute named attr_name, for object o, to
# the value v. Returns -1 on failure. This is the equivalent of
# the value v. Returns -1 on failure. This is the equivalent of
...
@@ -112,6 +114,8 @@ cdef extern from "Python.h":
...
@@ -112,6 +114,8 @@ cdef extern from "Python.h":
# the value v. Returns -1 on failure. This is the equivalent of
# the value v. Returns -1 on failure. This is the equivalent of
# the Python statement "o.attr_name = v".
# the Python statement "o.attr_name = v".
int
PyObject_GenericSetAttr
(
object
o
,
object
attr_name
,
object
v
)
except
-
1
int
PyObject_DelAttrString
(
object
o
,
char
*
attr_name
)
except
-
1
int
PyObject_DelAttrString
(
object
o
,
char
*
attr_name
)
except
-
1
# Delete attribute named attr_name, for object o. Returns -1 on
# Delete attribute named attr_name, for object o. Returns -1 on
# failure. This is the equivalent of the Python statement: "del
# failure. This is the equivalent of the Python statement: "del
...
...
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