здесь HTML-блок
print(t)
дает
<dl class="docutils" id="index-0">
<dt><code class="docutils literal notranslate"><span class="pre">.</span></code></dt>
<dd>(Dot.) In the default mode, this matches any character except a newline. If
the <a class="reference internal" href="#re.DOTALL" title="re.DOTALL"><code class="xref py py-const docutils literal notranslate"><span class="pre">DOTALL</span></code></a> flag has been specified, this matches any character
including a newline.</dd>
</dl>
, в то время как
print(t.select('dt .pre'))
выводит
[<span class="pre">.</span>]
что делаетСтрока шаблона do в этой строке кода.