teak-llvm/lldb/source/Plugins/ScriptInterpreter/Python
Zachary Turner 079fe48a1d Fix Python initialization for Python 3.
Python 3 reverses the order in which you must call Py_InitializeEx
and PyEval_InitThreads.  Since that log is in itself already a
little nuanced, it is refactored into a function so that the reversal
is more clear.  At the same time, there's a lot of logic during
Python initialization to save off a bunch of state and then restore
it after initialization is complete.  To express this more cleanly,
it is refactored to an RAII-style pattern where state is saved off
on acquisition and restored on release.

llvm-svn: 250306
2015-10-14 17:51:29 +00:00
..
CMakeLists.txt
lldb-python.h
Makefile
PythonDataObjects.cpp Minor cleanup on PythonDataObject constructors. 2015-10-14 16:59:44 +00:00
PythonDataObjects.h Minor cleanup on PythonDataObject constructors. 2015-10-14 16:59:44 +00:00
ScriptInterpreterPython.cpp Fix Python initialization for Python 3. 2015-10-14 17:51:29 +00:00
ScriptInterpreterPython.h Fix ref counting of Python objects. 2015-10-13 18:16:15 +00:00