Weekly newsletter about leadership, technology, books and anything else we felt compelled to share with others
Year 4 - Edition 30
A Fistful of Links is a weekly newsletter about leadership, technology, books, and anything else we felt compelled to share with others, brought to you by Og Maciel and Mirek Długosz.
Python behind the scenes: how the Python import system works
By Victor Skvortsov
The Python import system doesn’t just seem complicated – it is complicated. So even though the documentation is really good, it doesn’t give you the full picture of what’s going on. The only way to get such a picture is to study what happens behind the scenes when Python executes an import statement. And that’s what we’re going to do today.
As a data scientist who is spending more time on software engineering, I was recently forced to confront an ugly gap in my knowledge of Python: concurrency. To be honest, I never completely understood how the terms async, threads, pools and coroutines were different and how these mechanisms could work together. (…) This blog post documents what I learned along the way so others can benefit, too.
A 5-Point Framework For Python Performance Management
By Steven F. Lott
In this post I want to outline a five-step process to managing performance testing. I think it’s helpful for Python applications, where performance is often brought up, but it applies widely. We’ll start the process with a definition of some use cases, then formalize them in Gherkin, review them with stakeholders, implement them in Python, and finally, make the whole thing an ongoing part of our deployment process.
How Performance Became the Nemesis of the Secure Python Code
By Dima Kotik
Python is great because its core philosophy of simplicity meets this market reality: engineering hours are more expensive than CPU peta-cycles. (…) However, the current Python innovation arc tilts against this core strength. We have drifted away from simple and readable code. And it’s diluting the security of Python applications.
When you’re starting out with Django, you can introduce subtle bugs due to lack of knowledge. (…) Django contains a lot of great code that you would have to write for every web application and reinvent the wheel, but when you don’t fully understand the framework, you can write code with unintended effects.