Why do 3 backslashes equal 4 in a Python string?
<p>Could you tell me why <code>'?\\\?'=='?\\\\?'</code> gives <code>True</code>? That drives me crazy and I can't find a reasonable answer...</p>

<pre><code>&gt;&gt;&gt; list('?\\\?')
['?', '\\', '\\', '?']
&gt;&gt;&gt; list('?\\\\?')
['?', '\\', '\\', '?']
</code></pre>