diff options
| -rw-r--r-- | lldb/scripts/Python/modify-python-lldb.py | 8 | 
1 files changed, 8 insertions, 0 deletions
diff --git a/lldb/scripts/Python/modify-python-lldb.py b/lldb/scripts/Python/modify-python-lldb.py index c75b34ee5a8..4f198c881d1 100644 --- a/lldb/scripts/Python/modify-python-lldb.py +++ b/lldb/scripts/Python/modify-python-lldb.py @@ -33,6 +33,14 @@ def lldb_iter(obj, getsize, getelem):      for i in range(size()):          yield elem(i) +# ============================================================================== +# The modify-python-lldb.py script is responsible for post-processing this SWIG- +# generated lldb.py module.  It is responsible for adding the above lldb_iter() +# function definition as well as the supports, in the following, for iteration +# protocol: __iter__, rich comparison methods: __eq__ and __ne__, truth value +# testing (and built-in operation bool()): __nonzero__, and built-in function +# len(): __len__. +# ==============================================================================  '''  # This supports the iteration protocol.  | 

