"Rhamphoryncus" <rhamph at gmail.com> writes: > > i = s.index(e) => s[i] = e > > Then this algorithm is no longer guaranteed to work with strings. > It never worked correctly on unicode strings anyway (which becomes the > canonical string in python 3.0). What?! Are you sure? That sounds broken to me.