-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support xylib.load_stream in Python SWIG interface #8
Comments
wow, someone is using it :-) I didn't know if the python bindings will be used at all, so I didn't put much work into it ( |
Would it work for you if you had |
Yeah, that would fit my needs perfectly. (I'm parsing data that's being uploaded to a web server.) |
I've added |
Thank you! |
Using the SWIG interface works great for
xylib.load_file
, but this usage fails:The resulting error message:
I believe the problem arises from the need to convert between a Python file object and the C++
std::istream&
type. Apparently, SWIG doesn't do this automatically. I found some posts about this problem which might help:The text was updated successfully, but these errors were encountered: