Pre-PEP: Dictionary accumulator methods

George Sakkis gsakkis at rutgers.edu
Sun Mar 20 00:35:31 EST 2005


> > +1 on this. The new suggested operations are meaningful for a subset
> of all
> > valid dicts, so they
> > should not be part of the base dict API. If any version of this is
> approved, > it will clearly be an
> > application of the "practicality beats purity" zen rule, and the
> > justification for applying it in
> > this case instead of subclassing should better be pretty strong; so
> far I'm
> > not convinced though.
> >
> > George
>
> It is bad OO design, George. I want to be a bit more become more
> specific on this and provide an example:

Kay, the '+1' was for your post, not the pre-PEP; I fully agree with you in that it's bad design. I
just tried to play devil's advocate by citing an argument that might be used to back the addition of
the proposed accumulating methods.

Regards,
George





More information about the Python-list mailing list