Message3647
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. |
|
Date |
User |
Action |
Args |
2008-10-09 07:01:25 | bupjae | set | recipients:
+ bupjae |
2008-10-09 07:01:24 | bupjae | set | messageid: <1223535684.8.0.804829549947.issue1146@psf.upfronthosting.co.za> |
2008-10-09 07:01:24 | bupjae | link | issue1146 messages |
2008-10-09 07:01:23 | bupjae | create | |
|