difference between os.fdopen and builtin open
Dave Angel
davea at dejaviewphoto.com
Sat Mar 28 11:01:54 EDT 2009
You've already hit the most important difference: os.open() lets you
share files between processes, while the built-in doesn't have any
control of that type.
Another distinction is that fdopen() can be used to get a file object
from a fd handle, which may be obtained some other way. For example
stdout or stderr.
Visco Shaun wrote:
> Hi
>
> I was wondering the difference between os.fdopen()(or os.open() not
> considering the difference in args) and builtin open(). Can anyone help
> me?
>
More information about the Python-list
mailing list