106c3fb27SDimitry Andric %extend lldb::SBScriptObject { 206c3fb27SDimitry Andric #ifdef SWIGPYTHON 306c3fb27SDimitry Andric %pythoncode %{ 4*5f757f3fSDimitry Andric # operator== is a free function, which swig does not handle, so we inject 5*5f757f3fSDimitry Andric # our own equality operator here 6*5f757f3fSDimitry Andric def __eq__(self, other): 7*5f757f3fSDimitry Andric return not self.__ne__(other) 8*5f757f3fSDimitry Andric 906c3fb27SDimitry Andric ptr = property(GetPointer, None, doc='''A read only property that returns the underlying script object.''') 1006c3fb27SDimitry Andric lang = property(GetLanguage, None, doc='''A read only property that returns the script language associated with with this script object.''') 1106c3fb27SDimitry Andric %} 1206c3fb27SDimitry Andric #endif 1306c3fb27SDimitry Andric } 14