[Python-3000] adding @abstractmethods after class creation

Steven Bethard steven.bethard at gmail.com
Wed Apr 25 04:56:10 CEST 2007

On 4/24/07, Calvin Spealman <ironfroggy at gmail.com> wrote:
> Or could __abstractmethods__ be created dynamically? Which would be
> used less, __abstractmethods__ or setting class attributes, that it
> would be OK to be a bit slower?

I considered that, but __abstractmethods__ gets checked at every class
instantiation (as I understand it).  That means that
__abstractmethods__ has to be fast. I assumed that was why Guido
introduced it in the first place...

I'm not *in*-sane. Indeed, I am so far *out* of sane that you appear a
tiny blip on the distant coast of sanity.
        --- Bucky Katt, Get Fuzzy

More information about the Python-3000 mailing list