Re:Notset: A Do-Not-Care value for Python
by shmeedogg on Saturday November 10, 2012 @10:17PM
(#4768664)
Agreed, I think the distinction between a bound method or a function is irrelevant here.
If we want explicit kwargs (a big 'if' since many of the suggestions in this thread are to give up on that idea), then we need some value to distinguish it from None.
The code: "def update(person, name=None, age=None):"
is equivelent to the code: "def update(self, name=None, age=None):"
although if you chose to name the 'self' variable something other than 'self', you probably deserve to have problems.