llpyg: numpy/inspect

This commit is contained in:
xushiwei
2024-05-15 13:57:26 +08:00
parent ea4d92e671
commit c1bf895674
4 changed files with 633 additions and 44 deletions

14
py/inspect/doc.txt Normal file
View File

@@ -0,0 +1,14 @@
// https://docs.python.org/3/library/inspect.html
// Return a signature object for the given callable.
//
//go:linkname Signature py.signature
func Signature(callable *py.Object) *py.Object
// Get the names and default values of a Python functions parameters. A named
// tuple is returned:
//
// FullArgSpec(args, varargs, varkw, defaults, kwonlyargs, kwonlydefaults, annotations)
//
//go:linkname Getfullargspec py.getfullargspec
func Getfullargspec(f *py.Object) *py.Object