Popular recipes by Y S http://code.activestate.com/recipes/users/4169767/2009-05-16T10:00:22-07:00ActiveState Code RecipesCurious Recursive Decorator Pattern (Python)
2009-05-16T10:00:22-07:00Y Shttp://code.activestate.com/recipes/users/4169767/http://code.activestate.com/recipes/576758-curious-recursive-decorator-pattern/
<p style="color: grey">
Python
recipe 576758
by <a href="/recipes/users/4169767/">Y S</a>
(<a href="/recipes/tags/decorator/">decorator</a>, <a href="/recipes/tags/oop/">oop</a>).
Revision 3.
</p>
<p>There are <strong>no</strong> ABCs for ordering operations.
This is because the recursive class difinition like:</p>
<pre class="prettyprint"><code> class Derived(XXX(Derived)):
</code></pre>
<p>is invalid syntax. This recipe implements an ABC ordering class with using decorator.</p>