Passing Named Paramater To A C Func?

John Abel john.abel at
Tue Apr 29 12:45:57 CEST 2003


I'm writing a C function, which will have a Python wrapper, and I wish 
to be able to pass it an optional, named parameter.  For example:

def funcName( dirName, fileName=None ):

	if fileName is None:
		Some Other Stuff

	cCall( dirName, fileName )

Is the best to handle this in the Python wrapper, or is there a way of 
handling these via C.  None of the extending documents seem to mention 
anything about this.

I'd be grateful for any pointers.



More information about the Python-list mailing list