You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<li><strong><codeclass="python hljs"><spanclass="hljs-string">'FileNotFoundError'</span></code> can be risen when reading with <codeclass="python hljs"><spanclass="hljs-string">'r'</span></code> or <codeclass="python hljs"><spanclass="hljs-string">'r+'</span></code>.</strong></li>
1421
-
<li><strong><codeclass="python hljs"><spanclass="hljs-string">'FileExistsError'</span></code> can be risen when writing with <codeclass="python hljs"><spanclass="hljs-string">'x'</span></code>.</strong></li>
1422
-
<li><strong><codeclass="python hljs"><spanclass="hljs-string">'IsADirectoryError'</span></code> and <codeclass="python hljs"><spanclass="hljs-string">'PermissionError'</span></code> can be risen by any.</strong></li>
1420
+
<li><strong><codeclass="python hljs"><spanclass="hljs-string">'FileNotFoundError'</span></code> can be raised when reading with <codeclass="python hljs"><spanclass="hljs-string">'r'</span></code> or <codeclass="python hljs"><spanclass="hljs-string">'r+'</span></code>.</strong></li>
1421
+
<li><strong><codeclass="python hljs"><spanclass="hljs-string">'FileExistsError'</span></code> can be raised when writing with <codeclass="python hljs"><spanclass="hljs-string">'x'</span></code>.</strong></li>
1422
+
<li><strong><codeclass="python hljs"><spanclass="hljs-string">'IsADirectoryError'</span></code> and <codeclass="python hljs"><spanclass="hljs-string">'PermissionError'</span></code> can be raised by any.</strong></li>
1423
1423
<li><strong><codeclass="python hljs"><spanclass="hljs-string">'OSError'</span></code> is the parent class of all listed exceptions.</strong></li>
1424
1424
</ul><div><h3id="fileobject">File Object</h3><pre><codeclass="python language-python hljs"><file>.seek(<spanclass="hljs-number">0</span>) <spanclass="hljs-comment"># Moves to the start of the file.</span>
1425
1425
<file>.seek(offset) <spanclass="hljs-comment"># Moves 'offset' chars/bytes from the start.</span>
0 commit comments