[issue16816] Bug in hash randomization
Charles-François Natali
report at bugs.python.org
Sun Dec 30 12:42:11 CET 2012
Charles-François Natali added the comment:
What exactly are you trying to demonstrate?
As explained by Benjamin, the output can differ from one invokation to another because the iteration order depends on the hash value (position in the buckets). Running your script on Python 2.7 or curent outputs "good" and "bad" randomly, which is expected when randomization is enabled.
With randomization off, the output is consistent.
----------
nosy: +neologix
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16816>
_______________________________________
More information about the Python-bugs-list
mailing list