Re: atexit, sys.exit, sys.exitfunc, reaching end of source code

2007-07-12 Thread Gabriel Genellina
En Thu, 12 Jul 2007 06:30:45 -0300, [EMAIL PROTECTED] <[EMAIL PROTECTED]> escribió: > I am getting quite confused with this SystemExit. > If I register a custom sys.excepthook then it is never invoked > when I do sys.exit(.) No, sys.excepthook won't be called for SystemExit: py> help(sys) Help

Re: atexit, sys.exit, sys.exitfunc, reaching end of source code

2007-07-12 Thread [EMAIL PROTECTED]
On 12 jul, 01:32, Wojciech Mu a <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > I am playing with theatexitmodule but I don't find a way to see the > > difference > > between a script calling sys.exit() and the interpreting > > arriving at the end > > of the source code file. This has a s

Re: atexit, sys.exit, sys.exitfunc, reaching end of source code

2007-07-11 Thread Wojciech Muła
[EMAIL PROTECTED] wrote: > I am playing with the atexit module but I don't find a way to see the > difference > between a script calling sys.exit() and the interpreting > arriving at the end > of the source code file. This has a semantic difference for my > applications. > Is there a way to determi

atexit, sys.exit, sys.exitfunc, reaching end of source code

2007-07-11 Thread [EMAIL PROTECTED]
Hi, I am playing with the atexit module but I don't find a way to see the difference between a script calling sys.exit() and the interpreting arriving at the end of the source code file. This has a semantic difference for my applications. Is there a way to determine in an exithandler (that is regi