Re: command-line options while embedded
Wed, 11 May 1994 21:22:43 +0200

> How would I flag/use a command line option (like "-u" for
> instance) if I'm running the Python interpreter embedded in another
> program (i.e. not explicitly invoking it from the command line)?

It totally depends on the option you want. For -u, the best thing to
do is to call setbuf(stdout, NULL) -- BEFORE doing any output in the
surrounging program. For -v, I'd set the "verbose" flag. And so on.
In general, just look in pythonmain() to see what the flags do...

--Guido van Rossum, CWI, Amsterdam <>
URL: <>