Message3647

Author bupjae
Recipients bupjae
Date 2008-10-09.07:01:23
SpamBayes Score 5.1686433e-12
Marked as misclassified No
Message-id <1223535684.8.0.804829549947.issue1146@psf.upfronthosting.co.za>
In-reply-to
Content
C:\jython2.5a3>jython
Jython 2.5a3 (trunk:5315:5317, Sep 10 2008, 20:54:23)
[Java HotSpot(TM) Client VM (Sun Microsystems Inc.)] on java1.6.0_07
Type "help", "copyright", "credits" or "license" for more information.
>>> import java
>>>
>>> x=java.util.Hashtable()
>>> x.put('test', 1)
>>> x
{test=1}
>>> dict(x)
{'test': 1}
>>>
>>> x=java.util.HashMap()
>>> x.put('test', 1)
>>> x
{test=1}
>>> dict(x)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: dictionary update sequence element #0 has length 4; 2 is 
required
>>>

I think behavior of dict() with java.util.HashMap is wrong.
History
Date User Action Args
2008-10-09 07:01:25bupjaesetrecipients: + bupjae
2008-10-09 07:01:24bupjaesetmessageid: <1223535684.8.0.804829549947.issue1146@psf.upfronthosting.co.za>
2008-10-09 07:01:24bupjaelinkissue1146 messages
2008-10-09 07:01:23bupjaecreate