Page MenuHomePhabricator

Update SWIG typemaps to use new `PythonFile` wrapper
ClosedPublic

Authored by zturner on Oct 15 2015, 5:40 PM.

Details

Summary

Handling of Python files is different in Python 3, to the point that it is unwieldy to try to write native C API calls in places that need to use files. A new type of python object PythonFile is created to wrap these implementation details, and the various swig typemaps are updated to use this wrapper instead of the native API calls.

Diff Detail

Event Timeline

zturner updated this revision to Diff 37543.Oct 15 2015, 5:40 PM
zturner retitled this revision from to Update SWIG typemaps to use new `PythonFile` wrapper.
zturner updated this object.
zturner added reviewers: clayborg, granata.enrico.
zturner added a subscriber: lldb-commits.
zturner updated this revision to Diff 37546.Oct 15 2015, 5:42 PM

Fixed indentation

clayborg accepted this revision.Oct 16 2015, 9:37 AM
clayborg edited edge metadata.
This revision is now accepted and ready to land.Oct 16 2015, 9:37 AM
zturner closed this revision.Oct 16 2015, 4:30 PM