[BangPypers] return value
nitin.nitp at gmail.com
Mon Jun 13 16:19:53 CEST 2011
In my framework, some of function returns a Tuple.
def fn ():
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.
Is there any way we can make the function so smart that according to the way
function is being called, it should return single value or a tuple.
More information about the BangPypers