inconsistency with += between different types ?

Mark McEahern marklists at mceahern.com
Mon Aug 5 12:25:19 EDT 2002


> It seems that  lists are the only type, where the changes get visible
> outside, although I'd have expected all types to behave as lists do.

lists are mutable.  strings and ints aren't.

// m
-





More information about the Python-list mailing list