Decorators were there in Python 2.4, released in 2005. Not exactly new.<br><br><div class="gmail_quote">On Sat Nov 15 2014 at 7:51:11 AM Richard Riehle <<a href="mailto:rriehle@itu.edu">rriehle@itu.edu</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Friday, November 14, 2014 2:18:48 PM UTC-8, Marko Rauhamaa wrote:<br>
> Richard Riehle <<a href="mailto:rriehle@itu.edu" target="_blank">rriehle@itu.edu</a>>:<br>
><br>
> > I find that not a lot of Python user really appreciate the power of<br>
> > decorators.<br>
><br>
> Well, I don't.<br>
><br>
> All it means is that I've never seen a use of decorators that has<br>
> enhanced the code. Once I "see the light," I'll have no problem changing<br>
> my view.<br>
><br>
><br>
> Marko<br>
<br>
Decorators are new in Python, so there are not a lot of people using them.  From my experience with other languages, especially Ada and Eiffel, I enjoy the benefit of assertions (as pre-conditions and post-conditions and invariants) at the specification level (not embedded in the code), so decorators are closer to my other experience.   They bring me closer to the Design by Contract model of Ada and Eiffel.   That is why I was so pleased to see them added to Python.<br>
<br>
It is true, however, that they are not immediately intutive in Python, but once understood, they are handy IMHO for improving code reliability.   Perhaps I was spoiled by having this capability in some other languages.<br>
--<br>
<a href="https://mail.python.org/mailman/listinfo/python-list" target="_blank">https://mail.python.org/<u></u>mailman/listinfo/python-list</a><br>
</blockquote></div>