/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

florimond.dev
| | www.pmatiello.me
2.6 parsecs away

Travel
| | Implementing interface contracts in Python with class decorators
| | martinheinz.dev
4.3 parsecs away

Travel
| | Even if you write clear and readable code, even if you cover your code with tests, even if you are very experienced developer, weird bugs will inevitab...
| | jimpurbrick.com
2.7 parsecs away

Travel
| | [AI summary] The article discusses the use of Python decorators for handling web requests, their interaction with introspection, and methods to preserve function metadata while maintaining decorator visibility.
| | aaronluna.dev
14.6 parsecs away

Travel
| Decorators can be a daunting topic when first encountered. While the Zen of Python states "There should be one- and preferably only one -obvious way to do it", there are many, equally valid ways to implement the same decorator. These different methods can be categorized as either function-based, class-based, or a hybrid of both. In this post I will explain the design and behavior of Python decorators and provide examples of decorators that I frequently use in my own code.