Couldn't solve your puzzle :(
On Mon, Jun 13, 2011 at 9:39 PM, Venkatraman S wrote:
> On Mon, Jun 13, 2011 at 9:11 PM, Nitin Kumar wrote:
>
> > It takes, *arg as well as**args.
> > I just gave an example to show the return from function behavior.
> >
>
> Then it should be easy right...
> think
On Mon, Jun 13, 2011 at 9:11 PM, Nitin Kumar wrote:
> It takes, *arg as well as**args.
> I just gave an example to show the return from function behavior.
>
Then it should be easy right...
think in terms of...what you will do when you are given an ice-cream...
case 1 - your gf is next to you
cas
Yes,
It takes, *arg as well as**args.
I just gave an example to show the return from function behavior.
Thanks
Nitin K
On Mon, Jun 13, 2011 at 8:02 PM, Venkatraman S wrote:
> On Mon, Jun 13, 2011 at 7:49 PM, Nitin Kumar wrote:
>
> >
> > In my framework, some of function returns a Tuple.
> >
>
On Mon, Jun 13, 2011 at 7:49 PM, Nitin Kumar wrote:
>
> In my framework, some of function returns a Tuple.
>
> def fn ():
>return a,b
>
> x,y = fn()
>
> Going forward, I got such a situation where we need to return single value
> from function. (Don't ask me to retain old behavior :) )
>
> No
HI All,
In my framework, some of function returns a Tuple.
def fn ():
return a,b
x,y = fn()
Going forward, I got such a situation where we need to return single value
from function. (Don't ask me to retain old behavior :) )
Now the problem is we need to maintain backward compatibility too.