File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -106,11 +106,11 @@ def foo(bar):
106106
107107## Class based decorators
108108
109- To decorate a class methos , you must define the decorator within the class. When
110- only the implicit argument ` self ` is passed to the method, without any other
109+ To decorate a class method , you must define the decorator within the class. When
110+ only the implicit argument ` self ` is passed to the method, without any explicit
111111additional arguments, you must make a separate decorator for only those methods
112- without any additional arguments. An example of this is when you want to catch
113- and print exceptions in a certain way.
112+ without any additional arguments. An example of this, shown below, is when you
113+ want to catch and print exceptions in a certain way.
114114
115115``` python
116116class DecorateMyMethod :
You can’t perform that action at this time.
0 commit comments