stdout not flushed before os.execvp()

Fulvio fulvio at
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)'
                exec exe
            except ProtocolError:
                call_func = '#ERROR 02 = Protocol failed with %s' %optsrv

exists it a different way to do it?


More information about the Python-list mailing list