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/function.rst

    r2 r391  
    1111
    1212
    13 .. ctype:: PyFunctionObject
     13.. c:type:: PyFunctionObject
    1414
    1515   The C structure used for functions.
    1616
    1717
    18 .. cvar:: PyTypeObject PyFunction_Type
     18.. c:var:: PyTypeObject PyFunction_Type
    1919
    2020   .. index:: single: MethodType (in module types)
    2121
    22    This is an instance of :ctype:`PyTypeObject` and represents the Python function
     22   This is an instance of :c:type:`PyTypeObject` and represents the Python function
    2323   type.  It is exposed to Python programmers as ``types.FunctionType``.
    2424
    2525
    26 .. cfunction:: int PyFunction_Check(PyObject *o)
     26.. c:function:: int PyFunction_Check(PyObject *o)
    2727
    28    Return true if *o* is a function object (has type :cdata:`PyFunction_Type`).
     28   Return true if *o* is a function object (has type :c:data:`PyFunction_Type`).
    2929   The parameter must not be *NULL*.
    3030
    3131
    32 .. cfunction:: PyObject* PyFunction_New(PyObject *code, PyObject *globals)
     32.. c:function:: PyObject* PyFunction_New(PyObject *code, PyObject *globals)
    3333
    3434   Return a new function object associated with the code object *code*. *globals*
     
    3939
    4040
    41 .. cfunction:: PyObject* PyFunction_GetCode(PyObject *op)
     41.. c:function:: PyObject* PyFunction_GetCode(PyObject *op)
    4242
    4343   Return the code object associated with the function object *op*.
    4444
    4545
    46 .. cfunction:: PyObject* PyFunction_GetGlobals(PyObject *op)
     46.. c:function:: PyObject* PyFunction_GetGlobals(PyObject *op)
    4747
    4848   Return the globals dictionary associated with the function object *op*.
    4949
    5050
    51 .. cfunction:: PyObject* PyFunction_GetModule(PyObject *op)
     51.. c:function:: PyObject* PyFunction_GetModule(PyObject *op)
    5252
    5353   Return the *__module__* attribute of the function object *op*. This is normally
     
    5656
    5757
    58 .. cfunction:: PyObject* PyFunction_GetDefaults(PyObject *op)
     58.. c:function:: PyObject* PyFunction_GetDefaults(PyObject *op)
    5959
    6060   Return the argument default values of the function object *op*. This can be a
     
    6262
    6363
    64 .. cfunction:: int PyFunction_SetDefaults(PyObject *op, PyObject *defaults)
     64.. c:function:: int PyFunction_SetDefaults(PyObject *op, PyObject *defaults)
    6565
    6666   Set the argument default values for the function object *op*. *defaults* must be
     
    7070
    7171
    72 .. cfunction:: PyObject* PyFunction_GetClosure(PyObject *op)
     72.. c:function:: PyObject* PyFunction_GetClosure(PyObject *op)
    7373
    7474   Return the closure associated with the function object *op*. This can be *NULL*
     
    7676
    7777
    78 .. cfunction:: int PyFunction_SetClosure(PyObject *op, PyObject *closure)
     78.. c:function:: int PyFunction_SetClosure(PyObject *op, PyObject *closure)
    7979
    8080   Set the closure associated with the function object *op*. *closure* must be
Note: See TracChangeset for help on using the changeset viewer.