inconsistency with += between different types ?

Mark McEahern marklists at
Mon Aug 5 18:25:19 CEST 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