exit() or sys.exit()

Brendan brendandetracey at yahoo.com
Wed Jun 17 12:15:17 EDT 2009

What is the difference on exit() and sys.exit() when called in the
main body of a script? From the command line they seem to have the
same effect.

Aside: Just used a python dictionary in which the keys were compiled
regular expressions. Provided a very elegant solution. Have to love it.

More information about the Python-list mailing list