File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -71,9 +71,8 @@ def sum_to_2(stop):
71
71
print (sum_to_2 (20_000_000 ))
72
72
73
73
74
- # Some simpler examples that don't make sense but is allowed.
75
74
# -------------------------------------------------------------------------------------------
76
- # use regular factory function ( this is normal )
75
+ # recap on regular factory function
77
76
def make_greet_1 ():
78
77
79
78
def greet (name ):
@@ -85,8 +84,9 @@ def greet(name):
85
84
test_1 = make_greet_1 ()
86
85
test_1 ('jeremy' )
87
86
87
+ # some simpler examples that don't make sense but is allowed
88
88
# -------------------------------------------------------------------------------------------
89
- # use decorator which inputs the current function, despite not using the inputed function ( not normal )
89
+ # use decorator which inputs the current function, despite not using the inputed function
90
90
def make_greet_2 (function ):
91
91
92
92
def greet (name ):
You can’t perform that action at this time.
0 commit comments