Which way to determine empty string is better?
<p>In my code, I need to test whether or not a string is empty for millions of times. The question is, which way is better/faster: <code>if str == ''</code> or <code>if len(str) == 0</code>. If there's better ways to do this, please share. Any help appreciated.</p>
