Le 01-06-2006, [EMAIL PROTECTED] <[EMAIL PROTECTED]> nous disait:
> 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 ha
[EMAIL PROTECTED] wrote:
> 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 ??
because you or someone
> 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 ??
>>> def a(arg1, arg2=0):
... print