Example #1
0
File: type.go Project: MogeiWang/py
func (t *Type) Alloc(n int64) (*Base, error) {
	ret := C.typeAlloc(t.c(), C.Py_ssize_t(n))
	return obj2ObjErr(ret)
}
Example #2
0
func (t *Type) Alloc(n int64) (Object, error) {
	ret := C.typeAlloc(c(t), C.Py_ssize_t(n))
	return obj2ObjErr(ret)
}