예제 #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)
}