Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions Doc/tutorial/controlflow.rst
Original file line number Diff line number Diff line change
Expand Up @@ -451,9 +451,13 @@
print("Grass is green")
case Color.BLUE:
print("I'm feeling the blues :(")

For a more detailed explanation and additional examples, you can look into
:pep:`636` which is written in a tutorial format.
Resources

Check warning on line 454 in Doc/tutorial/controlflow.rst

View workflow job for this annotation

GitHub Actions / Docs / Docs

Bullet list ends without a blank line; unexpected unindent. [docutils]
---------
For more detailed explanation and additional examples, you can look into the
following resources, which are written in tutorial format:
- :pep:`636`
- `W3Schools <https://www.w3schools.com/python/python_match.asp>`_
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think it's a good idea to link to other documentation pages that we don't control. I'm particularly against linking W3Schools, considering their example of creating a tuple looks like this:

x = tuple(("apple", "banana", "cherry"))

- `Real Python <https://realpython.com/structural-pattern-matching/>`_

.. _tut-functions:

Expand Down
Loading