Re:Python's Mutable Default Problem
by code_duck on Sunday February 20, 2011 @11:17PM
(#2244239)
I like 'self'. I don't mind it at all.
The error messages related to `self` in method definitions caused me some confusion when starting out with python. For instance if you define a method with no arguments, calling it results in "TypeError: your_method() takes no arguments (1 given)".
The error messages related to `self` in method definitions caused me some confusion when starting out with python. For instance if you define a method with no arguments, calling it results in "TypeError: your_method() takes no arguments (1 given)".