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

View File

@@ -82,9 +82,9 @@ func main() {
ctx := &context{pkg, obj, objPtr, ret, py}
for _, sym := range mod.Items {
switch sym.Type {
case "builtin_function_or_method", "function", "ufunc":
case "builtin_function_or_method", "function", "ufunc", "method-wrapper":
ctx.genFunc(pkg, sym)
case "str", "float", "bool", "type", "dict", "tuple", "list",
case "str", "float", "bool", "type", "dict", "tuple", "list", "object",
"module", "int", "set", "frozenset", "flags", "bool_": // skip
default:
t := sym.Type