Skip to content Skip to sidebar Skip to footer
Showing posts with the label Immutability

Wrapping Big List In Python 2.7 To Make It Immutable

In case I have a really big list (>100k elements) that can be retrieved from some object through… Read more Wrapping Big List In Python 2.7 To Make It Immutable

Hashing An Immutable Dictionary In Python

Short version: What's the best hashing algorithm for a multiset implemented as a dictionary of… Read more Hashing An Immutable Dictionary In Python

Why Do Tuples In Python Work With Reversed But Do Not Have __reversed__?

In discussion of this answer we realized that tuples do not have a __reversed__ method. My guess wa… Read more Why Do Tuples In Python Work With Reversed But Do Not Have __reversed__?

Are Tuples In Python Immutable?

It says A tuple can not be changed in any way once it is created. But when I do the following: t… Read more Are Tuples In Python Immutable?