Copyright (C) 2000-2012 |
GNU Info (python2.1-api.info)Instance ObjectsInstance Objects ---------------- There are very few functions specific to instance objects. `PyTypeObject PyInstance_Type' Type object for class instances. `int PyInstance_Check(PyObject *obj)' Returns true if OBJ is an instance. `PyObject* PyInstance_New(PyObject *class, PyObject *arg, PyObject *kw)' Create a new instance of a specific class. The parameters ARG and KW are used as the positional and keyword parameters to the object's constructor. `PyObject* PyInstance_NewRaw(PyObject *class, PyObject *dict)' Create a new instance of a specific class without calling it's constructor. CLASS is the class of new object. The DICT parameter will be used as the object's `__dict__'; if `NULL', a new dictionary will be created for the instance. |