[Lldb-commits] [PATCH] [Python] Allow PyLong values in integer lists (when converting to C lists)
Siva Chandra
sivachandra at google.com
Tue Jun 30 12:09:01 PDT 2015
Enrico prompted me to do this experiment:
>>> isinstance(True, long)
False
>>> isinstance(False, long)
False
>>> isinstance(False, int)
True
>>> isinstance(True, int)
True
So, bools were allowed even before this patch! I have taken out the additional
PyBool check and reverted to the original version of the patch. Will put it in
shortly.
http://reviews.llvm.org/D10821
Files:
scripts/Python/python-typemaps.swig
test/python_api/sbdata/TestSBData.py
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D10821.28807.patch
Type: text/x-patch
Size: 6923 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20150630/11242f05/attachment.bin>
More information about the lldb-commits
mailing list