Immutability and Python
Devin Jeanpierre
jeanpierreda at gmail.com
Mon Oct 29 14:25:51 EDT 2012
More information about the Python-list mailing list
Mon Oct 29 14:25:51 EDT 2012
- Previous message (by thread): Immutability and Python
- Next message (by thread): Immutability and Python
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Mon, Oct 29, 2012 at 12:46 PM, Paul Rubin <no.email at nospam.invalid> wrote: > 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. No, they were looking for a way to create classes whose instances are immutable. Also, immutability has nothing to do with the presence or lack of for loops. -- Devin
- Previous message (by thread): Immutability and Python
- Next message (by thread): Immutability and Python
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list