Re: [BangPypers] return value

2011-06-13 Thread Nitin Kumar
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

Re: [BangPypers] return value

2011-06-13 Thread Venkatraman S
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

Re: [BangPypers] return value

2011-06-13 Thread Nitin Kumar
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. > > >

Re: [BangPypers] return value

2011-06-13 Thread Venkatraman S
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

[BangPypers] return value

2011-06-13 Thread Nitin Kumar
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.