Converters for file pointers #4990
Unanswered
mr-martian
asked this question in
Q&A
Replies: 1 comment
-
Alternatively, I can switch to streams, but then |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm writing bindings for a library that passes a lot file pointers around and I'm trying to figure out how to pass those in from Python. I could just have the bindings only operate on filenames just open a new file for each function call (which is often how they would get used anyway) but I was curious if there was a straightforward way to turn a Python file object into a
FILE*
.Beta Was this translation helpful? Give feedback.
All reactions