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