classification
Title: doctest document says dict order is unstable
Type: Stage: resolved
Components: Documentation Versions: Python 3.8, Python 3.7
process
Status: closed Resolution: duplicate
Dependencies: Superseder: doctest: Change example under warnings section
View: 34839
Assigned To: docs@python Nosy List: docs@python, inada.naoki, rhettinger
Priority: normal Keywords:

Created on 2019-04-11 10:11 by inada.naoki, last changed 2019-04-12 06:21 by inada.naoki. This issue is now closed.

Messages (3)
msg339952 - (view) Author: Inada Naoki (inada.naoki) * (Python committer) Date: 2019-04-11 10:11
https://docs.python.org/3/library/doctest.html#warnings

"For example, when printing a dict, Python doesn’t guarantee that the key-value pairs will be printed in any particular order,"

This example should be rewritten with set.
msg340007 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2019-04-12 05:30
Go ahead and change it to:   "For example, when printing a set, Python doesn’t guarantee that the else will be printed in any particular order,"
msg340008 - (view) Author: Inada Naoki (inada.naoki) * (Python committer) Date: 2019-04-12 06:20
Oh, #34839 had fixed this already.
It was not backported to 3.7 yet.
History
Date User Action Args
2019-04-12 06:21:28inada.naokisetstatus: open -> closed
superseder: doctest: Change example under warnings section
resolution: duplicate
stage: resolved
2019-04-12 06:20:25inada.naokisetmessages: + msg340008
2019-04-12 05:30:20rhettingersetnosy: + rhettinger
messages: + msg340007
2019-04-11 10:18:00inada.naokisettitle: weakref document says dict order is unstable -> doctest document says dict order is unstable
2019-04-11 10:11:10inada.naokicreate