Skip to content

Commit 19e5613

Browse files
committed
mutable objects as default arguments
1 parent ed255a9 commit 19e5613

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

not_so_obvious_python_stuff.ipynb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"metadata": {
33
"name": "",
4-
"signature": "sha256:6bc56360203df31596f6332e4b5c73effb2572d18b60bdf6a792042e2fde8c12"
4+
"signature": "sha256:158ad35cd56abe8905983dc63421b3b7b54d28a947df54f67a3b7f0a53e31481"
55
},
66
"nbformat": 3,
77
"nbformat_minor": 0,
@@ -42,7 +42,8 @@
4242
"- [`True` and `False` in the datetime module](#datetime_module)\n",
4343
"- [Python reuses objects for small integers](#python_small_int)\n",
4444
"- [Shallow vs. deep copies if list contains other structures and objects](#shallow_vs_deep)\n",
45-
"- [Picking True values from and and or expressions](#false_true_expressions)"
45+
"- [Picking True values from and and or expressions](#false_true_expressions)\n",
46+
"- [Don't use mutable objects as default arguments for functions!](#def_mutable_func)"
4647
]
4748
},
4849
{
@@ -335,7 +336,7 @@
335336
"source": [
336337
"<br>\n",
337338
"<br>\n",
338-
"<a name='def_mutable_func></a>\n",
339+
"<a name='def_mutable_func'></a>\n",
339340
"## Don't use mutable objects as default arguments for functions!"
340341
]
341342
},

0 commit comments

Comments
 (0)