@ -1877,7 +1877,7 @@ CRITICAL:my_module:Running out of disk space.
2023-02-07 23:21:01,430 CRITICAL:my_module:Running out of disk space.
</code></pre></div>
<div><h2id="introspection"><ahref="#introspection"name="introspection">#</a>Introspection</h2><pre><codeclass="python language-python hljs"><list> = dir() <spanclass="hljs-comment"># List of of local names (including functions and classes).</span>
<div><h2id="introspection"><ahref="#introspection"name="introspection">#</a>Introspection</h2><pre><codeclass="python language-python hljs"><list> = dir() <spanclass="hljs-comment"># List of local names (variables, funcs, classes, modules).</span>
<dict> = vars() <spanclass="hljs-comment"># Dict of local names and their objects. Also locals().</span>
<dict> = globals() <spanclass="hljs-comment"># Dict of global names (for instance '__builtin__' module).</span>
</code></pre></div>
@ -1886,7 +1886,7 @@ CRITICAL:my_module:Running out of disk space.
<dict> = vars(<obj>) <spanclass="hljs-comment"># Returns dict of writable attributes. Also <obj>.__dict__.</span>
<bool> = hasattr(<obj>, <spanclass="hljs-string">'<name>'</span>) <spanclass="hljs-comment"># Checks if object possesses attribute with passed name.</span>
value = getattr(<obj>, <spanclass="hljs-string">'<name>'</span>) <spanclass="hljs-comment"># Returns object's attribute or raises AttributeError.</span>
setattr(<obj>, <spanclass="hljs-string">'<name>'</span>, value) <spanclass="hljs-comment"># Sets attribute. Only works on objects with __dict__.</span>
setattr(<obj>, <spanclass="hljs-string">'<name>'</span>, value) <spanclass="hljs-comment"># Sets attribute. Only works on objects with __dict__ attr.</span>
delattr(<obj>, <spanclass="hljs-string">'<name>'</span>) <spanclass="hljs-comment"># Deletes attribute from __dict__. Also `del <obj>.<name>`.</span>
</code></pre>
<pre><codeclass="python language-python hljs"><Sig> = inspect.signature(<func>) <spanclass="hljs-comment"># Returns function's Signature object. Can accept a class.</span>