default argument values qns

micklee74 at hotmail.com micklee74 at hotmail.com
Thu Jun 1 09:44:42 EDT 2006


hi
i have declared a function like this:

def aFunction ( arg1 , arg2 = 0):
         ....
         print type(arg2)

when i try to print the type of arg2, it gives me 'str' type..why is it
not integer type, since i have
declared it as 0 ??
thanks




More information about the Python-list mailing list