mental <m3n...@yahoo.com> added the comment:

Interestingly enough the race only seems to occur when the mutator resets the 
index with an identical value (try replacing the setitem value with: `not X[0]` 
or populate from `[b'hi']` and with the mutator code use `X[0][::1]`.

I can't help but think to implement an internal cache that would store the hash 
of the last modified value, then when another set occurs compare the two hashes 
and have the operation be a no-op if they match (thoughts?).

In the meantime I'll continue investigating to see what exactly causes this 
quirk :)

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue37652>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to