fdopen() question

Carsten Gaebler news at snakefarm.org
Tue Apr 8 12:30:37 EDT 2003


Carsten Gaebler wrote:
> 
> Traceback (most recent call last):
>   File "./listener.py", line 27, in ?
>     f = os.fdopen(fd, 'r')
> OSError: [Errno 9] Bad file descriptor
> 
> What am I missing?
> 

Seems I have to open the file in 'w+' mode to make it work.

cg.




More information about the Python-list mailing list