[New-bugs-announce] [issue15524] Dict items() ordering varies across interpreter invocations

Dmitry Dvoinikov report at bugs.python.org
Wed Aug 1 14:05:31 CEST 2012


New submission from Dmitry Dvoinikov:

The following line prints different things each time you run it:

python3 -c "print(', '.join({ '1': '2', '3': '4' }.keys()))"

The output is either "1, 3" or "3, 1". Is such indeterministic behavior intentional ?

Using Python 3.3.0b1 (default, Aug  1 2012, 06:09:44)

----------
components: Interpreter Core
messages: 167116
nosy: ddvoinikov
priority: normal
severity: normal
status: open
title: Dict items() ordering varies across interpreter invocations
type: behavior
versions: Python 3.3

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15524>
_______________________________________


More information about the New-bugs-announce mailing list