diff --git a/docs/intro/learning.rst b/docs/intro/learning.rst index b0c957398..eabdc98b4 100644 --- a/docs/intro/learning.rst +++ b/docs/intro/learning.rst @@ -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 `_ + `The Python Tutorial `_ Real Python ~~~~~~~~~~~ @@ -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 `_ + `The Python Language Reference `_ Python Essential Reference ~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/docs/scenarios/cli.rst b/docs/scenarios/cli.rst index 59f311e83..dab9f70b7 100644 --- a/docs/scenarios/cli.rst +++ b/docs/scenarios/cli.rst @@ -47,7 +47,7 @@ Plac **** `Plac `_ is a simple wrapper -over the Python standard library `argparse `_, +over the Python standard library `argparse `_, 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, diff --git a/docs/writing/structure.rst b/docs/writing/structure.rst index 5d9645acd..4ab2a9439 100644 --- a/docs/writing/structure.rst +++ b/docs/writing/structure.rst @@ -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 `_ of how the +`example `_ 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 diff --git a/docs/writing/style.rst b/docs/writing/style.rst index d8c096a05..304bf8fe3 100644 --- a/docs/writing/style.rst +++ b/docs/writing/style.rst @@ -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 -`_ for a +`_ for a list of what is considered false. **Bad**: @@ -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: @@ -635,11 +635,11 @@ Short Ways to Manipulate Lists ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ `List comprehensions -`_ +`_ provides a powerful, concise way to work with lists. `Generator expressions -`_ +`_ follows almost the same syntax as list comprehensions but return a generator instead of a list.