Popular recipes tagged "abc" but not "collections", "abstract_base_class" and "validation"http://code.activestate.com/recipes/tags/abc-collections-abstract_base_class-validation/2011-08-13T03:49:26-07:00ActiveState Code RecipesAdding __implements__ to subclasses during ABCMeta.register (Python)
2011-08-13T03:49:26-07:00Eric Snowhttp://code.activestate.com/recipes/users/4177816/http://code.activestate.com/recipes/577712-adding-__implements__-to-subclasses-during-abcmeta/
<p style="color: grey">
Python
recipe 577712
by <a href="/recipes/users/4177816/">Eric Snow</a>
(<a href="/recipes/tags/abc/">abc</a>).
</p>
<p>This is an extension to the abc.ABCMeta class. It is related to <a href="http://code.activestate.com/recipes/577711/">recipe 577711</a>.</p>
<p>Basically it has ABCMeta.register add __implements__ to any subclass that gets registered.</p>
Immutable Type Hierarchies (Python)
2010-10-11T23:32:31-07:00Aaron Sterlinghttp://code.activestate.com/recipes/users/4174675/http://code.activestate.com/recipes/577424-immutable-type-hierarchies/
<p style="color: grey">
Python
recipe 577424
by <a href="/recipes/users/4174675/">Aaron Sterling</a>
(<a href="/recipes/tags/abc/">abc</a>, <a href="/recipes/tags/hierarchy/">hierarchy</a>, <a href="/recipes/tags/immutable/">immutable</a>).
Revision 4.
</p>
<p>Allows for type hierarchies of immutable types by faking inheritance using dict updates and abc's.</p>