Suggestions for good programming practices?

David LeBlanc whisper at oz.net
Mon Jun 24 21:55:22 EDT 2002


They may be returned in a tuple, but they're PUT in discrete variables and
not kept in a tuple that I have to programmatically unpack.

Language lawyer should be shot, _then_ heard.

David LeBlanc
Seattle, WA USA

> -----Original Message-----
> From: python-list-admin at python.org
> [mailto:python-list-admin at python.org]On Behalf Of Peter Hansen
> Sent: Monday, June 24, 2002 18:03
> To: python-list at python.org
> Subject: Re: Suggestions for good programming practices?
>
>
> David LeBlanc wrote:
> >
> > The one that always gets me is "lat,lon,timezone =
> getLocation("seattle")".
> > I.E. the ability to return multiple distinct values as opposed
> to returning
> > multiple values in the form of a struct as in C or C++.
>
> You _are_ returning them "in a struct".  It's spelled "tuple"
> but other than that what's the difference?
>
> -Peter
> --
> http://mail.python.org/mailman/listinfo/python-list






More information about the Python-list mailing list