Skip to content
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

Is it possible to provide auto conversion from Python list to Java array? #401

Open
Fanoid opened this issue Jun 4, 2020 · 0 comments
Open

Comments

@Fanoid
Copy link

Fanoid commented Jun 4, 2020

The auto type conversion in py4j for primitive types are very convenient when calling methods.
But, when Java methods has arrays as the parameters, I have to manually create the array using new_array from Python list or some iterables.
It drives me crazy when I need to write codes for many (tens or hundreds) such methods.

I was trying to write a general conversion from Python list to Java array, but found the type matching are very complex without reflection.

So any good ideas to do this conversion automatically?

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

No branches or pull requests

1 participant