[Pythonmac-SIG] SIOUX Console ( was sys.exit )

Jack Jansen Jack.Jansen@oratrix.nl
Thu, 31 Jan 2002 22:58:15 +0100


On Wednesday, January 30, 2002, at 11:29  PM, Paul Miller wrote:

>
>> This is in macglue.h of MacPython :
>>
>> void PyMac_SetConsoleHandler(PyReadHandler stdinH, 
>> PyWriteHandler stdoutH,
>>                  PyWriteHandler stderrH);
>
> I discovered this today - seems to keep the console from coming up.
>
> [aside - it would be nice to have a common function that works 
> on all platforms, for generic override of in/out - to avoid the 
> stdin/stdout/stderr hack]

This won't work: on MacPython it works because we can override 
very low level I/O routines in GUSI. There's no 
platform-independent way to break in to the levels under stdio.

> * BUT * - I STILL get the extra menu. So if I'm plugging into 
> "Application X", once the interpreter starts up I get a second 
> "Application X" menu that has the Quit menu in it.

What platform? Could you create a dummy embedding app that shows 
the problem so I can have a look?
--
- Jack Jansen        <Jack.Jansen@oratrix.com>        
http://www.cwi.nl/~jack -
- If I can't dance I don't want to be part of your revolution -- 
Emma Goldman -