py4j icon indicating copy to clipboard operation
py4j copied to clipboard

Add TypeInt for Specifying Integer Variant from Python to Java

Open srilman opened this issue 3 years ago • 3 comments

This PR addresses issue #374. It provides a way for users to specify how they would like Python integers to be converted into Java (whether to treat them like an int, short, or long). This PR currently only adds an integer and long variant, since Py4J does not have general support for shorts.

srilman avatar Sep 28 '22 14:09 srilman

Do you have some recommendations for tests? I was thinking of adding a a test to java_array_test.py of creating arrays using TypeInt, and maybe some basic examples of communicating from Python to Java. Are there any good examples of tests that do that?

Also, what do you mean by "other type hints"?

srilman avatar Oct 14 '22 15:10 srilman

@HyukjinKwon What needs to be done with this PR to get it merged?

njriasan avatar Mar 21 '24 18:03 njriasan