Default paramater values with python
Default argument values for functions are a nice shortcut in python. They save you from writing many wrapper functions and make the code more readable and also easier to use. They can be used wrong though: >>> def foo(a=[]): … a.append(‘bar’) … return a … >>> foo() ['bar'] >>> foo() ['bar', 'bar'] Like described in [...]