diff options
Diffstat (limited to 'pypers/marelli/materiale/del_with_exc.py')
-rwxr-xr-x | pypers/marelli/materiale/del_with_exc.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/pypers/marelli/materiale/del_with_exc.py b/pypers/marelli/materiale/del_with_exc.py new file mode 100755 index 0000000..ee09bf1 --- /dev/null +++ b/pypers/marelli/materiale/del_with_exc.py @@ -0,0 +1,10 @@ +# del_with_exc.py
+
+class C(object):
+ def __del__(self):
+ print "Hai chiamato del"
+
+c = C()
+raise RuntimeError("Ahi ahi!")
+
+
|