Re: exit() or sys.exit()

2009-06-17 Thread Sebastian Wiesner
> 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. As of Python 2.5 there is no difference, however documentation [1] says about exit() and quit(): > They are useful for the interactive interp

Re: exit() or sys.exit()

2009-06-17 Thread Brendan
On Jun 17, 1:33 pm, Tim Chase wrote: > Brendan wrote: > > 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. > > In Python <=2.4 you had to use sys.exit() because > __builtins__.exit() griped: >

Re: exit() or sys.exit()

2009-06-17 Thread Tim Chase
Brendan wrote: 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. In Python <=2.4 you had to use sys.exit() because __builtins__.exit() griped: tch...@asgix:~$ python2.4 Python 2.4.4 (#2, Apr

exit() or sys.exit()

2009-06-17 Thread Brendan
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. -- http:/