Message127035
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"? |
|
Date |
User |
Action |
Args |
2011-01-25 18:30:44 | skip.montanaro | set | recipients:
+ skip.montanaro, stickwithjosh |
2011-01-25 18:30:44 | skip.montanaro | set | messageid: <1295980244.32.0.420662813541.issue11007@psf.upfronthosting.co.za> |
2011-01-25 18:30:41 | skip.montanaro | link | issue11007 messages |
2011-01-25 18:30:41 | skip.montanaro | create | |
|