Message5711
I have run into this while using Django on Jython (in particular,
admin's "formfield_overrides" feature) and have isolated the problem
in a small test script:
-----
d = {1:2, 3:4}
d2 = {5:6, 7:8}
print dict(d, **d2)
-----
When run using python (starting from 2.4 and above), I get the result
"{1: 2, 3: 4, 5: 6, 7: 8}". How ever, when run using jython from
trunk, i get the following error:
-----
Traceback (most recent call last):
File "/tmp/dicttest.py", line 4, in <module>
print dict(d, **d2)
TypeError: type keywords must be strings
----- |
|
Date |
User |
Action |
Args |
2010-04-15 20:19:43 | draghuram | set | recipients:
+ draghuram |
2010-04-15 20:19:42 | draghuram | set | messageid: <1271362782.54.0.525642817591.issue1600@psf.upfronthosting.co.za> |
2010-04-15 20:19:42 | draghuram | link | issue1600 messages |
2010-04-15 20:19:41 | draghuram | create | |
|