Message5711

Author draghuram
Recipients draghuram
Date 2010-04-15.20:19:40
SpamBayes Score 3.5545887e-07
Marked as misclassified No
Message-id <1271362782.54.0.525642817591.issue1600@psf.upfronthosting.co.za>
In-reply-to
Content
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
-----
History
Date User Action Args
2010-04-15 20:19:43draghuramsetrecipients: + draghuram
2010-04-15 20:19:42draghuramsetmessageid: <1271362782.54.0.525642817591.issue1600@psf.upfronthosting.co.za>
2010-04-15 20:19:42draghuramlinkissue1600 messages
2010-04-15 20:19:41draghuramcreate