Tuple slices

George Sakkis gsakkis at rutgers.edu
Mon Jan 24 11:47:24 EST 2005


Why does slicing a tuple returns a new tuple instead of a view of the existing one, given that
tuples are immutable ? I ended up writing a custom ImmutableSequence class that does this, but I
wonder why it is not implemented for tuples.

George





More information about the Python-list mailing list