ssa: PyVal support pointer to long

This commit is contained in:
visualfc
2025-07-30 15:42:34 +08:00
parent f43e2c0dee
commit 54dfd3c701
3 changed files with 70 additions and 52 deletions

View File

@@ -1,14 +1,17 @@
package main
import (
"unsafe"
"github.com/goplus/lib/py"
"github.com/goplus/lib/py/math"
"github.com/goplus/lib/py/std"
)
func main() {
v := 100
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{})
"hello", []byte("world"), [...]byte{1, 2, 3}, [...]byte{}, &v, unsafe.Pointer(&v))
y := py.List(std.Abs, std.Print, math.Pi)
std.Print(x, y)
}