|
1 | 1 | { |
2 | 2 | "metadata": { |
3 | 3 | "name": "", |
4 | | - "signature": "sha256:5e808c95d2003c791e04a26d378bc816b2010a59171244a18d73487060d9e029" |
| 4 | + "signature": "sha256:a53f896c4edbd7706754674c5f4b46daf5a6b5c00670d0627ddac871550f3717" |
5 | 5 | }, |
6 | 6 | "nbformat": 3, |
7 | 7 | "nbformat_minor": 0, |
|
59 | 59 | "source": [ |
60 | 60 | "# Sections\n", |
61 | 61 | "- [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", |
63 | 63 | "- [`True` and `False` in the datetime module](#datetime_module)\n", |
64 | 64 | "- [Python reuses objects for small integers - always use \"==\" for equality, \"is\" for identity](#python_small_int)\n", |
65 | 65 | "- [Shallow vs. deep copies if list contains other structures and objects](#shallow_vs_deep)\n", |
|
215 | 215 | "cell_type": "markdown", |
216 | 216 | "metadata": {}, |
217 | 217 | "source": [ |
218 | | - "## Using `+=` on lists creates new objects" |
| 218 | + "## Assignment operators and lists - simple-add vs. add-AND operators" |
219 | 219 | ] |
220 | 220 | }, |
221 | 221 | { |
|
814 | 814 | "source": [ |
815 | 815 | "<br>\n", |
816 | 816 | "<br>\n", |
817 | | - "<a name='consuming_generators'></a>\n" |
| 817 | + "<a name='consuming_generator'></a>\n" |
818 | 818 | ] |
819 | 819 | }, |
820 | 820 | { |
|
1649 | 1649 | " print('Hello public world!')\n", |
1650 | 1650 | " def __private_method(self):\n", |
1651 | 1651 | " print('Hello private world!')\n", |
1652 | | - " def call_private_method_in_class(self):\n", |
| 1652 | + " def __call_private_method_in_class(self):\n", |
1653 | 1653 | " self.__private_method()\n", |
1654 | 1654 | " \n", |
1655 | 1655 | "my_instance = my_class()\n", |
1656 | 1656 | "\n", |
1657 | 1657 | "my_instance.public_method()\n", |
1658 | 1658 | "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()" |
1660 | 1660 | ], |
1661 | 1661 | "language": "python", |
1662 | 1662 | "metadata": {}, |
|
1671 | 1671 | ] |
1672 | 1672 | } |
1673 | 1673 | ], |
1674 | | - "prompt_number": 28 |
| 1674 | + "prompt_number": 1 |
1675 | 1675 | }, |
1676 | 1676 | { |
1677 | 1677 | "cell_type": "markdown", |
|
0 commit comments