Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Re: How to pass FILE *

Thread Tools

Re: How to pass FILE *

Stefan Behnel
Posts: n/a
xDog Walker, 29.09.2012 10:45:
> On Friday 2012 September 28 21:27, you wrote:
>> A tiny bit of googling suggests the following approach:
>> -c-file/3794401#3794401

> Thanks for your response.
> My "tiny bit of Googling" brought no joy but I did try successfully the same
> method suggested by Alex Martelli: use libc's fdopen to get a FILE * for
> ctypes. I would have posted a reply to my own post but it didn't show up.

Given your second post on stackoverflow, you may also consider switching
from ctypes to Cython. It makes these things a bit more straight forward.


Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
difference between pass by address and pass by reference!! blufox C Programming 2 04-03-2006 02:53 PM
Pass by reference / pass by value Jerry Java 20 09-09-2005 06:08 PM
pass by ref vs pass by pointer Radde C++ 38 08-23-2005 06:29 PM
Pass-by-reference instead of pass-by-pointer = a bad idea? Mr A C++ 111 07-14-2005 03:04 AM