-
Notifications
You must be signed in to change notification settings - Fork 18
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
Remove try with resource in PyDictWrapper.values() #105
Remove try with resource in PyDictWrapper.values() #105
Conversation
I think we need to audit all usages of asList and asDict, as it looks like there may be other callsites that use the same pattern. |
I did a global search/verification and found no problem with other places that use the same pattern. |
I see exactly the same issues w/ org.jpy.PyDictWrapper#keySet; maybe org.jpy.PyDictWrapper#entrySet (need to look into the semantics more, org.jpy.PyDictWrapper#get(java.lang.Object) claims a borrowed reference. |
I believe you're misreading (though I read it that way when I first looked at this PR): whereas PyDictWrapper.values returns Both
|
Good point. These are subtle issues. |
Fixes #104