[Python-ideas] str.rreplace

Ram Rachum ram at rachum.com
Fri Jan 24 18:00:05 CET 2014


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 at pitrou.net> wrote:

> On Fri, 24 Jan 2014 08:47:14 -0800 (PST)
> Ram Rachum <ram.rachum at 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 at 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 at googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20140124/88b246d2/attachment.html>


More information about the Python-ideas mailing list