lists v. tuples

MartinRinehart at gmail.com MartinRinehart at gmail.com
Mon Mar 17 07:49:07 EDT 2008


What are the considerations in choosing between:

   return [a, b, c]

and

    return (a, b, c) # or return a, b, c

Why is the immutable form the default?



More information about the Python-list mailing list