Mark Dickinson <[email protected]> added the comment:
This has nothing to do with range. The source of indeterminacy is this line in
your code:
for amp_id in amp_programs.keys():
In Python 3.5, the ordering of `amp_programs.keys()` could differ from run to
run. (With Python 3.6 and later, that won't happen.)
If you want a deterministic result in Python 3.5, you could for example replace
that line with:
for amp_id in sorted(amp_programs):
Closing here; this isn't a Python bug.
----------
nosy: +mark.dickinson
resolution: -> not a bug
stage: -> resolved
status: open -> closed
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue39000>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com