// Return value: New reference. // 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. func (t *Class) New(args *Tuple, kw *Dict) (ret *Base, err error) { ret1 := C.PyInstance_New(t.c(), args.c(), kw.c()) return obj2ObjErr(ret1) }
// PyObject* PyInstance_New(PyObject *class, PyObject *arg, PyObject *kw) // Return value: New reference. // 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. func PyInstance_New(class, arg, kw *PyObject) *PyObject { return togo(C.PyInstance_New(topy(class), topy(arg), topy(kw))) }