Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #30471
| From | Stefan Behnel <stefan_ml@behnel.de> |
|---|---|
| Subject | Re: How to pass FILE * |
| Date | 2012-09-29 11:19 +0200 |
| References | <201209281455.07702.thudfoo@gmail.com> <CAMZYqRT30X_R3vm6Ut6sH1ydpD8nm5U11SKm-6+MJ=6NFz=isA@mail.gmail.com> <201209290145.19962.thudfoo@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1611.1348910404.27098.python-list@python.org> (permalink) |
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: >> http://stackoverflow.com/questions/3794309/python-ctypes-python-file-object >> -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. Stefan
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: How to pass FILE * Stefan Behnel <stefan_ml@behnel.de> - 2012-09-29 11:19 +0200
csiph-web