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.

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, methane, rhettinger
Priority: normal Keywords:

Created on 2019-04-11 10:11 by methane, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (3)
msg339952 - (view) Author: Inada Naoki (methane) * (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 (methane) * (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
2022-04-11 14:59:13adminsetgithub: 80780
2019-04-12 06:21:28methanesetstatus: open -> closed
superseder: doctest: Change example under warnings section
resolution: duplicate
stage: resolved
2019-04-12 06:20:25methanesetmessages: + msg340008
2019-04-12 05:30:20rhettingersetnosy: + rhettinger
messages: + msg340007
2019-04-11 10:18:00methanesettitle: weakref document says dict order is unstable -> doctest document says dict order is unstable
2019-04-11 10:11:10methanecreate