Skip to content

Commit 8da429a

Browse files
committed
^3.0.py
1 parent 7841bbc commit 8da429a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

python/3.0.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,12 @@ class Meta(type):
2525
class Foo(metaclass=Meta):
2626
pass
2727

28+
try:
29+
raise Exception("Ex")
30+
except Exception as inst:
31+
assert str(type(inst)) == "<class 'Exception'>"
32+
print(inst.args)
33+
print(inst)
34+
2835

2936
passed()

0 commit comments

Comments
 (0)