inconsistency with += between different types ?
Bernhard Herzog
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
anymore.
Bernhard
--
Intevation GmbH http://intevation.de/
Sketch http://sketch.sourceforge.net/
MapIt! http://www.mapit.de/
More information about the Python-list
mailing list