示例#1
0
文件: dict.go 项目: remh/go-python
// PyObject* PyDict_Copy(PyObject *p)
// Return value: New reference.
// Return a new dictionary that contains the same key-value pairs as p.
//
// New in version 1.6.
func PyDict_Copy(self *PyObject) *PyObject {
	return togo(C.PyDict_Copy(topy(self)))
}
示例#2
0
文件: dict.go 项目: gbbr/textmate
// Copy returns a new dictionary that contains the same key-values pairs as d.
//
// Return value: New Reference.
func (d *Dict) Copy() (Object, error) {
	ret := C.PyDict_Copy(c(d))
	return obj2ObjErr(ret)
}
示例#3
0
文件: dict.go 项目: MogeiWang/py
// Copy returns a new dictionary that contains the same key-values pairs as d.
//
// Return value: New Reference.
func (d *Dict) Copy() (*Base, error) {
	ret := C.PyDict_Copy(d.c())
	return obj2ObjErr(ret)
}