<div dir="ltr">This is just function application<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Aug 20, 2015 at 10:32 PM, shiva prasanth <span dir="ltr"><<a href="mailto:kesavarapu.siva@gmail.com" target="_blank">kesavarapu.siva@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div>clearly <br></div>we write decorators for classes and functions and now why not for objects<br><br></div>suppose<br></div>def increment(a):<br></div>      return a+1<br></div>a=5<br></div>@increment<br></div>a<br></div>should modify the value of a to 6<br></div>but instead it is giving an error<br></div>i think we should add decorators for objects also<br></div>since when you are reviewing the same code <br></div>@increment is easier to understand than <br></div>a=a+1<br></div><br></div></div>
<br>_______________________________________________<br>
Python-ideas mailing list<br>
<a href="mailto:Python-ideas@python.org">Python-ideas@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/python-ideas" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/python-ideas</a><br>
Code of Conduct: <a href="http://python.org/psf/codeofconduct/" rel="noreferrer" target="_blank">http://python.org/psf/codeofconduct/</a><br></blockquote></div><br></div>