/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

yasoob.me
| | aaronluna.dev
2.5 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.
| | simeonfranklin.com
1.4 parsecs away

Travel
| | Simeon Franklin - Web Developer
| | coady.github.io
2.9 parsecs away

Travel
| |
| | blog.kgriffs.com
22.8 parsecs away

Travel
| Implementing Python's magic string methods is tricky when it comes to Unicode characters and Py3K compatibility. I recently came across this problem in OpenStack, and wanted to share the strategy we are using to work around the issue.