Right-to-left string replace in Python?
<p>I want to do a string replace in Python, but only do the first instance going from right to left. In an ideal world I'd have:</p>

<pre><code>myStr = "mississippi"
print myStr.rreplace("iss","XXX",1)

&gt; missXXXippi
</code></pre>

<p>What's the best way of doing this, given that <code>rreplace</code> doesn't exist?</p>
