> 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
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:
>
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
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:/