[Python-Dev] replace on empty strings
Fredrik Lundh
fredrik at pythonware.com
Wed May 24 19:36:59 CEST 2006
so, which one is correct ?
Python 2.4.3
>>> "".replace("", "a")
''
>>> u"".replace(u"", u"a")
u'a'
</F>
More information about the Python-Dev
mailing list