Skip to content

Commit

Permalink
Version-mark the dict order issue
Browse files Browse the repository at this point in the history
Dictionary iteration order has been a solved problem since Python 3.6. Since this package supports as far back as 3.3, this could still be a problem, but only for people who are using older versions of Python. Clarifying the language to show this distinction.
  • Loading branch information
Rosuav authored and rossengeorgiev committed May 21, 2021
1 parent 2b23d5b commit c8c9d23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ Problems & solutions
that can be used as mapper instead of ``dict``. See the example section for details.

- By default de-serialization will return a ``dict``, which doesn't preserve nor guarantee
key order due to `hash randomization`_. If key order is important then
I suggest using ``collections.OrderedDict``, or ``vdf.VDFDict``.
key order on Python versions prior to 3.6, due to `hash randomization`_. If key order is
important on old Pythons, I suggest using ``collections.OrderedDict``, or ``vdf.VDFDict``.

Example usage
-------------
Expand Down

0 comments on commit c8c9d23

Please sign in to comment.