Message5821

Author akong
Recipients akong, njoyce, thijs
Date 2010-06-17.09:56:20
SpamBayes Score 0.0435067
Marked as misclassified No
Message-id <1276768581.87.0.66486022612.issue1618@psf.upfronthosting.co.za>
In-reply-to
Content
(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.
History
Date User Action Args
2010-06-17 09:56:21akongsetmessageid: <1276768581.87.0.66486022612.issue1618@psf.upfronthosting.co.za>
2010-06-17 09:56:21akongsetrecipients: + akong, thijs, njoyce
2010-06-17 09:56:21akonglinkissue1618 messages
2010-06-17 09:56:20akongcreate