is decorator the right thing to use?
Bruno Desthuilliers
bruno.42.desthuilliers at websiteburo.invalid
Fri Sep 26 07:48:29 EDT 2008
Dmitry S. Makovey a écrit :
(snip)
> I never used metaclasses before and
> decorators seemed to be bit more straight-forward to me :) ..oh well.
Don't be afraid !-) While it's true that they can be a bit confusing at
first, metaclasses are just classes - whose instances happens to be
classes themselves.
And while you're certainly right to not jump on metaclasses *before*
hanving spent a bit time thinking of other possible solutions, there's
nothing wrong with using metaclasses when that's really what you need...
More information about the Python-list
mailing list