title: How is str implemented in Python?
body: <pre><code>&gt;&gt;&gt; import sys
  &gt;&gt;&gt; sys.getsizeof(&quot;&quot;)
  40
  </code></pre>
  <p>Why does the empty string use so many bytes? Does anybody know what is stored in those 40 bytes?</p>