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

Fredrik Lundh fredrik at pythonware.com
Thu Oct 5 12:19:17 EDT 2006


Antoon Pardon wrote:

> 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.

it's not a matter whether it works fine in any given version of Python, 
it's a matter of whether it's *guaranteed* to work.

</F>




More information about the Python-list mailing list