Tuples and immutability
Ben Finney
ben+python at benfinney.id.au
Fri Mar 7 06:04:28 EST 2014
Duncan Booth <duncan.booth at invalid.invalid> writes:
> Is there any reason why tuples need to throw an exception on assigning
> to the element if the old value and new value are the same object?
Special cases aren't special enough to break the rules.
--
\ “I do not believe in forgiveness as it is preached by the |
`\ church. We do not need the forgiveness of God, but of each |
_o__) other and of ourselves.” —Robert G. Ingersoll |
Ben Finney
More information about the Python-list
mailing list