[snip]On 2012-12-30 16:00, Ned Batchelder wrote:I don't understand the conflict? .replace() from sequence does
precisely the same thing as .replace() from bytes if you limit the
arguments to single-byte values. It seems perfectly natural to me. I
must be missing something.
The difference is that for bytes and str it returns the result (they
are immutable after all), but the suggested addition would mutate the
list in-place. In order to be consistent it would have to return the
result instead.