Skip Montanaro <[email protected]> added the comment:
Given this code:
#!/usr/bin/env python
class C:
def bomb(self):
1/0
c = C()
c.bomb()
when run it produces
Traceback (most recent call last):
File "<stdin>", line 8, in <module>
File "<stdin>", line 5, in bomb
ZeroDivisionError: integer division or modulo by zero
You would like "bomb" to be "C.bomb"?
----------
nosy: +skip.montanaro
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue11007>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com