On Fri, May 20, 2011 at 4:55 PM, Eric Snow wrote:
>
> I have revised this and made a recipe for it:
>
>
> http://code.activestate.com/recipes/577711-validating-classes-and-objects-against-an-abstract/
>
>
I also added this:
http://code.activestate.com/recipes/577712-adding-__implements__-to-subcl
On Thu, May 19, 2011 at 11:33 PM, Eric Snow wrote:
> Thinking about class APIs and validating a class against an API. The abc
> module provides the tools to do some of this. One thing I realized, that I
> hadn't noticed before, is that the abstractness of a class is measured when
> instances of
Thinking about class APIs and validating a class against an API. The abc
module provides the tools to do some of this. One thing I realized, that I
hadn't noticed before, is that the abstractness of a class is measured when
instances of the class are created. This happens in object.__new__
(pyob