Skip to content

Commit fe4ebe6

Browse files
committed
Exceptions
1 parent a97d71b commit fe4ebe6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1386,7 +1386,7 @@ except <exception> as <name>:
13861386
raise
13871387
```
13881388

1389-
### Attributes
1389+
### Exception Object
13901390
```python
13911391
arguments = <name>.args
13921392
line_num = <name>.__traceback__.tb_lineno

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1302,7 +1302,7 @@
13021302
<span class="hljs-keyword">raise</span>
13031303
</code></pre></div>
13041304

1305-
<div><h3 id="attributes-1">Attributes</h3><pre><code class="python language-python hljs">arguments = &lt;name&gt;.args
1305+
<div><h3 id="exceptionobject">Exception Object</h3><pre><code class="python language-python hljs">arguments = &lt;name&gt;.args
13061306
line_num = &lt;name&gt;.__traceback__.tb_lineno
13071307
func_name = &lt;name&gt;.__traceback__.tb_frame.f_code.co_name
13081308
filename = &lt;name&gt;.__traceback__.tb_frame.f_code.co_filename
@@ -1862,7 +1862,7 @@
18621862

18631863

18641864

1865-
<div><h3 id="attributes-2">Attributes</h3><pre><code class="python language-python hljs">&lt;list&gt; = dir(&lt;object&gt;) <span class="hljs-comment"># Returns names of object's attributes (incl. methods).</span>
1865+
<div><h3 id="attributes-1">Attributes</h3><pre><code class="python language-python hljs">&lt;list&gt; = dir(&lt;object&gt;) <span class="hljs-comment"># Returns names of object's attributes (incl. methods).</span>
18661866
&lt;dict&gt; = vars(&lt;object&gt;) <span class="hljs-comment"># Returns dict of object's fields. Also &lt;object&gt;.__dict__.</span>
18671867
</code></pre></div>
18681868

0 commit comments

Comments
 (0)