Message83826
I'm not quite sure why you expect them to be the same. The inputs are
different, after all - in one case, you have a Unicode object with a
single reference to it (from the tuple), in the second case, you have a
Unicode object with many more references:
py> sys.getrefcount(key[1])
2
py> sys.getrefcount((1,u'foo')[1])
5
That makes a difference for cPickle. |
|
Date |
User |
Action |
Args |
2009-03-19 23:01:28 | loewis | set | recipients:
+ loewis, rb |
2009-03-19 23:01:27 | loewis | set | messageid: <1237503687.97.0.0463514314043.issue5518@psf.upfronthosting.co.za> |
2009-03-19 23:00:27 | loewis | link | issue5518 messages |
2009-03-19 23:00:26 | loewis | create | |
|