This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author skip.montanaro
Recipients skip.montanaro, stickwithjosh
Date 2011-01-25.18:30:41
SpamBayes Score 7.8661196e-07
Marked as misclassified No
Message-id <1295980244.32.0.420662813541.issue11007@psf.upfronthosting.co.za>
In-reply-to
Content
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"?
History
Date User Action Args
2011-01-25 18:30:44skip.montanarosetrecipients: + skip.montanaro, stickwithjosh
2011-01-25 18:30:44skip.montanarosetmessageid: <1295980244.32.0.420662813541.issue11007@psf.upfronthosting.co.za>
2011-01-25 18:30:41skip.montanarolinkissue11007 messages
2011-01-25 18:30:41skip.montanarocreate