[BangPypers] Multiple return values from a function : Where to draw the line ?
Mandar Vaze / मंदार वझे
mandarvaze at gmail.com
Sat May 24 06:27:41 CEST 2014
On Fri, May 23, 2014 at 5:26 PM, Navin Kabra <navin at smriti.com> wrote:
> "Mandar Vaze / मंदार वझे" <mandarvaze at gmail.com> writes:
>
> > Code 1:
> > ...
> > return dict(fname=fname, lname=lname, saluation=salutation,
> > gender=gender, addr1=addr1, addr2=addr2,
> > city=city, state=state, country=country)
>
> First of all, both functions are returning a single value, a single
> dict.
Yes, I realized that "after the fact" :(
> So the entire discussion of "how many values should I return from a
> function" is irrelevant.
>
The code samples were incorrect - but otherwise the discussion is relevant
I think. (Although I couldn't get direct answer)
Pointer to "dis" module is helpful.
-Mandar
More information about the BangPypers
mailing list