inconsistency with += between different types ?
bh at intevation.de
Thu Aug 8 08:50:00 EDT 2002
"Donn Cave" <donn at u.washington.edu> writes:
> For example, I'm surprised that UserString modifies in place.
It does indeed! Looks like a bug to me especially considering that
there's also a MutableString class. The __iadd__ and __imul__ methods
should be in MutableString instead of UserString IMO. I filed a bug
report for it (592573).
OTOH, nowadays the string types can be sub-classed so that UserString
behaving exactly like a builtin string may not be that important
Intevation GmbH http://intevation.de/
More information about the Python-list