[Tutor] Nicer error message

Válas Péter sulinet at postafiok.hu
Tue May 31 16:24:09 CEST 2011


Hi,

my code is (Python 2.5):

class SomeError(Error):
  """Uff!"""
raise SomeError, "blahblah"

Screen result:
__main__.SomeError: "blahblah"

How can I make "__main__" disappear from output?
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20110531/7c4dc7dd/attachment.html>


More information about the Tutor mailing list