<div><h2id="introspection"><ahref="#introspection"name="introspection">#</a>Introspection</h2><p><strong>Inspecting code at runtime.</strong></p><div><h3id="variables">Variables</h3><pre><codeclass="python language-python hljs"><list> = dir() <spanclass="hljs-comment"># Names of variables in current scope.</span>
<div><h2id="introspection"><ahref="#introspection"name="introspection">#</a>Introspection</h2><p><strong>Inspecting code at runtime.</strong></p><div><h3id="variables">Variables</h3><pre><codeclass="python language-python hljs"><list> = dir() <spanclass="hljs-comment"># Names of variables in current scope.</span>
<dict> = locals() <spanclass="hljs-comment"># Dict of local variables. Also vars().</span>
<dict> = locals() <spanclass="hljs-comment"># Dict of local variables. Also vars().</span>
<dict> = globals() <spanclass="hljs-comment"># Dict of global variables.</span>
<dict> = globals() <spanclass="hljs-comment"># Dict of global variables.</span>
@ -1832,28 +1854,6 @@ MyMetaClass.__base__ == type <span class="hljs-comment"># MyMetaClass is a
<li><strong>Similar to generator, but generator pulls data through the pipe with iteration, while coroutine pushes data into the pipeline with send().</strong></li>
<li><strong>Similar to generator, but generator pulls data through the pipe with iteration, while coroutine pushes data into the pipeline with send().</strong></li>
<li><strong>Coroutines provide more powerful data routing possibilities than iterators.</strong></li>
<li><strong>Coroutines provide more powerful data routing possibilities than iterators.</strong></li>
<li><strong><codeclass="python hljs"><spanclass="hljs-string">'<timedelta>'</span></code> - Max age of a file.</strong></li>
<li><strong><codeclass="python hljs"><spanclass="hljs-string">'<timedelta>'</span></code> - Max age of a file.</strong></li>
<li><strong><codeclass="python hljs"><spanclass="hljs-string">'<str>'</span></code> - Max age as a string: <codeclass="python hljs"><spanclass="hljs-string">'1 week, 3 days'</span></code>, <codeclass="python hljs"><spanclass="hljs-string">'2 months'</span></code>, …</strong></li>
<li><strong><codeclass="python hljs"><spanclass="hljs-string">'<str>'</span></code> - Max age as a string: <codeclass="python hljs"><spanclass="hljs-string">'1 week, 3 days'</span></code>, <codeclass="python hljs"><spanclass="hljs-string">'2 months'</span></code>, …</strong></li>
</ul>
</ul>
<div><h2id="scraping"><ahref="#scraping"name="scraping">#</a>Scraping</h2><div><h4id="scrapespythonsurlversionnumberandlogofromwikipediapage">Scrapes Python's URL, version number and logo from Wikipedia page:</h4><pre><codeclass="python language-python hljs"><spanclass="hljs-comment"># $ pip3 install requests beautifulsoup4</span>
<div><h2id="scraping"><ahref="#scraping"name="scraping">#</a>Scraping</h2><div><h4id="scrapespythonslogourlandversionnumberfromwikipediapage">Scrapes Python's logo, URL and version number from Wikipedia page:</h4><pre><codeclass="python language-python hljs"><spanclass="hljs-comment"># $ pip3 install requests beautifulsoup4</span>
xxxxxxxxxx