mirror of
https://github.com/rasbt/python_reference.git
synced 2024-11-24 04:21:15 +00:00
mutable objects as default arguments
This commit is contained in:
parent
ed255a9ad7
commit
19e5613f57
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"metadata": {
|
||||
"name": "",
|
||||
"signature": "sha256:6bc56360203df31596f6332e4b5c73effb2572d18b60bdf6a792042e2fde8c12"
|
||||
"signature": "sha256:158ad35cd56abe8905983dc63421b3b7b54d28a947df54f67a3b7f0a53e31481"
|
||||
},
|
||||
"nbformat": 3,
|
||||
"nbformat_minor": 0,
|
||||
|
@ -42,7 +42,8 @@
|
|||
"- [`True` and `False` in the datetime module](#datetime_module)\n",
|
||||
"- [Python reuses objects for small integers](#python_small_int)\n",
|
||||
"- [Shallow vs. deep copies if list contains other structures and objects](#shallow_vs_deep)\n",
|
||||
"- [Picking True values from and and or expressions](#false_true_expressions)"
|
||||
"- [Picking True values from and and or expressions](#false_true_expressions)\n",
|
||||
"- [Don't use mutable objects as default arguments for functions!](#def_mutable_func)"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
@ -335,7 +336,7 @@
|
|||
"source": [
|
||||
"<br>\n",
|
||||
"<br>\n",
|
||||
"<a name='def_mutable_func></a>\n",
|
||||
"<a name='def_mutable_func'></a>\n",
|
||||
"## Don't use mutable objects as default arguments for functions!"
|
||||
]
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue
Block a user