File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1386,7 +1386,7 @@ except <exception> as <name>:
1386
1386
raise
1387
1387
```
1388
1388
1389
- ### Attributes
1389
+ ### Exception Object
1390
1390
``` python
1391
1391
arguments = < name> .args
1392
1392
line_num = < name> .__traceback__ .tb_lineno
Original file line number Diff line number Diff line change 1302
1302
< span class ="hljs-keyword "> raise</ span >
1303
1303
</ code > </ pre > </ div >
1304
1304
1305
- < div > < h3 id ="attributes-1 " > Attributes </ h3 > < pre > < code class ="python language-python hljs "> arguments = <name>.args
1305
+ < div > < h3 id ="exceptionobject " > Exception Object </ h3 > < pre > < code class ="python language-python hljs "> arguments = <name>.args
1306
1306
line_num = <name>.__traceback__.tb_lineno
1307
1307
func_name = <name>.__traceback__.tb_frame.f_code.co_name
1308
1308
filename = <name>.__traceback__.tb_frame.f_code.co_filename
1862
1862
1863
1863
1864
1864
1865
- < div > < h3 id ="attributes-2 "> Attributes</ h3 > < pre > < code class ="python language-python hljs "> <list> = dir(<object>) < 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 "> <list> = dir(<object>) < span class ="hljs-comment "> # Returns names of object's attributes (incl. methods).</ span >
1866
1866
<dict> = vars(<object>) < span class ="hljs-comment "> # Returns dict of object's fields. Also <object>.__dict__.</ span >
1867
1867
</ code > </ pre > </ div >
1868
1868
You can’t perform that action at this time.
0 commit comments