Ignore:
Timestamp:
Mar 19, 2014, 11:31:01 PM (11 years ago)
Author:
dmik
Message:

python: Merge vendor 2.7.6 to trunk.

Location:
python/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • python/trunk

  • python/trunk/Doc/c-api/method.rst

    r2 r391  
    1111
    1212
    13 .. cvar:: PyTypeObject PyMethod_Type
     13.. c:var:: PyTypeObject PyMethod_Type
    1414
    1515   .. index:: single: MethodType (in module types)
    1616
    17    This instance of :ctype:`PyTypeObject` represents the Python method type.  This
     17   This instance of :c:type:`PyTypeObject` represents the Python method type.  This
    1818   is exposed to Python programs as ``types.MethodType``.
    1919
    2020
    21 .. cfunction:: int PyMethod_Check(PyObject *o)
     21.. c:function:: int PyMethod_Check(PyObject *o)
    2222
    23    Return true if *o* is a method object (has type :cdata:`PyMethod_Type`).  The
     23   Return true if *o* is a method object (has type :c:data:`PyMethod_Type`).  The
    2424   parameter must not be *NULL*.
    2525
    2626
    27 .. cfunction:: PyObject* PyMethod_New(PyObject *func, PyObject *self, PyObject *class)
     27.. c:function:: PyObject* PyMethod_New(PyObject *func, PyObject *self, PyObject *class)
    2828
    2929   Return a new method object, with *func* being any callable object; this is the
     
    3434
    3535
    36 .. cfunction:: PyObject* PyMethod_Class(PyObject *meth)
     36.. c:function:: PyObject* PyMethod_Class(PyObject *meth)
    3737
    3838   Return the class object from which the method *meth* was created; if this was
     
    4040
    4141
    42 .. cfunction:: PyObject* PyMethod_GET_CLASS(PyObject *meth)
     42.. c:function:: PyObject* PyMethod_GET_CLASS(PyObject *meth)
    4343
    44    Macro version of :cfunc:`PyMethod_Class` which avoids error checking.
     44   Macro version of :c:func:`PyMethod_Class` which avoids error checking.
    4545
    4646
    47 .. cfunction:: PyObject* PyMethod_Function(PyObject *meth)
     47.. c:function:: PyObject* PyMethod_Function(PyObject *meth)
    4848
    4949   Return the function object associated with the method *meth*.
    5050
    5151
    52 .. cfunction:: PyObject* PyMethod_GET_FUNCTION(PyObject *meth)
     52.. c:function:: PyObject* PyMethod_GET_FUNCTION(PyObject *meth)
    5353
    54    Macro version of :cfunc:`PyMethod_Function` which avoids error checking.
     54   Macro version of :c:func:`PyMethod_Function` which avoids error checking.
    5555
    5656
    57 .. cfunction:: PyObject* PyMethod_Self(PyObject *meth)
     57.. c:function:: PyObject* PyMethod_Self(PyObject *meth)
    5858
    5959   Return the instance associated with the method *meth* if it is bound, otherwise
     
    6161
    6262
    63 .. cfunction:: PyObject* PyMethod_GET_SELF(PyObject *meth)
     63.. c:function:: PyObject* PyMethod_GET_SELF(PyObject *meth)
    6464
    65    Macro version of :cfunc:`PyMethod_Self` which avoids error checking.
     65   Macro version of :c:func:`PyMethod_Self` which avoids error checking.
    6666
    6767
    68 .. cfunction:: int PyMethod_ClearFreeList()
     68.. c:function:: int PyMethod_ClearFreeList()
    6969
    7070   Clear the free list. Return the total number of freed items.
Note: See TracChangeset for help on using the changeset viewer.