Good style for multi-valued returns

Cameron Laird claird at
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>

More information about the Python-list mailing list