mirror of
https://github.com/kennethreitz/python-guide.git
synced 2026-06-05 14:50:19 +00:00
Fix a few typos
This commit is contained in:
@@ -600,7 +600,7 @@ clearer and thus preferred.
|
||||
This mechanism is useful for separating concerns and avoiding
|
||||
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
|
||||
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
|
||||
them when they have already been computed. This is clearly not part
|
||||
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/>`_.
|
||||
|
||||
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
|
||||
`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
|
||||
idea and helps make code more consistent when working on projects with other
|
||||
|
||||
Reference in New Issue
Block a user