cl: funcOf fix: call pyfunc multiple times

This commit is contained in:
xushiwei
2024-05-19 00:15:23 +08:00
parent 0787909045
commit 63e678928b
5 changed files with 110 additions and 13 deletions

View File

@@ -9,7 +9,7 @@ func main() {
x := std.Max(py.Float(3.0), py.Float(9.0), py.Float(23.0), py.Float(100.0))
std.Print(x)
// y := py.List(3.0, 9.0, 23.0, 100.0)
// ymax := std.Max(std.Iter(y))
// std.Print(ymax)
list := py.List(3.0, 9.0, 23.0, 100.0)
y := std.Max(std.Iter(list))
std.Print(y)
}