validating a class against an ABC at definition time

Eric Snow ericsnowcurrently at gmail.com
Fri May 20 20:05:58 EDT 2011


On Fri, May 20, 2011 at 4:55 PM, Eric Snow <ericsnowcurrently at gmail.com>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-subclasses-during-abcmeta/
<http://code.activestate.com/recipes/577712-adding-__implements__-to-subclasses-during-abcmeta/>


> The question remains of what alternatives exist to this solution.  Thanks!
>
> -eric
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20110520/344149fc/attachment.html>


More information about the Python-list mailing list