having both dynamic and static variables
Paul Rubin
no.email at nospam.invalid
Mon Mar 7 16:20:39 EST 2011
More information about the Python-list mailing list
Mon Mar 7 16:20:39 EST 2011
- Previous message (by thread): having both dynamic and static variables
- Next message (by thread): having both dynamic and static variables
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Steven D'Aprano <steve+comp.lang.python at pearwood.info> writes: > but I call that a feature, not a bug. If you want an immutable constant, > use a tuple, not a list. Nope: L = ([1,2],[3,4]) # tuple L[0].append(5) # mutate L, in some reasonable sense of "mutate"
- Previous message (by thread): having both dynamic and static variables
- Next message (by thread): having both dynamic and static variables
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list