Good style for multi-valued returns

Michael Hudson mwh21 at cam.ac.uk
Thu Apr 20 16:11:50 EDT 2000


claird at starbase.neosoft.com (Cameron Laird) writes:

> Let me guess:  folks generally pass tuples for small and
> determinate-in-number multi-values, and dictionaries other-
> wise, 'cept some do it all with tuples.  Accurate?

I've always used tuples; I wouldn't have thought of something that
returns a dictionary as return multiple values.

Any reason for asking?

Cheers,
M.

-- 
59. In English every word can be verbed. Would that it were so in 
    our programming languages.
     -- Alan Perlis, http://www.cs.yale.edu/~perlis-alan/quotes.html



More information about the Python-list mailing list