[Python-Dev] Proposed Mixins for Wide Interfaces (original) (raw)
Raymond Hettinger python@rcn.com
Thu, 5 Sep 2002 10:43:50 -0400
- Previous message: [Python-Dev] Proposed Mixins for Wide Interfaces
- Next message: [Python-Dev] Proposed Mixins for Wide Interfaces
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> [RH] > > > How about adding some mixins to simplify the > > > implementation of some of the fatter interfaces?
[GvR]
On second thought, I don't think there's enough here to warrant putting this in the standard library. E.g. the example from BaseSet actually strikes me as indirect: because <= is the natural operation to provide for sets, hanging everything off lt looks forced.
Agreed.
How about the MappingMixin and SequenceMixin? These both provide much more meat and have more natural attach points (getitem, setitem, delitem).
- Previous message: [Python-Dev] Proposed Mixins for Wide Interfaces
- Next message: [Python-Dev] Proposed Mixins for Wide Interfaces
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]