go-python / gopy

gopy generates a CPython extension module from a go package.
BSD 3-Clause "New" or "Revised" License
2.05k stars 113 forks source link

bind: restore type-correctness of arguments #217

Closed sbinet closed 4 years ago

sbinet commented 4 years ago

before the migration to pybindgen, we could detect that arguments to a function or a method where of the expected type:

package pkg
func Foo(s string) { ... }
import "pkg"
pkg.Foo(42) ## raises an Exception

it seems this feature has been lost and wasn't caught by our testing infrastructure.