ssa: PyVal support py bytes

This commit is contained in:
visualfc
2025-07-30 12:12:19 +08:00
parent d8da4364fd
commit 36fa18b28c
3 changed files with 79 additions and 35 deletions

View File

@@ -7,7 +7,8 @@ import (
)
func main() {
x := py.List(true, false, 1, float32(2.1), 3.1, uint(4), 1+2i, complex64(3+4i), "hello", []byte("world"))
x := py.List(true, false, 1, float32(2.1), 3.1, uint(4), 1+2i, complex64(3+4i),
"hello", []byte("world"), [...]byte{1, 2, 3}, [...]byte{})
y := py.List(std.Abs, std.Print, math.Pi)
std.Print(x, y)
}