Message8568

Author santa4nt
Recipients santa4nt
Date 2014-05-22.20:06:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1400789205.93.0.939144508295.issue2153@psf.upfronthosting.co.za>
In-reply-to
Content
Is this not weird?

>>> d = {}
>>> d['a'] = 1
>>> d[1] = 'a'
>>> d[2] = b'b'
>>> d[b'b'] = 2
>>> d[3] = u'c'
>>> d[u'c'] = 3
>>> [e for e in d.iteritems()]
[(u'c', 3), ('b', 2), ('a', 1), (3, u'c'), (2, 'b'), (1, 'a')]
>>> from java.util import HashMap
>>> d = HashMap(d)
>>> for k in d:
...     print repr(k), repr(d[k])
... 
1 u'a'
2 u'b'
3 u'c'
u'b' 2
u'c' 3
u'a' 1
History
Date User Action Args
2014-05-22 20:06:45santa4ntsetrecipients: + santa4nt
2014-05-22 20:06:45santa4ntsetmessageid: <1400789205.93.0.939144508295.issue2153@psf.upfronthosting.co.za>
2014-05-22 20:06:45santa4ntlinkissue2153 messages
2014-05-22 20:06:45santa4ntcreate