Popular recipes tagged "deprecated"http://code.activestate.com/recipes/tags/deprecated/2013-12-14T01:24:31-08:00ActiveState Code Recipesdeprecate decorator which accepts arguments (Python)
2013-08-23T13:24:40-07:00tlatsashttp://code.activestate.com/recipes/users/4187618/http://code.activestate.com/recipes/578650-deprecate-decorator-which-accepts-arguments/
<p style="color: grey">
Python
recipe 578650
by <a href="/recipes/users/4187618/">tlatsas</a>
(<a href="/recipes/tags/decorator/">decorator</a>, <a href="/recipes/tags/deprecated/">deprecated</a>).
Revision 2.
</p>
<p>The deprecate decorator can be used to warn for future or current code deprecations. It accepts a message and an optional Warning class which will be passed to the warnings.warn() function.</p>
Deprecated decorator (Python)
2013-12-14T01:24:31-08:00Giampaolo RodolĂ http://code.activestate.com/recipes/users/4178764/http://code.activestate.com/recipes/577819-deprecated-decorator/
<p style="color: grey">
Python
recipe 577819
by <a href="/recipes/users/4178764/">Giampaolo RodolĂ </a>
(<a href="/recipes/tags/decorator/">decorator</a>, <a href="/recipes/tags/deprecated/">deprecated</a>, <a href="/recipes/tags/python/">python</a>).
Revision 3.
</p>
<p>A decorator to deprecate a function and provide a new one as replacement.</p>