Skip to content

Typo update for a jupyter notebook #19

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions source-code/api-design/positional_vs_keyword_arguments.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@
"id": "9ebb6221-2685-442d-8f7b-c362f755672d",
"metadata": {},
"source": [
"Indeed, why would you bother? Essentially, there are two reaoons:\n",
"Indeed, why would you bother? Essentially, there are two reasons:\n",
"1. overhead of function calls, and\n",
"1. maintenance."
]
Expand All @@ -372,7 +372,7 @@
"id": "f08a6028-76e5-486d-a492-191f32815021",
"metadata": {},
"source": [
"The overhead of calling a function with keyword arguments is higher than withoug, as illustrated below."
"The overhead of calling a function with keyword arguments is higher than without, as illustrated below."
]
},
{
Expand Down Expand Up @@ -460,9 +460,9 @@
"id": "56567790-2973-49bb-ab43-ce2e01d6464c",
"metadata": {},
"source": [
"Although keyword arguments are convenient and can make your code more robust since using them reduces the probability of mixing up arguments since you don't have to remember the order, this approach amkes maintaining the functions themselves a bit harder.\n",
"Although keyword arguments are convenient and can make your code more robust since using them reduces the probability of mixing up arguments since you don't have to remember the order, this approach makes maintaining the functions themselves a bit harder.\n",
"\n",
"If the caller of the function uses keyword arguments and you change the name of a function argument, the function call will result in a runtime error. The caller will have to adapt her code according to the changes you made.\n",
"If the caller of the function uses keyword arguments and you change the name of a function argument, the function call will result in a runtime error. The caller will have to adapt its code according to the changes you made.\n",
"\n",
"Calling a function with positional arguments where possible avoids this issue.\n",
"\n",
Expand Down