Skip to content

Commit d6caf1f

Browse files
committed
Open
1 parent b1b8b98 commit d6caf1f

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1487,6 +1487,8 @@ Open
14871487
### Exceptions
14881488
* **`'FileNotFoundError'` can be risen when reading with `'r'` or `'r+'`.**
14891489
* **`'FileExistsError'` can be risen when writing with `'x'`.**
1490+
* **`'IsADirectoryError'` and `'PermissionError'` can be risen by any.**
1491+
* **`'OSError'` is the parent class of all listed exceptions.**
14901492

14911493
### File
14921494
```python

index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1359,6 +1359,8 @@ <h3 id="exceptions-1">Exceptions</h3>
13591359
<ul>
13601360
<li><strong><code class="python hljs"><span class="hljs-string">'FileNotFoundError'</span></code> can be risen when reading with <code class="python hljs"><span class="hljs-string">'r'</span></code> or <code class="python hljs"><span class="hljs-string">'r+'</span></code>.</strong> </li>
13611361
<li><strong><code class="python hljs"><span class="hljs-string">'FileExistsError'</span></code> can be risen when writing with <code class="python hljs"><span class="hljs-string">'x'</span></code>.</strong></li>
1362+
<li><strong><code class="python hljs"><span class="hljs-string">'IsADirectoryError'</span></code> and <code class="python hljs"><span class="hljs-string">'PermissionError'</span></code> can be risen by any.</strong></li>
1363+
<li><strong><code class="python hljs"><span class="hljs-string">'OSError'</span></code> is the parent class of all listed exceptions.</strong></li>
13621364
</ul>
13631365
<h3 id="file">File</h3>
13641366
<pre><code class="python language-python hljs">&lt;file&gt;.seek(<span class="hljs-number">0</span>) <span class="hljs-comment"># Moves to the start of the file.</span>

0 commit comments

Comments
 (0)