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

Add TypeInt for Specifying Integer Variant from Python to Java #500

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

srilman
Copy link

@srilman srilman commented Sep 28, 2022

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.

Copy link
Member

@HyukjinKwon HyukjinKwon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add a test? Also, does this work with other type hints?

@srilman
Copy link
Author

srilman commented Oct 14, 2022

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"?

@njriasan
Copy link

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

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

Successfully merging this pull request may close these issues.

None yet

3 participants