Skip to content
Open
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions docs/intro/learning.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ This is the official tutorial. It covers all the basics, and offers a tour of
the language and the standard library. Recommended for those who need a
quick-start guide to the language.

`The Python Tutorial <http://docs.python.org/tutorial/index.html>`_
`The Python Tutorial <https://docs.python.org/3/tutorial/index.html>`_

Real Python
~~~~~~~~~~~
Expand Down Expand Up @@ -368,7 +368,7 @@ The Python Language Reference
This is Python's reference manual. It covers the syntax and the core semantics
of the language.

`The Python Language Reference <http://docs.python.org/reference/index.html>`_
`The Python Language Reference <https://docs.python.org/3/reference/index.html>`_

Python Essential Reference
~~~~~~~~~~~~~~~~~~~~~~~~~~
Expand Down
2 changes: 1 addition & 1 deletion docs/scenarios/cli.rst
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Plac
****

`Plac <https://pypi.org/project/plac>`_ is a simple wrapper
over the Python standard library `argparse <http://docs.python.org/2/library/argparse.html>`_,
over the Python standard library `argparse <https://docs.python.org/3/library/argparse.html>`_,
which hides most of its complexity by using a declarative interface: the
argument parser is inferred rather than written down imperatively. This
module targets unsophisticated users, programmers, sysadmins,
Expand Down
2 changes: 1 addition & 1 deletion docs/writing/structure.rst
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ will interfere with the way Python looks for modules.

In the case of `my.spam.py` Python expects to find a :file:`spam.py` file in a
folder named :file:`my` which is not the case. There is an
`example <http://docs.python.org/tutorial/modules.html#packages>`_ of how the
`example <https://docs.python.org/3/tutorial/modules.html#packages>`_ of how the
dot notation should be used in the Python docs.

If you like, you could name your module :file:`my_spam.py`, but even our trusty
Expand Down
8 changes: 4 additions & 4 deletions docs/writing/style.rst
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ Check if a variable equals a constant

You don't need to explicitly compare a value to True, or None, or 0 -- you can
just add it to the if statement. See `Truth Value Testing
<http://docs.python.org/library/stdtypes.html#truth-value-testing>`_ for a
<https://docs.python.org/3/library/stdtypes.html#truth-value-testing>`_ for a
list of what is considered false.

**Bad**:
Expand All @@ -596,7 +596,7 @@ list of what is considered false.

# or check for the opposite
if not attr:
print('attr is falsey!')
print('attr is falsy!')

# or, since None is considered false, explicitly check for it
if attr is None:
Expand Down Expand Up @@ -635,11 +635,11 @@ Short Ways to Manipulate Lists
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

`List comprehensions
<http://docs.python.org/tutorial/datastructures.html#list-comprehensions>`_
<https://docs.python.org/3/tutorial/datastructures.html#list-comprehensions>`_
provides a powerful, concise way to work with lists.

`Generator expressions
<http://docs.python.org/tutorial/classes.html#generator-expressions>`_
<https://docs.python.org/3/tutorial/classes.html#generator-expressions>`_
follows almost the same syntax as list comprehensions but return a generator
instead of a list.

Expand Down