Message 152149 - Python tracker (original) (raw)

On Sat, 2012-01-28 at 03:03 +0000, Benjamin Peterson wrote:

Benjamin Peterson <benjamin@python.org> added the comment:

For the record, Barry and I agreed on what we'll be doing for stable releases [1]. David says he should have a patch soon.

[1] http://mail.python.org/pipermail/python-dev/2012-January/115892.html

I'm attaching what I've got so far (need sleep).

Attached patch is for 3.1 and adds opt-in hash randomization.

It's based on haypo's work: random-8.patch (thanks haypo!), with additional changes as seen in my backport of that to 2.7: http://bugs.python.org/issue13703#msg151847

I'm seeing one failing test:

FAIL: test_clear_dict_in_ref_cycle (main.ModuleTests)

Traceback (most recent call last): File "/home/david/coding/python-hg/cpython-3.1-hash-randomization/Lib/test/test_module.py", line 79, in test_clear_dict_in_ref_cycle self.assertEqual(destroyed, [1]) AssertionError: Lists differ: [] != [1]