This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author lamby
Recipients lamby
Date 2017-02-03.09:37:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1486114665.09.0.174630363127.issue29431@psf.upfronthosting.co.za>
In-reply-to
Content
Due to implementation changes, since CPython 3.6 dict keys are returned
in insertion order. However, in order to test for reproducible builds [0],
it would be convenient to be able to reverse this ordering; we would then
run a build of an arbitrary package both with and without this flag and
compare the resulting binary.

(We already run such a testing framework, so specifying this environment
variable would be trivial. Note that this "reverse" would actually find
more issues than simply relying on the pre-3.6 non-deterministic
behaviour.)

This patch changes the behaviour of:

  * for x in d:
  * d.popitem()
  * d.items()
  * _PyDict_Next

 [0] https://reproducible-builds.org/
History
Date User Action Args
2017-02-03 09:37:45lambysetrecipients: + lamby
2017-02-03 09:37:45lambysetmessageid: <1486114665.09.0.174630363127.issue29431@psf.upfronthosting.co.za>
2017-02-03 09:37:44lambylinkissue29431 messages
2017-02-03 09:37:44lambycreate