mirror of
https://github.com/kennethreitz/python-guide.git
synced 2026-06-05 14:50:19 +00:00
minor editing
This commit is contained in:
@@ -289,7 +289,7 @@ clearer and thus preferred.
|
|||||||
# Do something
|
# Do something
|
||||||
# bar() is decorated
|
# bar() is decorated
|
||||||
|
|
||||||
Using 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 memoization or caching: you want to store the results of an
|
||||||
|
|||||||
Reference in New Issue
Block a user