What value should be passed to make a function use the default argument value?
fredrik at pythonware.com
Thu Oct 5 20:56:18 CEST 2006
Gabriel Genellina wrote:
>> > the general rule is that if the documentation doesn't explicitly say
>> > that something is a keyword argument, it isn't, and shouldn't be
>> > treated as such.
>> The first module I looked in to check this, it wasn't true. In the Queue
>> Module is isn't explicitly written that maxsize is a keyword argument yet
>> Queue.Queue(maxsize=9) works just fine.
> This is true for most python code, unless the arguments are get as *args.
you guys need to look up the words "should" and "not" in a dictionary.
More information about the Python-list