Passing Named Paramater To A C Func?

John Abel john.abel at pa.press.net
Tue Apr 29 06:45:57 EDT 2003


Hi,

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.

Thanks

John






More information about the Python-list mailing list