17fa27ce4SDimitry Andric %extend lldb::SBScriptObject { 27fa27ce4SDimitry Andric #ifdef SWIGPYTHON 37fa27ce4SDimitry Andric %pythoncode %{ 4b1c73532SDimitry Andric # operator== is a free function, which swig does not handle, so we inject 5b1c73532SDimitry Andric # our own equality operator here 6b1c73532SDimitry Andric def __eq__(self, other): 7b1c73532SDimitry Andric return not self.__ne__(other) 8b1c73532SDimitry Andric 97fa27ce4SDimitry Andric ptr = property(GetPointer, None, doc='''A read only property that returns the underlying script object.''') 107fa27ce4SDimitry Andric lang = property(GetLanguage, None, doc='''A read only property that returns the script language associated with with this script object.''') 117fa27ce4SDimitry Andric %} 127fa27ce4SDimitry Andric #endif 137fa27ce4SDimitry Andric } 14