Decorators

Marko Rauhamaa marko at pacujo.net
Sat Nov 15 02:00:09 EST 2014


Tim Chase <python.list at tim.thechases.com>:

> And decorators are used pretty regularly in just about every code-base
> that I've touched (I've been programming in Python since early 2004,
> so I've maintained pre-2.4 code without decorators and then brought it
> forward to 2.4 where decorators were usable).

Funny. My experience with Python is about as old, and I have yet to
encounter them in code. I have seen (maybe even used) @staticmethod once
or twice over a decade and then as a magic keyword rather than a
"decorator pattern."


Marko



More information about the Python-list mailing list