I\'ve noticed some strange behavior on Python 3\'s implementation of json.dumps
, namely the key order changes every time I dump the same object from execution to ex
The story behind this behavior is this vulnerability. To prevent it, same hash codes on one PC should be different on another one.
Python 2 has probably disabled this behavior (hash randomizing) by default because of compatibility, as this would for example break doctests. Python 3 probably (an assumption) has not needed the compability.