/explore

Click through on any links that interest you or select the planets on the right to continue exploring the Outer Web.
You are here

ykarroum.com
| | florimond.dev
3.5 parsecs away

Travel
| | A memo on implementing parametrized decorators whose default behavior doesn't require empty parentheses.
| | thepythoncorner.com
4.0 parsecs away

Travel
| | Hi Guys, in today's article, we will discuss Python decorators. Decorators are not a python-only feature, they exist in many other languages and are important if you aim to write clean, professional, and reusable code. A decorator is a function that extends other functions that are passed as a parameter, adding new features without the need of changing their code. This can seem a little magical to a beginner's eye, but it's really easy actually because all you have to do is to create a function (the so-called "decorator function") that takes another function as an argument (the "decorated function")...
| | blog.mathieui.net
3.0 parsecs away

Travel
| |
| | initialcommit.com
19.7 parsecs away

Travel
| In this article, you'll get a detailed look at how to use the sum function in Python, as well as how it differs from the plus sign operator.