1. 02 Mar, 2003 3 commits
    • Tim Peters's avatar
      TestOnlySetsInBinaryOps: Simplified the non-inplace tests by using · 6cca754c
      Tim Peters authored
      assertRaises.  Fixed a repeated subtle bug in the inplace tests by
      removing the possibilty that a self.fail() call could raise a
      TypeError that the test catches by mistake.
      6cca754c
    • Tim Peters's avatar
      Typo repairs in new code. · b7bfe4be
      Tim Peters authored
      b7bfe4be
    • Tim Peters's avatar
      SF bug 693121: Set == non-Set is a TypeError. · 44f14b03
      Tim Peters authored
      Allow mixed-type __eq__ and __ne__ for Set objects.  This is messier than
      I'd like because Set *also* implements __cmp__.  I know of one glitch now:
      cmp(s, t) returns 0 now when s and t are both Sets and s == t, despite
      that Set.__cmp__ unconditionally raises TypeError (and by intent).  The
      rub is that __eq__ gets tried first, and the x.__eq__(y) True result
      convinces Python that cmp(x, y) is 0 without even calling Set.__cmp__.
      44f14b03
  2. 01 Mar, 2003 9 commits
  3. 28 Feb, 2003 16 commits
  4. 27 Feb, 2003 12 commits