[Python-ideas] str.rreplace

Alexander Heger python at 2sn.net
Sat Jan 25 07:45:05 CET 2014


>> I propose implementing str.rreplace. (It'll be to str.replace what
>> str.rsplit is to str.split.)

Instead of str.rreplace you could just add a parameter
'reverse=False|True' and add the same thing wherever needed, including
making rfind superfluous.


More information about the Python-ideas mailing list