Exception Handling in Python 3

Lawrence D'Oliveiro ldo at geek-central.gen.new_zealand
Sun Oct 31 19:24:05 EDT 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