[Lldb-commits] [lldb] r132417 - /lldb/trunk/scripts/Python/modify-python-lldb.py

Johnny Chen johnny.chen at apple.com
Wed Jun 1 12:21:08 PDT 2011


Author: johnny
Date: Wed Jun  1 14:21:08 2011
New Revision: 132417

URL: http://llvm.org/viewvc/llvm-project?rev=132417&view=rev
Log:
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.

Modified:
    lldb/trunk/scripts/Python/modify-python-lldb.py

Modified: lldb/trunk/scripts/Python/modify-python-lldb.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/scripts/Python/modify-python-lldb.py?rev=132417&r1=132416&r2=132417&view=diff
==============================================================================
--- lldb/trunk/scripts/Python/modify-python-lldb.py (original)
+++ lldb/trunk/scripts/Python/modify-python-lldb.py Wed Jun  1 14:21:08 2011
@@ -33,6 +33,14 @@
     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.





More information about the lldb-commits mailing list