You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: week5/w5.ipynb
+10-1Lines changed: 10 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -557,7 +557,9 @@
557
557
"cell_type": "markdown",
558
558
"metadata": {},
559
559
"source": [
560
-
"However, we can go one step further and make our code a bit nicer with *syntatic sugar*"
560
+
"However, we can go one step further and make our code a bit nicer with *syntatic sugar*.\n",
561
+
"`@requires_authorisation` is a decorator! Decorators provide us with a way of modifying the\n",
562
+
"behavior of a function without modifying its body."
561
563
]
562
564
},
563
565
{
@@ -591,6 +593,13 @@
591
593
"deposit_monies(\"donald knuth\")"
592
594
]
593
595
},
596
+
{
597
+
"cell_type": "markdown",
598
+
"metadata": {},
599
+
"source": [
600
+
"For now, you don't need to worry about the implementation details. The important part is understanding what decorators do: modify the behavior of an existing function."
0 commit comments