From: Ilmari Heikkinen Date: 2005-01-14T22:41:45+09:00 Subject: Re: Duck Typing and automated Conversions Hi, On 14.1.2005, at 15:31, David A. Black wrote: >> def silly_example(ostr, ocount, str=ostr.to_str, count=ocount.to_int) > > Yes except that then someone could call it like this: > > silly_example("hi", 1, "hello", 2) > > and clobber the conversions you were doing. Could argue that it's wanted behavior.. "if you want to hack this without hacking to_str and to_int, replace the defaulted args" Since this IMHO is pretty much an auto-documented wish for the caller to supply objects that act like ducks.