Re: default argument values qns

2006-06-01 Thread Alexandre Fayolle
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

Re: default argument values qns

2006-06-01 Thread Fredrik Lundh
[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

Re: default argument values qns

2006-06-01 Thread Tim Chase
> 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