stefankoegl / python-json-patch

Applying JSON Patches in Python
https://python-json-patch.readthedocs.org/
BSD 3-Clause "New" or "Revised" License
434 stars 94 forks source link

fix: use deterministic comparison ordering #161

Open JacobHenner opened 1 month ago

JacobHenner commented 1 month ago

_compare_dicts() exhibited non-deterministic ordering due to hash randomization affecting the ordering of sets used to compare dict keys. Dict key comparisons are now performed without sets, resulting in dict key ordering being preserved.

Fixes #151