Changeset 391 for python/trunk/Doc/c-api/method.rst
- Timestamp:
- Mar 19, 2014, 11:31:01 PM (11 years ago)
- Location:
- python/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
python/trunk
-
Property svn:mergeinfo
set to
/python/vendor/Python-2.7.6 merged eligible /python/vendor/current merged eligible
-
Property svn:mergeinfo
set to
-
python/trunk/Doc/c-api/method.rst
r2 r391 11 11 12 12 13 .. c var:: PyTypeObject PyMethod_Type13 .. c:var:: PyTypeObject PyMethod_Type 14 14 15 15 .. index:: single: MethodType (in module types) 16 16 17 This instance of :c type:`PyTypeObject` represents the Python method type. This17 This instance of :c:type:`PyTypeObject` represents the Python method type. This 18 18 is exposed to Python programs as ``types.MethodType``. 19 19 20 20 21 .. c function:: int PyMethod_Check(PyObject *o)21 .. c:function:: int PyMethod_Check(PyObject *o) 22 22 23 Return true if *o* is a method object (has type :c data:`PyMethod_Type`). The23 Return true if *o* is a method object (has type :c:data:`PyMethod_Type`). The 24 24 parameter must not be *NULL*. 25 25 26 26 27 .. c function:: PyObject* PyMethod_New(PyObject *func, PyObject *self, PyObject *class)27 .. c:function:: PyObject* PyMethod_New(PyObject *func, PyObject *self, PyObject *class) 28 28 29 29 Return a new method object, with *func* being any callable object; this is the … … 34 34 35 35 36 .. c function:: PyObject* PyMethod_Class(PyObject *meth)36 .. c:function:: PyObject* PyMethod_Class(PyObject *meth) 37 37 38 38 Return the class object from which the method *meth* was created; if this was … … 40 40 41 41 42 .. c function:: PyObject* PyMethod_GET_CLASS(PyObject *meth)42 .. c:function:: PyObject* PyMethod_GET_CLASS(PyObject *meth) 43 43 44 Macro version of :c func:`PyMethod_Class` which avoids error checking.44 Macro version of :c:func:`PyMethod_Class` which avoids error checking. 45 45 46 46 47 .. c function:: PyObject* PyMethod_Function(PyObject *meth)47 .. c:function:: PyObject* PyMethod_Function(PyObject *meth) 48 48 49 49 Return the function object associated with the method *meth*. 50 50 51 51 52 .. c function:: PyObject* PyMethod_GET_FUNCTION(PyObject *meth)52 .. c:function:: PyObject* PyMethod_GET_FUNCTION(PyObject *meth) 53 53 54 Macro version of :c func:`PyMethod_Function` which avoids error checking.54 Macro version of :c:func:`PyMethod_Function` which avoids error checking. 55 55 56 56 57 .. c function:: PyObject* PyMethod_Self(PyObject *meth)57 .. c:function:: PyObject* PyMethod_Self(PyObject *meth) 58 58 59 59 Return the instance associated with the method *meth* if it is bound, otherwise … … 61 61 62 62 63 .. c function:: PyObject* PyMethod_GET_SELF(PyObject *meth)63 .. c:function:: PyObject* PyMethod_GET_SELF(PyObject *meth) 64 64 65 Macro version of :c func:`PyMethod_Self` which avoids error checking.65 Macro version of :c:func:`PyMethod_Self` which avoids error checking. 66 66 67 67 68 .. c function:: int PyMethod_ClearFreeList()68 .. c:function:: int PyMethod_ClearFreeList() 69 69 70 70 Clear the free list. Return the total number of freed items.
Note:
See TracChangeset
for help on using the changeset viewer.