Message11673

Author jamesmudd
Recipients jamesmudd
Date 2017-11-22.18:51:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1511376669.83.0.213398074469.issue2644@psf.upfronthosting.co.za>
In-reply-to
Content
When you print a Java map to the console the representation of strings looses the quotes e.g:
    >>> str = 'hello world'
    >>> str
    'hello world'  <<<<<<<<<<<<<<<< Has quotes
    >>> from java.lang import String
    >>> jstr = String('hello world')
    >>> jstr
    hello world  <<<<<<<<<<<<<<<<<< Missing quotes?

    >>> from java.util import HashMap
    >>> hm = HashMap({'a': 1, 'b': 2, 'c': 3})
    >>> hm
    {a: 1, b: 2, c: 3}  <<<<<<<<<<<<<<<<<< Missing quotes?
    >>> m = {'a': 1, 'b': 2, 'c': 3}
    >>> m
    {'a': 1, 'b': 2, 'c': 3}  <<<<<<<<<<<<<<<< Has quotes

I noticed this playing with maps but is this intended?
History
Date User Action Args
2017-11-22 18:51:10jamesmuddsetrecipients: + jamesmudd
2017-11-22 18:51:09jamesmuddsetmessageid: <1511376669.83.0.213398074469.issue2644@psf.upfronthosting.co.za>
2017-11-22 18:51:09jamesmuddlinkissue2644 messages
2017-11-22 18:51:08jamesmuddcreate