From: William Djaja Tjokroaminata Date: 2002-09-29T00:28:03+09:00 Subject: Re: Where Is Method Call Precedence? Hi, If I remember correctly, tuples can be used as hash keys while an ordinary array (or 'list' as Python calls it) cannot. Python has the concept of mutable and immutable objects. Only immutable objects can be used as hash (or 'dictionary' as Python calls it) keys. I don't know why Python needs the concept of mutable and immutable objects while Ruby does not. I guess this is related to the fundamental object model. I think I understand the Ruby object model, but I never got a chance to peek under the hood of Python. Regards, Bill ============================================================================== Gavin Sinclair wrote: > Since Ruby is close to Python is *some* ways, and Python has tuples, I cast the > question: "What are tuples used for in Python?". If someone answers that, then > I would get an idea of why I might like them in Ruby. > Cheers, > Gavin