8000 docs · limaochang/go-python@f43dcc3 · GitHub
[go: up one dir, main page]

Skip to content

Commit f43dcc3

Browse files
eliothedemansbinet
authored andcommitted
docs
1 parent 1c5e6d5 commit f43dcc3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

otherobjects.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -592,6 +592,9 @@ func PyCallIter_New(callable, sentinel *PyObject) *PyObject {
592592
return togo(C.PyCallIter_New(topy(callable), topy(sentinel)))
593593
}
594594

595+
// PyObject* PyCode_NewEmpty(char *filename, char *funcname, int firstlineno)
596+
// Return value: New reference.
597+
// Return an empty CodePythonObject that corosponds to the file name, func name and line number in the source file it points to.
595598
func PyCode_NewEmpty(filename string, 442A funcname string, firstlineno int) *PyObject {
596599
return togo((*C.PyObject)(unsafe.Pointer(C.PyCode_NewEmpty(C.CString(filename), C.CString(funcname), C.int(firstlineno)))))
597600
}

0 commit comments

Comments
 (0)
0