Popular recipes tagged "object" and "closure" but not "decorator"http://code.activestate.com/recipes/tags/-decorator+object+closure/2012-04-11T06:21:18-07:00ActiveState Code RecipesSimple tool for simulating classes using closures and nested scopes (Python)
2012-04-11T06:21:18-07:00Raymond Hettingerhttp://code.activestate.com/recipes/users/178123/http://code.activestate.com/recipes/578091-simple-tool-for-simulating-classes-using-closures-/
<p style="color: grey">
Python
recipe 578091
by <a href="/recipes/users/178123/">Raymond Hettinger</a>
(<a href="/recipes/tags/closure/">closure</a>, <a href="/recipes/tags/object/">object</a>, <a href="/recipes/tags/oriented/">oriented</a>).
Revision 9.
</p>
<p>Closured-based alternative to normal classes. Allows a faster, cleaner coding style at the expense of some functionality.</p>