+-- UnicodeError # Raised when encoding/decoding strings from/to bytes fails.
</code></pre></div>
<div><h4id="collectionsandtheirexeceptions">Collections and their execeptions:</h4><pre><codeclass="python language-python hljs">+-----------+------------+----------+----------+
<div><h4id="collectionsandtheirexceptions">Collections and their exceptions:</h4><pre><codeclass="python language-python hljs">+-----------+------------+----------+----------+
| | list | dict | set |
+-----------+------------+----------+----------+
| getitem() | IndexError | KeyError | |
@ -1365,7 +1365,8 @@ value = args.<name>
</code></pre></div>
<ul>
<li><strong>Use <codeclass="python hljs"><spanclass="hljs-string">'help=<str>'</span></code> for argument description.</strong></li>
<li><strong>Use <codeclass="python hljs"><spanclass="hljs-string">'help=<str>'</span></code> to set argument description.</strong></li>
<li><strong>Use <codeclass="python hljs"><spanclass="hljs-string">'default=<el>'</span></code> to set the default value.</strong></li>
<li><strong>Use <codeclass="python hljs"><spanclass="hljs-string">'type=FileType(<mode>)'</span></code> for files.</strong></li>
</ul>
<div><h2id="open"><ahref="#open"name="open">#</a>Open</h2><p><strong>Opens a file and returns a corresponding file object.</strong></p><pre><codeclass="python language-python hljs"><file> = open(<spanclass="hljs-string">'<path>'</span>, mode=<spanclass="hljs-string">'r'</span>, encoding=<spanclass="hljs-keyword">None</span>, newline=<spanclass="hljs-keyword">None</span>)