what is the difference between os.open and os.fdopen in python
<p>I am really confused when to use <code>os.open</code> and when to use <code>os.fdopen</code></p>

<p>I was doing all my work with <code>os.open</code> and it worked without any problem but I am not able to understand under what conditions we need <code>file descriptors</code> and all other functions like <code>dup</code> and <code>fsync</code></p>

<p>Is the <code>file object</code> different from <code>file descriptor</code></p>

<p>i mean <code>f = os.open("file.txt",w)</code></p>

<p>Now is f the fileobject or its the filedescriptor?</p>
