Re: [Pyobjc-dev] ObjC exceptions, Python exceptions, the event loop
Brought to you by:
ronaldoussoren
From: <bb...@ma...> - 2003-01-18 14:16:22
|
On Saturday, Jan 18, 2003, at 08:50 US/Eastern, Just van Rossum wrote: >>> Additionally, if the exception is OC_PythonException, the >>> _original_ Python exception should be reraised, resulting in a >>> decent traceback. >> The support-code for exceptions in objc_util.m should do that, but >> I'm not entirely sure if we raise the same exception or a copy of it. > > I've had a look, and adding the proper handlers to the > NSApplicationMain > wrapper is straightforward. However, I'm not getting what I expected: > the traceback only shows the part in the main program. I'll investigate > and patch what I can. I don't believe NSApplicationMain() ever returns in any circumstances. It calls exit() directly. NSApplicationMain's declaration is a big lie. It ignores its inbound arguments and the outbound arguments. At least, I think it exit()s directly. b.bum |