示例#1
0
文件: type.go 项目: MogeiWang/py
func (t *Type) Alloc(n int64) (*Base, error) {
	ret := C.typeAlloc(t.c(), C.Py_ssize_t(n))
	return obj2ObjErr(ret)
}
示例#2
0
func (t *Type) Alloc(n int64) (Object, error) {
	ret := C.typeAlloc(c(t), C.Py_ssize_t(n))
	return obj2ObjErr(ret)
}