On Thu, Jul 19, 2018 at 7:01 AM Calvin Spealman <cspea...@redhat.com> wrote:
> As an alternative suggestion: What if the count parameter to str.replace() > counted from the right with negative values? That would be consistent with > other things like indexing and slicing. > That could certainly be made to work, but I think it fails the discoverability test. You'd have the [:]-syntax and replace working one way, and split/rsplit, find/rfind and so on working another way. Unless you're proposing the negative index for the latter ones also?
_______________________________________________ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/