Python string interning and substrings
<p>Does python create a completely new string (copying the contents) when you do a substring operation like:</p>

<pre><code>new_string = my_old_string[foo:bar]
</code></pre>

<p>Or does it use interning to point to the old data ?</p>

<p>As a clarification, I'm curious if the underlying character buffer is shared as it is in Java. I realize that strings are immutable and will always appear to be a completely new string, and it would have to be an entirely new string object.</p>
