Notes on Python Decorators

The GoF grouped some well-known design patterns under 3 categories. Under the structural patterns you can find The Decorator Pattern. A design pattern that allows us to change, or add, objects functionality at run-time, in a statically typed object-oriented programming languages.

Naming aside, Python Decorators are a different thing. Even though we get some similar things, and some times we might feel that they are the same, I think that not many people stress this enough: Python Decorators are NOT an implementation of the decorator pattern. Python decorators allow us to inject new behavior in an already existent functionality, at definition time.

About


Hello, there!

I’m so happy to have you here, in my little place on the internet.

A few words about myself

You may have infer my name by now, but know that’s there’s no need for formalities in here, so feel free to call me miro. I’m a software developer, with a strong back-end background, from Argentina (with a strong will to relocate 😉).

When I’m not on the computer I mainly enjoy doing this few things: