In article <[EMAIL PROTECTED]>, Martijn Brouwer <[EMAIL PROTECTED]> wrote: ... > I read this one, which was the reason that I tried os.close instead of > sys.stdXXX.close(). But I would like to know why it does not close a > file discriptor is I call its close method().
They're special. I suppose because of internal dependencies - last chance exception handler etc. - they are created without a close function, internally, so close() has no effect. I don't know if it really makes any sense, since anyway one may close the file descriptors directly as you did. Donn Cave, [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list