python string module vs str methods
<pre><code>&gt;&gt;&gt; import string
&gt;&gt;&gt; s = 'happy cat'
&gt;&gt;&gt; string.find('cat')
6
</code></pre>

<p>and </p>

<pre><code>&gt;&gt;&gt; s = 'happy cat'
&gt;&gt;&gt; s.find('cat')
6
</code></pre>

<p>In the above 2 pieces of code, i have the following doubts.</p>

<ol>
<li>Why is the 2nd code working without import the string module?</li>
<li>Is there any performance improvement in using one over the other?</li>
</ol>

<p>Thanks,
Vinay</p>
