Re: [Python-3000] adding @abstractmethods after class creation

2007-04-24 Thread Steven Bethard
On 4/24/07, Guido van Rossum <[EMAIL PROTECTED]> wrote: > I'm not sure what the point would be of supporting dynamically > modifying ABCs -- it looks like you're just exploring the corners of > the semantics rather than providing actual use cases. Yep, I'm just checking the corner case semantics.

Re: [Python-3000] adding @abstractmethods after class creation

2007-04-24 Thread Guido van Rossum
On 4/24/07, Steven Bethard <[EMAIL PROTECTED]> wrote: > On 4/24/07, Calvin Spealman <[EMAIL PROTECTED]> 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 co

Re: [Python-3000] adding @abstractmethods after class creation

2007-04-24 Thread Steven Bethard
On 4/24/07, Calvin Spealman <[EMAIL PROTECTED]> 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 clas

Re: [Python-3000] adding @abstractmethods after class creation

2007-04-24 Thread Calvin Spealman
On 4/24/07, Steven Bethard <[EMAIL PROTECTED]> wrote: > On 4/24/07, guido.van.rossum <[EMAIL PROTECTED]> wrote: > > +We define a new built-in decorator, [EMAIL PROTECTED] > [snip] > > +**Implementation:** The [EMAIL PROTECTED] decorator sets the > > +function attribute ``__isabstractmethod__`` to t

[Python-3000] adding @abstractmethods after class creation

2007-04-24 Thread Steven Bethard
On 4/24/07, guido.van.rossum <[EMAIL PROTECTED]> wrote: > +We define a new built-in decorator, [EMAIL PROTECTED] [snip] > +**Implementation:** The [EMAIL PROTECTED] decorator sets the > +function attribute ``__isabstractmethod__`` to the value ``True``. > +The ``type.__new__`` method computes the t