Example of Java <-> Jython integration around None <-> null conversion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ jython27 | |
Jython 2.7b1+ (default:6e438088c0e3, Feb 10 2014, 11:00:25) | |
[Java HotSpot(TM) 64-Bit Server VM (Oracle Corporation)] on java1.7.0_21 | |
Type "help", "copyright", "credits" or "license" for more information. | |
>>> from java.util import HashMap | |
>>> x = {"a": 42, "b": None} | |
>>> y = HashMap(x) | |
>>> y | |
{b=null, a=42} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment