Skip to content

Commit 293525b

Browse files
committed
minor fixes
1 parent 95227cb commit 293525b

2 files changed

Lines changed: 12 additions & 12 deletions

File tree

.ipynb_checkpoints/not_so_obvious_python_stuff-checkpoint.ipynb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"metadata": {
33
"name": "",
4-
"signature": "sha256:5e808c95d2003c791e04a26d378bc816b2010a59171244a18d73487060d9e029"
4+
"signature": "sha256:3313c0dcca1fddb3782f61571ea24bd2c1afea3d9adfb6c1c65ba959d9ce3c7e"
55
},
66
"nbformat": 3,
77
"nbformat_minor": 0,
@@ -814,7 +814,7 @@
814814
"source": [
815815
"<br>\n",
816816
"<br>\n",
817-
"<a name='consuming_generators'></a>\n"
817+
"<a name='consuming_generator'></a>\n"
818818
]
819819
},
820820
{
@@ -1649,14 +1649,14 @@
16491649
" print('Hello public world!')\n",
16501650
" def __private_method(self):\n",
16511651
" print('Hello private world!')\n",
1652-
" def call_private_method_in_class(self):\n",
1652+
" def __call_private_method_in_class(self):\n",
16531653
" self.__private_method()\n",
16541654
" \n",
16551655
"my_instance = my_class()\n",
16561656
"\n",
16571657
"my_instance.public_method()\n",
16581658
"my_instance._my_class__private_method()\n",
1659-
"my_instance.call_private_method_in_class()"
1659+
"my_instance._my_class__call_private_method_in_class()"
16601660
],
16611661
"language": "python",
16621662
"metadata": {},
@@ -1671,7 +1671,7 @@
16711671
]
16721672
}
16731673
],
1674-
"prompt_number": 28
1674+
"prompt_number": 1
16751675
},
16761676
{
16771677
"cell_type": "markdown",

not_so_obvious_python_stuff.ipynb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"metadata": {
33
"name": "",
4-
"signature": "sha256:5e808c95d2003c791e04a26d378bc816b2010a59171244a18d73487060d9e029"
4+
"signature": "sha256:a53f896c4edbd7706754674c5f4b46daf5a6b5c00670d0627ddac871550f3717"
55
},
66
"nbformat": 3,
77
"nbformat_minor": 0,
@@ -59,7 +59,7 @@
5959
"source": [
6060
"# Sections\n",
6161
"- [The C3 class resolution algorithm for multiple class inheritance](#c3_class_res)\n",
62-
"- [Using `+=` on lists creates new objects](#pm_in_lists)\n",
62+
"- [Assignment operators and lists - simple-add vs. add-AND operators](#pm_in_lists)\n",
6363
"- [`True` and `False` in the datetime module](#datetime_module)\n",
6464
"- [Python reuses objects for small integers - always use \"==\" for equality, \"is\" for identity](#python_small_int)\n",
6565
"- [Shallow vs. deep copies if list contains other structures and objects](#shallow_vs_deep)\n",
@@ -215,7 +215,7 @@
215215
"cell_type": "markdown",
216216
"metadata": {},
217217
"source": [
218-
"## Using `+=` on lists creates new objects"
218+
"## Assignment operators and lists - simple-add vs. add-AND operators"
219219
]
220220
},
221221
{
@@ -814,7 +814,7 @@
814814
"source": [
815815
"<br>\n",
816816
"<br>\n",
817-
"<a name='consuming_generators'></a>\n"
817+
"<a name='consuming_generator'></a>\n"
818818
]
819819
},
820820
{
@@ -1649,14 +1649,14 @@
16491649
" print('Hello public world!')\n",
16501650
" def __private_method(self):\n",
16511651
" print('Hello private world!')\n",
1652-
" def call_private_method_in_class(self):\n",
1652+
" def __call_private_method_in_class(self):\n",
16531653
" self.__private_method()\n",
16541654
" \n",
16551655
"my_instance = my_class()\n",
16561656
"\n",
16571657
"my_instance.public_method()\n",
16581658
"my_instance._my_class__private_method()\n",
1659-
"my_instance.call_private_method_in_class()"
1659+
"my_instance._my_class__call_private_method_in_class()"
16601660
],
16611661
"language": "python",
16621662
"metadata": {},
@@ -1671,7 +1671,7 @@
16711671
]
16721672
}
16731673
],
1674-
"prompt_number": 28
1674+
"prompt_number": 1
16751675
},
16761676
{
16771677
"cell_type": "markdown",

0 commit comments

Comments
 (0)