Re: [Lldb-commits] [PATCH] D13617: Fix ref-counting of Python objects

2015-10-12 Thread Greg Clayton via lldb-commits
clayborg added a comment. I would like to see PythonObject used in place of PyRef, feel free to remove the operator bool and PyObject, and then the rest of the mostly indent and style cleanups. Comment at: source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h:73-79 @@ -7

Re: [Lldb-commits] [PATCH] D13617: Fix ref-counting of Python objects

2015-10-12 Thread Zachary Turner via lldb-commits
zturner added a comment. Let me know what you think about my responses. Anything I didn't specifically call out I'll fix in the next version of the patch. Comment at: source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h:73-79 @@ -73,2 +72,9 @@ -class PythonObject

Re: [Lldb-commits] [PATCH] D13617: Fix ref-counting of Python objects

2015-10-12 Thread Greg Clayton via lldb-commits
clayborg requested changes to this revision. clayborg added a comment. This revision now requires changes to proceed. See inlined comments. Comment at: source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h:73-79 @@ -73,2 +72,9 @@ -class PythonObject +enum class PyRef

Re: [Lldb-commits] [PATCH] D13617: Fix ref-counting of Python objects

2015-10-09 Thread Zachary Turner via lldb-commits
zturner added inline comments. Comment at: source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp:337 @@ -336,3 +346,3 @@ { -PythonObject::Reset(PyLong_FromLongLong(value)); } Just to provide one example, here is an instance of a fixed memory leak.