Immutability and Python
Paul Rubin
no.email at nospam.invalid
Mon Oct 29 12:46:44 EDT 2012
andrea crotti <andrea.crotti.0 at gmail.com> writes:
> Also because how doi I make an immutable object in pure Python?
Numbers in Python are already immutable. What you're really looking for
is a programming style where you don't bind any variable more than once.
This gives rise to a programming style that Python can support to a
certain extent, but for which some other languages are designed from the
beginning.
You might look at http://learnyouahaskell.com (online book) if you want
to try the above approach.
More information about the Python-list
mailing list