Testing for presence of arguments

Madhusudan Singh spammers-go-here at spam.invalid
Wed Aug 17 11:13:03 EDT 2005


Hi

I know how to set optional arguments in the function definition. Is there an
intrinsic function that determines if a certain argument was actually
passed ? Like the fortran 95 present() logical intrinsic ?

My required functionality depends on whether a certain argument is specified
at all. (Setting default values is *not* good enough.).

Thanks.



More information about the Python-list mailing list