]> granicus.if.org Git - python/commit
- Big changes to fix SF bug #442833 (a nasty multiple inheritance
authorGuido van Rossum <guido@python.org>
Fri, 10 Aug 2001 21:24:08 +0000 (21:24 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 10 Aug 2001 21:24:08 +0000 (21:24 +0000)
commit13d52f0b3289e34298fbf5d3912cb642f3d2fbd9
treeddccff20e1c079a0c40b1cb7751fe357cd5f64cf
parentf24b2f32850625dc56d510e2a5d019641bd06b4e
- Big changes to fix SF bug #442833 (a nasty multiple inheritance
  problem).  inherit_slots() is split in two parts: inherit_special()
  which inherits the flags and a few very special members from the
  dominant base; inherit_slots() which inherits only regular slots,
  and is now called for each base in the MRO in turn.  These are now
  both void functions since they don't have error returns.

- Added object.__setitem__() back -- for the same reason as
  object.__new__(): a subclass of object should be able to call
  object.__new__().

- add_wrappers() was moved around to be closer to where it is used (it
  was defined together with add_methods() etc., but has nothing to do
  with these).
Objects/typeobject.c