Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6d87cb4

Browse filesBrowse files
[3.12] Docs: replace Harry Potter reference with Monty Python (GH-118130) (#118135)
Docs: replace Harry Potter reference with Monty Python (GH-118130) (cherry picked from commit 1446024) Co-authored-by: Clément Robert <cr52@protonmail.com>
1 parent e3671ea commit 6d87cb4
Copy full SHA for 6d87cb4

File tree

Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed

‎Doc/library/doctest.rst

Copy file name to clipboardExpand all lines: Doc/library/doctest.rst
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -800,18 +800,18 @@ guarantee about output. For example, when printing a set, Python doesn't
800800
guarantee that the element is printed in any particular order, so a test like ::
801801

802802
>>> foo()
803-
{"Hermione", "Harry"}
803+
{"spam", "eggs"}
804804

805805
is vulnerable! One workaround is to do ::
806806

807-
>>> foo() == {"Hermione", "Harry"}
807+
>>> foo() == {"spam", "eggs"}
808808
True
809809

810810
instead. Another is to do ::
811811

812812
>>> d = sorted(foo())
813813
>>> d
814-
['Harry', 'Hermione']
814+
['eggs', 'spam']
815815

816816
There are others, but you get the idea.
817817

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.