[cfe-commits] [PATCH] Implement __eq__ and __ne__ on SourceLocation and SourceRange
Gregory Szorc
gregory.szorc at gmail.com
Sat Feb 4 16:11:02 PST 2012
There is no type checking in __eq__, so ctypes will throw if the wrong
Python type is passed in to the C function. Personally, I feel garbage
in means garbage out and it isn't worth testing for this explicitly.
---
bindings/python/clang/cindex.py | 20 ++++++++++++++++++++
bindings/python/tests/cindex/test_location.py | 20 +++++++++++++++++++-
2 files changed, 39 insertions(+), 1 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Implement-__eq__-and-__ne__-on-SourceLocation-and-So.patch
Type: text/x-patch
Size: 5620 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120204/488b8738/attachment.bin>
More information about the cfe-commits
mailing list