orf <[email protected]> added the comment:

Weird, I tried the attached code on another (older) Windows machine and it 
executed fine. I changed all the keys to be unicode and it failed with a string 
lookup (attached). Could you try running this code instead?

________________________________________
PyPy bug tracker <[email protected]>
<https://bugs.pypy.org/issue1608>
________________________________________
import random, string

big_dict = {u"".join([random.choice(string.printable)
                     for i in xrange(40)]): random.randint(0,10000) for _ in 
xrange(10000000)}
valid_key = big_dict.keys()[0]
print "Valid key: %s" % big_dict[valid_key]
print "Invalid key: %s" % big_dict["test"]
_______________________________________________
pypy-issue mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-issue

Reply via email to