mirror of
https://github.com/kennethreitz/python-guide.git
synced 2026-06-05 23:00:18 +00:00
Fix a few typos
This commit is contained in:
@@ -29,7 +29,7 @@ Records
|
|||||||
|
|
||||||
`Records <https://github.com/kennethreitz/records>`_ is minimalist SQL library,
|
`Records <https://github.com/kennethreitz/records>`_ is minimalist SQL library,
|
||||||
designed for sending raw SQL queries to various databases. Data can be used
|
designed for sending raw SQL queries to various databases. Data can be used
|
||||||
programatically, or exported to a number of useful data formats.
|
programmatically, or exported to a number of useful data formats.
|
||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
|
|
||||||
|
|||||||
@@ -600,7 +600,7 @@ clearer and thus preferred.
|
|||||||
This mechanism is useful for separating concerns and avoiding
|
This mechanism is useful for separating concerns and avoiding
|
||||||
external un-related logic 'polluting' the core logic of the function
|
external un-related logic 'polluting' the core logic of the function
|
||||||
or method. A good example of a piece of functionality that is better handled
|
or method. A good example of a piece of functionality that is better handled
|
||||||
with decoration is memoization or caching: you want to store the results of an
|
with decoration is memorization or caching: you want to store the results of an
|
||||||
expensive function in a table and use them directly instead of recomputing
|
expensive function in a table and use them directly instead of recomputing
|
||||||
them when they have already been computed. This is clearly not part
|
them when they have already been computed. This is clearly not part
|
||||||
of the function logic.
|
of the function logic.
|
||||||
|
|||||||
@@ -455,9 +455,9 @@ PEP 8
|
|||||||
easy-to-read version of PEP 8 is also available at `pep8.org <http://pep8.org/>`_.
|
easy-to-read version of PEP 8 is also available at `pep8.org <http://pep8.org/>`_.
|
||||||
|
|
||||||
This is highly recommended reading. The entire Python community does their
|
This is highly recommended reading. The entire Python community does their
|
||||||
best to adhere to the guidelines laidout within this document. Some project
|
best to adhere to the guidelines laid out within this document. Some project
|
||||||
may sway from it from time to time, while others may
|
may sway from it from time to time, while others may
|
||||||
`ammend its recommendations <http://docs.python-requests.org/en/master/dev/contributing/#kenneth-reitz-s-code-style>`_.
|
`amend its recommendations <http://docs.python-requests.org/en/master/dev/contributing/#kenneth-reitz-s-code-style>`_.
|
||||||
|
|
||||||
That being said, conforming your Python code to PEP 8 is generally a good
|
That being said, conforming your Python code to PEP 8 is generally a good
|
||||||
idea and helps make code more consistent when working on projects with other
|
idea and helps make code more consistent when working on projects with other
|
||||||
|
|||||||
Reference in New Issue
Block a user