Issue 36599: doctest document says dict order is unstable
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) * ![]() |
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) * ![]() |
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) * ![]() |
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:13 | admin | set | github: 80780 |
| 2019-04-12 06:21:28 | methane | set | status: open -> closed superseder: doctest: Change example under warnings section resolution: duplicate stage: resolved |
| 2019-04-12 06:20:25 | methane | set | messages: + msg340008 |
| 2019-04-12 05:30:20 | rhettinger | set | nosy:
+ rhettinger messages: + msg340007 |
| 2019-04-11 10:18:00 | methane | set | title: weakref document says dict order is unstable -> doctest document says dict order is unstable |
| 2019-04-11 10:11:10 | methane | create | |
