Skip to content

bind: support for variadic arguments #55

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
phil-mansfield opened this issue Aug 31, 2015 · 5 comments
Closed

bind: support for variadic arguments #55

phil-mansfield opened this issue Aug 31, 2015 · 5 comments
Assignees

Comments

@phil-mansfield
Copy link

The package

package variadic

func Variadic(s ...float64) {
}

fails with

go build && gopy bind --lang=py2 .
2015/08/31 10:36:03 work: /var/folders/j0/l297p36x68dfmcrh07jptj200000gn/T/gopy-208401189
# _/private/var/folders/j0/l297p36x68dfmcrh07jptj200000gn/T/gopy-208401189
./variadic.go:159: cannot use *(*[]float64)(unsafe.Pointer(s)) (type []float64) as type float64 in argument to variadic.Variadic
2015/08/31 10:36:03 error dispatching command: exit status 2
@sbinet sbinet self-assigned this Aug 31, 2015
@tebanep
Copy link

tebanep commented Dec 20, 2015

+1 This is definitely a very required feature. Or the possibility to pass a list or a dictionary as argument. Thanks a lot for gopy, it is the missing link for golang adoption by pythonistas!

@rcoreilly
Copy link
Member

still not supported!

1 similar comment
@piaoxue1949
Copy link

still not supported!

@MatthiasLohr
Copy link

Any news on that? Would be great to have this feature!

@nishantsharma
Copy link

My PR#279 should address this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants