Example #1
0
File: type.go Project: MogeiWang/py
func (t *Type) Init(obj *Base, args *Tuple, kw *Dict) error {
	ret := C.typeInit(t.c(), obj.c(), args.c(), kw.c())
	if ret < 0 {
		return exception()
	}
	return nil
}
Example #2
0
func (t *Type) Init(obj Object, args *Tuple, kw *Dict) error {
	ret := C.typeInit(c(t), c(obj), c(args), c(kw))
	if ret < 0 {
		return exception()
	}
	return nil
}