1 %extend lldb::SBProcessInfoList { 2 #ifdef SWIGPYTHON 3 %pythoncode%{ 4 def __len__(self): 5 '''Return the number of process info in a lldb.SBProcessInfoListExtensions object.''' 6 return self.GetSize() 7 8 def __iter__(self): 9 '''Iterate over all the process info in a lldb.SBProcessInfoListExtensions object.''' 10 return lldb_iter(self, 'GetSize', 'GetProcessInfoAtIndex') 11 %} 12 #endif 13 } 14