Suggestions for good programming practices?

Peter Hansen peter at engcorp.com
Mon Jun 24 21:03:04 EDT 2002


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



More information about the Python-list mailing list