Yep, it differs only when count is supplied.

Yep, bytes.rreplace and bytearray.rreplace and par for the course :)

And yes, the name is annoying, but what can you do? Plus now that I think about it the first two letters happen to be my initials, so I suggest I should be happy :)


On Fri, Jan 24, 2014 at 6:56 PM, Antoine Pitrou <solipsis@pitrou.net> wrote:
On Fri, 24 Jan 2014 08:47:14 -0800 (PST)
Ram Rachum <ram.rachum@gmail.com> wrote:
> I propose implementing str.rreplace. (It'll be to str.replace what
> str.rsplit is to str.split.)

I suppose it only differs when the count parameter is supplied?

I don't think it can hurt, except for the funny looks of its name.
In any case, if str.rreplace is added then so should bytes.rreplace and
bytearray.rreplace.

Regards

Antoine.


_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/

--

---
You received this message because you are subscribed to a topic in the Google Groups "python-ideas" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/python-ideas/4cLkOx18u48/unsubscribe.
To unsubscribe from this group and all its topics, send an email to python-ideas+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.