This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author singer
Recipients singer
Date 2012-12-06.11:29:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1354793367.35.0.329772791063.issue16627@psf.upfronthosting.co.za>
In-reply-to
Content
#python code:
a={600072:1, 80000880:2, 600243:3, 600495:4, 80002529:5}
b={600072:1, 80000880:2, 600243:3, 80002529:5, 600495:4}
print(a)
print(b)
print(a==b)
print(str(a)==str(b))
print(a.keys()==b.keys())

#output in python2.7.3:
{600072: 1, 80000880: 2, 600243: 3, 80002529: 5, 600495: 4}
{600072: 1, 80000880: 2, 600243: 3, 600495: 4, 80002529: 5}
True
False
False

#output in python3.2.3:
{600072: 1, 80000880: 2, 600243: 3, 80002529: 5, 600495: 4}
{600072: 1, 80000880: 2, 600243: 3, 600495: 4, 80002529: 5}
True
False
True

#two questions:
1)str(a) and str(b) are different, why?
2)keys method returns different result between python2.7.3 and python3.2.3
History
Date User Action Args
2012-12-06 11:29:27singersetrecipients: + singer
2012-12-06 11:29:27singersetmessageid: <1354793367.35.0.329772791063.issue16627@psf.upfronthosting.co.za>
2012-12-06 11:29:27singerlinkissue16627 messages
2012-12-06 11:29:27singercreate