Possible Duplicate:
Why are python strings and tuples are made immutable?
What lower-level design makes tuple not mutable in Python? Why this feature is useful?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
A few reasons:
__hash__methods based on their contents, the values returned could change as the contents change, which violates the contract for hash values.tuplemethod which will copy only when necessary.