aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/tools/cython/Cython/Includes/cpython/method.pxd
diff options
context:
space:
mode:
authorAnton Samokhvalov <pg83@yandex.ru>2022-02-10 16:45:15 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:15 +0300
commit72cb13b4aff9bc9cf22e49251bc8fd143f82538f (patch)
treeda2c34829458c7d4e74bdfbdf85dff449e9e7fb8 /contrib/tools/cython/Cython/Includes/cpython/method.pxd
parent778e51ba091dc39e7b7fcab2b9cf4dbedfb6f2b5 (diff)
downloadydb-72cb13b4aff9bc9cf22e49251bc8fd143f82538f.tar.gz
Restoring authorship annotation for Anton Samokhvalov <pg83@yandex.ru>. Commit 1 of 2.
Diffstat (limited to 'contrib/tools/cython/Cython/Includes/cpython/method.pxd')
-rw-r--r--contrib/tools/cython/Cython/Includes/cpython/method.pxd94
1 files changed, 47 insertions, 47 deletions
diff --git a/contrib/tools/cython/Cython/Includes/cpython/method.pxd b/contrib/tools/cython/Cython/Includes/cpython/method.pxd
index f51ebcc7c7..b403a16a00 100644
--- a/contrib/tools/cython/Cython/Includes/cpython/method.pxd
+++ b/contrib/tools/cython/Cython/Includes/cpython/method.pxd
@@ -1,49 +1,49 @@
from .object cimport PyObject
-cdef extern from "Python.h":
- ############################################################################
- # 7.5.4 Method Objects
- ############################################################################
-
- # There are some useful functions that are useful for working with method objects.
- # PyTypeObject PyMethod_Type
- # This instance of PyTypeObject represents the Python method type. This is exposed to Python programs as types.MethodType.
-
- bint PyMethod_Check(object o)
- # Return true if o is a method object (has type
- # PyMethod_Type). The parameter must not be NULL.
-
- object PyMethod_New(object func, object self, object cls)
- # Return value: New reference.
- # Return a new method object, with func being any callable object;
- # this is the function that will be called when the method is
- # called. If this method should be bound to an instance, self
- # should be the instance and class should be the class of self,
- # otherwise self should be NULL and class should be the class
- # which provides the unbound method..
-
- PyObject* PyMethod_Class(object meth) except NULL
- # Return value: Borrowed reference.
- # Return the class object from which the method meth was created;
- # if this was created from an instance, it will be the class of
- # the instance.
-
- PyObject* PyMethod_GET_CLASS(object meth)
- # Return value: Borrowed reference.
- # Macro version of PyMethod_Class() which avoids error checking.
-
- PyObject* PyMethod_Function(object meth) except NULL
- # Return value: Borrowed reference.
- # Return the function object associated with the method meth.
-
- PyObject* PyMethod_GET_FUNCTION(object meth)
- # Return value: Borrowed reference.
- # Macro version of PyMethod_Function() which avoids error checking.
-
- PyObject* PyMethod_Self(object meth) except? NULL
- # Return value: Borrowed reference.
- # Return the instance associated with the method meth if it is bound, otherwise return NULL.
-
- PyObject* PyMethod_GET_SELF(object meth)
- # Return value: Borrowed reference.
- # Macro version of PyMethod_Self() which avoids error checking.
+cdef extern from "Python.h":
+ ############################################################################
+ # 7.5.4 Method Objects
+ ############################################################################
+
+ # There are some useful functions that are useful for working with method objects.
+ # PyTypeObject PyMethod_Type
+ # This instance of PyTypeObject represents the Python method type. This is exposed to Python programs as types.MethodType.
+
+ bint PyMethod_Check(object o)
+ # Return true if o is a method object (has type
+ # PyMethod_Type). The parameter must not be NULL.
+
+ object PyMethod_New(object func, object self, object cls)
+ # Return value: New reference.
+ # Return a new method object, with func being any callable object;
+ # this is the function that will be called when the method is
+ # called. If this method should be bound to an instance, self
+ # should be the instance and class should be the class of self,
+ # otherwise self should be NULL and class should be the class
+ # which provides the unbound method..
+
+ PyObject* PyMethod_Class(object meth) except NULL
+ # Return value: Borrowed reference.
+ # Return the class object from which the method meth was created;
+ # if this was created from an instance, it will be the class of
+ # the instance.
+
+ PyObject* PyMethod_GET_CLASS(object meth)
+ # Return value: Borrowed reference.
+ # Macro version of PyMethod_Class() which avoids error checking.
+
+ PyObject* PyMethod_Function(object meth) except NULL
+ # Return value: Borrowed reference.
+ # Return the function object associated with the method meth.
+
+ PyObject* PyMethod_GET_FUNCTION(object meth)
+ # Return value: Borrowed reference.
+ # Macro version of PyMethod_Function() which avoids error checking.
+
+ PyObject* PyMethod_Self(object meth) except? NULL
+ # Return value: Borrowed reference.
+ # Return the instance associated with the method meth if it is bound, otherwise return NULL.
+
+ PyObject* PyMethod_GET_SELF(object meth)
+ # Return value: Borrowed reference.
+ # Macro version of PyMethod_Self() which avoids error checking.