Stéphane Henriot added the comment: For what it's worth, here is the behavior in PyPy 2.2.1
>>>> "".replace("", "prefix", 1) 'prefix' >>>> "".replace("", "prefix") 'prefix' ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue28029> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com