[Python-Dev] string inconsistency
Tim Peters
tim.peters at gmail.com
Thu Jun 1 15:59:30 CEST 2006
[Neal]
> This is still in Lib/test/string_tests.py:
>
> #EQ("A", "", "replace", "", "A")
> # That was the correct result; this is the result we actually get
> # now (for str, but not for unicode):
> #EQ("", "", "replace", "", "A")
>
> Is this going to be fixed?
Done. I had to comment out that new test during the NFS sprint
because the str and unicode implementations gave different results (a
pre-existing bug discovered during the sprint). str.replace() was
repaired later during the sprint, but the new test remained commented
out.
More information about the Python-Dev
mailing list