]> granicus.if.org Git - python/commit
At Tim Peter's suggestion, propagated GvR's binary operator changes to
authorRaymond Hettinger <python@rcn.com>
Sat, 24 Aug 2002 06:19:02 +0000 (06:19 +0000)
committerRaymond Hettinger <python@rcn.com>
Sat, 24 Aug 2002 06:19:02 +0000 (06:19 +0000)
commit1b9f5d4c1a56a557fda85f796a40bd1c8dac6f70
tree0b2caf5ec74ee3968604c007517a617bd3af4b9b
parent81912d4764eb8ccb1b069de46c7f78381f4b19a6
At Tim Peter's suggestion, propagated GvR's binary operator changes to
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().
Lib/sets.py
Lib/test/test_sets.py