Richard Riehle wrote:
> Decorators are new in Python, so there are not a lot of people using them.
The principle of decorators themselves is as old as Python itself. You could
implement them as far back as Python 1.5, if not older:
[steve@ando ~]$ python1.5
Python 1.5.2 (#1, Aug 27 2012, 09:09
Mayank,
Thanks. I have only been using Python for about four years, so there are
features I have only recently discovered. Decorators are one of them. So
far, I encounter other Python users who are also unfamiliar with them.
When I discovered them, I instantly saw how they could be valuable.
On 2014-11-14 18:19, Richard Riehle wrote:
> Decorators are new in Python, so there are not a lot of people
> using them.
Um...they were introduced in 2.4 which was released in late 2004. So
they've only been around for about (almost exactly) a decade. Not
sure that qualifies as "new in Python"
Decorators were there in Python 2.4, released in 2005. Not exactly new.
On Sat Nov 15 2014 at 7:51:11 AM Richard Riehle wrote:
> On Friday, November 14, 2014 2:18:48 PM UTC-8, Marko Rauhamaa wrote:
> > Richard Riehle :
> >
> > > I find that not a lot of Python user really appreciate the power of
On Friday, November 14, 2014 2:18:48 PM UTC-8, Marko Rauhamaa wrote:
> Richard Riehle :
>
> > I find that not a lot of Python user really appreciate the power of
> > decorators.
>
> Well, I don't.
>
> All it means is that I've never seen a use of decorators that has
> enhanced the code. Once I "
Richard Riehle :
> I find that not a lot of Python user really appreciate the power of
> decorators.
Well, I don't.
All it means is that I've never seen a use of decorators that has
enhanced the code. Once I "see the light," I'll have no problem changing
my view.
Marko
--
https://mail.python.