[Lldb-commits] [PATCH] D13706: Update swig typemaps and interfaces to not call PyString_FromStringAndSize
Zachary Turner via lldb-commits
lldb-commits at lists.llvm.org
Tue Oct 13 13:26:53 PDT 2015
zturner created this revision.
zturner added reviewers: clayborg, granata.enrico.
zturner added a subscriber: lldb-commits.
Python 3's native API has a number of incompatibilities with Python 2's. Most of these incompatibilities are hidden inside of the various `PythonObject` classes, but our swig typemaps and interfaces use Python native APIs directly.
This patch addresses the first of these incompatibilities, the use of `PyString_FromStringAndSize`. It is fixed by changing these to use `PythonString. It's possible more work may need to be done here in the future because there are still numerous calls to native Python APIs from the swig typemaps, but for now this is the minimum amount of work necessary to get a successful compilation under Python 3.
The second of these incompatibilities, the use of various `PyFile_xxx` functions, will be addressed in a followup patch.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 24434 bytes
Desc: not available
More information about the lldb-commits