Good style for multi-valued returns

Cameron Laird claird at starbase.neosoft.com
Thu Apr 20 15:37:37 EDT 2000


Examples of multi-valued returns:  (head, tail); (quotient,
remainder); (left, right); (prologue, body, epilogue);
(data, code); (CAR, CDR); (count, size); (handle, status);
(decomposition; remainder); ...

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?
-- 

Cameron Laird <claird at NeoSoft.com>
Business:  http://www.Phaseit.net
Personal:  http://starbase.neosoft.com/~claird/home.html



More information about the Python-list mailing list