ctypes shared object FILE*

Dog Walker thudfoo at gmail.com
Sat Nov 8 19:34:12 EST 2008


I need to call a function in a shared object with this signature:
init_dialog(FILE *input, FILE *output)
The FILE*'s are to stdin and stdout.

The call from python is libdialog.init_dialog( x, y)
I need to define x and y so that they will have the structure of
sys.stdin and sys.stdout; the called function (init_dialog) is using a
(std?) function fileno to extract the fileno from the FILE* describing
stdin and stdout.
How can I do this?

-- 
I have seen the future and I'm not in it!



More information about the Python-list mailing list