stdout not flushed before os.execvp()

Fulvio fulvio at pc.jaring.my
Wed Oct 18 09:34:12 CEST 2006


On Wednesday 18 October 2006 00:25, Fredrik Lundh wrote:

> |feature.  the "exec" system call operates on a lower level than the
> |stdio buffering system.

I did in this manner:

    for exe in ('imap4', 'pop3'):
        if exe in cfgfil[optsrv + '.protocol']:
            exe = exe[:4]; exe = 'call_func = _call_' + exe.upper() \
 + '(setting)'
            try:
                exec exe
            except ProtocolError:
                call_func = '#ERROR 02 = Protocol failed with %s' %optsrv
            break

exists it a different way to do it?

F



More information about the Python-list mailing list