Skip to content
Snippets Groups Projects
Unverified Commit 9a07e364 authored by rhatto's avatar rhatto
Browse files

Research: Python: handling mutables as arguments and as default arguments

parent 6007bb17
No related branches found
No related tags found
No related merge requests found
......@@ -97,6 +97,10 @@ Python encourages polymorphism:
So remember that when [copying](https://stackoverflow.com/questions/2612802/how-to-clone-or-copy-a-list#2612815)
or referencing a list.
Also, [take care with handling mutables as arguments and as default arguments](http://www.thedigitalcatonline.com/blog/2015/02/11/default-arguments-in-python/),
also explained [here](https://docs.python.org/3/tutorial/controlflow.html#default-argument-values) and [here](https://docs.python-guide.org/writing/gotchas/)
(common gotchas).
### Threads
From [GlobalInterpreterLock](https://wiki.python.org/moin/GlobalInterpreterLock):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment