diff options
author | Johnny Chen <johnny.chen@apple.com> | 2011-06-01 19:21:08 +0000 |
---|---|---|
committer | Johnny Chen <johnny.chen@apple.com> | 2011-06-01 19:21:08 +0000 |
commit | 755faf7744a04d81d5e9df76b917c3819b60c574 (patch) | |
tree | 8cf92d0e1c85fc672565e0b56f8eb03a14c85ea9 /lldb/scripts/Python/modify-python-lldb.py | |
parent | 8ef3ad049d5a38af2ba03504e264d0aa650abe01 (diff) | |
download | bcm5719-llvm-755faf7744a04d81d5e9df76b917c3819b60c574.tar.gz bcm5719-llvm-755faf7744a04d81d5e9df76b917c3819b60c574.zip |
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
Diffstat (limited to 'lldb/scripts/Python/modify-python-lldb.py')
-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. |