cython/cython — pull request #196 by belevtsoff (2013-03-12 21:04:57+00:00)
Title: add fdopen to stdio.pxd

Allow attaching a stream to an opened file via its file descriptor. This is very handy when one wants manipulate a file, which is already opened in python, e.g.:

```cython
from libc.stdio cimport *

pfile = open(file)
cdef FILE * cfile = fdopen(pfile.fileno(), "r")
# ...
```