Exception Handling in Python 3

Lawrence D'Oliveiro ldo at geek-central.gen.new_zealand
Mon Nov 1 00:24:05 CET 2010


In message <mailman.372.1288353590.2218.python-list at python.org>, Antoine 
Pitrou wrote:

> If you want to present exceptions to users in a different way ...

sys.stderr.write \
  (
    "Traceback (most recent call last):\n"
    ...
    "AttributeError: blah blah blah ...\n"
  )



More information about the Python-list mailing list