Python 3.0 crashes displaying Unicode at interactive prompt

James Mills prologic at shortcircuit.net.au
Sun Dec 14 18:10:26 EST 2008


On Mon, Dec 15, 2008 at 9:03 AM, Fuzzyman <fuzzyman at gmail.com> wrote:
> It seems to me to be a generally accepted term when an application
> stops due to an unhandled error to say that it crashed.

it == application
Yes.

--------------------

#!/usr/bin/env python

from traceback import format_exc

def foo():
  print "Hello World!"

def main():
  try:
     foo()
  except Exception, error:
     print "ERROR: %s" % error
     print format_exc()

if __name__ == "__main__":
  main()

--------------------

--JamesMills



More information about the Python-list mailing list