Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(261)

Side by Side Diff: third_party/cython/src/Cython/Includes/cpython/method.pxd

Issue 385073004: Adding cython v0.20.2 in third-party. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Reference cython dev list thread. Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 cdef extern from "Python.h":
2 ctypedef void PyObject
3 ############################################################################
4 # 7.5.4 Method Objects
5 ############################################################################
6
7 # There are some useful functions that are useful for working with method ob jects.
8 # PyTypeObject PyMethod_Type
9 # This instance of PyTypeObject represents the Python method type. This is e xposed to Python programs as types.MethodType.
10
11 bint PyMethod_Check(object o)
12 # Return true if o is a method object (has type
13 # PyMethod_Type). The parameter must not be NULL.
14
15 object PyMethod_New(object func, object self, object cls)
16 # Return value: New reference.
17 # Return a new method object, with func being any callable object;
18 # this is the function that will be called when the method is
19 # called. If this method should be bound to an instance, self
20 # should be the instance and class should be the class of self,
21 # otherwise self should be NULL and class should be the class
22 # which provides the unbound method..
23
24 PyObject* PyMethod_Class(object meth) except NULL
25 # Return value: Borrowed reference.
26 # Return the class object from which the method meth was created;
27 # if this was created from an instance, it will be the class of
28 # the instance.
29
30 PyObject* PyMethod_GET_CLASS(object meth)
31 # Return value: Borrowed reference.
32 # Macro version of PyMethod_Class() which avoids error checking.
33
34 PyObject* PyMethod_Function(object meth) except NULL
35 # Return value: Borrowed reference.
36 # Return the function object associated with the method meth.
37
38 PyObject* PyMethod_GET_FUNCTION(object meth)
39 # Return value: Borrowed reference.
40 # Macro version of PyMethod_Function() which avoids error checking.
41
42 PyObject* PyMethod_Self(object meth) except? NULL
43 # Return value: Borrowed reference.
44 # Return the instance associated with the method meth if it is bound, otherw ise return NULL.
45
46 PyObject* PyMethod_GET_SELF(object meth)
47 # Return value: Borrowed reference.
48 # Macro version of PyMethod_Self() which avoids error checking.
OLDNEW
« no previous file with comments | « third_party/cython/src/Cython/Includes/cpython/mem.pxd ('k') | third_party/cython/src/Cython/Includes/cpython/module.pxd » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698