Author loewis
Recipients loewis, rb
Date 2009-03-19.23:00:26
SpamBayes Score 3.69842e-06
Marked as misclassified No
Message-id <1237503687.97.0.0463514314043.issue5518@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2009-03-19 23:01:28loewissetrecipients: + loewis, rb
2009-03-19 23:01:27loewissetmessageid: <1237503687.97.0.0463514314043.issue5518@psf.upfronthosting.co.za>
2009-03-19 23:00:27loewislinkissue5518 messages
2009-03-19 23:00:26loewiscreate