[cfe-commits] [PATCH] Implement __eq__ and __ne__ on SourceLocation and SourceRange

Tobias Grosser tobias at grosser.es
Sun Feb 5 03:46:57 PST 2012


On 02/05/2012 01:11 AM, Gregory Szorc wrote:
> 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.

Looks good. Committed in r149824.

Tobi



More information about the cfe-commits mailing list