What value should be passed to make a function use the default argument value?

Fredrik Lundh fredrik at pythonware.com
Thu Oct 5 14:56:18 EDT 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.

</F>




More information about the Python-list mailing list