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

Gabriel Genellina gagsl-py at yahoo.com.ar
Thu Oct 5 14:40:36 EDT 2006


At Thursday 5/10/2006 11:41, Antoon Pardon 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.
But it's not the same for the C code, where the argument parsing must 
be done explicitely.



Gabriel Genellina
Softlab SRL 


	
	
		
__________________________________________________
Preguntá. Respondé. Descubrí.
Todo lo que querías saber, y lo que ni imaginabas,
está en Yahoo! Respuestas (Beta).
¡Probalo ya! 
http://www.yahoo.com.ar/respuestas




More information about the Python-list mailing list