Message5821
(in response to msg5819)
I can see your point, and I have expected it to be dict() too. All I can find about 'stringmap' is this old documentation here (http://www.jython.org/archive/21/docs/differences.html)
Let me quote the relevant passage here:
The dictionaries used by classes, instances, and modules in Jython are not the same as the dictionaries created by {}. They are StringMap's which require all of their keys to be strings. After "class c: pass", c.__dict__[1] = 2 will work in CPython, but will raise a "TypeError: keys in namespace must be strings" error in Jython. Both behaviors are acceptable -- CPython might adopt Jython's approach in the future for the performance gains it can provide. |
|
Date |
User |
Action |
Args |
2010-06-17 09:56:21 | akong | set | messageid: <1276768581.87.0.66486022612.issue1618@psf.upfronthosting.co.za> |
2010-06-17 09:56:21 | akong | set | recipients:
+ akong, thijs, njoyce |
2010-06-17 09:56:21 | akong | link | issue1618 messages |
2010-06-17 09:56:20 | akong | create | |
|