Changeset 391 for python/trunk/Doc/c-api/class.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/class.rst
r2 r391 13 13 14 14 15 .. c type:: PyClassObject15 .. c:type:: PyClassObject 16 16 17 17 The C structure of the objects used to describe built-in classes. 18 18 19 19 20 .. c var:: PyObject* PyClass_Type20 .. c:var:: PyObject* PyClass_Type 21 21 22 22 .. index:: single: ClassType (in module types) … … 26 26 27 27 28 .. c function:: int PyClass_Check(PyObject *o)28 .. c:function:: int PyClass_Check(PyObject *o) 29 29 30 30 Return true if the object *o* is a class object, including instances of types … … 32 32 33 33 34 .. c function:: int PyClass_IsSubclass(PyObject *klass, PyObject *base)34 .. c:function:: int PyClass_IsSubclass(PyObject *klass, PyObject *base) 35 35 36 36 Return true if *klass* is a subclass of *base*. Return false in all other cases. … … 42 42 43 43 44 .. c var:: PyTypeObject PyInstance_Type44 .. c:var:: PyTypeObject PyInstance_Type 45 45 46 46 Type object for class instances. 47 47 48 48 49 .. c function:: int PyInstance_Check(PyObject *obj)49 .. c:function:: int PyInstance_Check(PyObject *obj) 50 50 51 51 Return true if *obj* is an instance. 52 52 53 53 54 .. c function:: PyObject* PyInstance_New(PyObject *class, PyObject *arg, PyObject *kw)54 .. c:function:: PyObject* PyInstance_New(PyObject *class, PyObject *arg, PyObject *kw) 55 55 56 56 Create a new instance of a specific class. The parameters *arg* and *kw* are … … 58 58 59 59 60 .. c function:: PyObject* PyInstance_NewRaw(PyObject *class, PyObject *dict)60 .. c:function:: PyObject* PyInstance_NewRaw(PyObject *class, PyObject *dict) 61 61 62 62 Create a new instance of a specific class without calling its constructor.
Note:
See TracChangeset
for help on using the changeset viewer.