• Raymond Hettinger's avatar
    At Tim Peter's suggestion, propagated GvR's binary operator changes to · 1b9f5d4c
    Raymond Hettinger authored
    the inplace operators.  The strategy is to have the operator overloading
    code do the work and then to define equivalent method calls which rely on
    the operators.  The changes facilitate proper application of TypeError
    and NonImplementedErrors.
    
    Added corresponding tests to the test suite to make sure both the operator
    and method call versions get exercised.
    
    Add missing tests for difference_update().
    1b9f5d4c
sets.py 15.1 KB