Message8568
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 |
|
Date |
User |
Action |
Args |
2014-05-22 20:06:45 | santa4nt | set | recipients:
+ santa4nt |
2014-05-22 20:06:45 | santa4nt | set | messageid: <1400789205.93.0.939144508295.issue2153@psf.upfronthosting.co.za> |
2014-05-22 20:06:45 | santa4nt | link | issue2153 messages |
2014-05-22 20:06:45 | santa4nt | create | |
|