From 755faf7744a04d81d5e9df76b917c3819b60c574 Mon Sep 17 00:00:00 2001 From: Johnny Chen Date: Wed, 1 Jun 2011 19:21:08 +0000 Subject: Make it clear that the Python script modify-python-lldb.py is responsible for post-processing the SWIG-generated lldb.py module by adding comments in the post-processed file in order to facilitate reading of the code. llvm-svn: 132417 --- lldb/scripts/Python/modify-python-lldb.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lldb/scripts/Python/modify-python-lldb.py') 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. -- cgit v1.2.3