Python vs. Ruby

Mel Wilson mwilson at the-wire.com
Wed Jan 1 21:15:33 EST 2003


In article <3759308d.0301011401.4b32deba at posting.google.com>,
rpgnmets at aol.com (Rob Renaud) wrote:
>So then the question becomes, why don't append(), sort(), reverse()
>return a new list and not modify the original?  Are mutable objects
>themselves a wart on the langauge?

   A mutable object is a sharable object.  With a mutable
list you can change one element, or more elements, without
lousing up everybody else's binding to the list.

        Regards.        Mel.




More information about the Python-list mailing list