Re:Python's Mutable Default Problem
by code_duck on Sunday February 20, 2011 @11:11PM
(#2244230)
You can rename self to whatever you want in Python by changing it in the function definition.
[ Parent
| on HN ]
Re:Python's Mutable Default Problem
by xiongchiamiov on Monday February 21, 2011 @04:37AM
(#2244863)
Right, but his point was that the self variable is declared in front of the method name, similarly to how it looks when you call said method.