Author akong
Recipients akong, njoyce, thijs
Date 2010-06-17.09:56:20
SpamBayes Score 0.0435067
Marked as misclassified No
Message-id <>
(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 (

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:21akongsetmessageid: <>
2010-06-17 09:56:21akongsetrecipients: + akong, thijs, njoyce
2010-06-17 09:56:21akonglinkissue1618 messages
2010-06-17 09:56:20akongcreate