[Python-Dev] Fwd: defaultproperty

Brett Cannon bcannon at gmail.com
Mon Oct 10 22:33:15 CEST 2005


On 10/10/05, Barry Warsaw <barry at python.org> wrote:
> On Mon, 2005-10-10 at 01:47, Calvin Spealman wrote:
>
> > Never created for a reason? lumping things together for having the
> > similar usage semantics, but unrelated purposes, might be something to
> > avoid and maybe that's why it hasn't happened yet for decorators. If
> > ever there was a makethreadsafe decorator, it should go in the thread
> > module, etc. I mean, come on, its like making a module just to store a
> > bunch of unrelated types just to lump them together because they're
> > types. Who wants that?
>
> Like itertools?
>
> +1 for a decorators module.

+1 from me as well.  And placing defaultproperty in there makes sense
if it is meant to be used as a decorator and not viewed as some spiffy
descriptor.

Should probably work in Michael's update_meta() function as well
(albeit maybe with a different name since I think I remember Guido
saying he didn't like the name).

-Brett


More information about the Python-Dev mailing list