

Python Tooling - Hynek Schlawack
54 snips Nov 27, 2024
Hynek Schlawack, a Python core contributor known for his work on attrs, discusses his active role in the Python community and upcoming enhancements in Python 3.13. He dives into the complexities of multithreading and the challenges of managing Django projects as they grow. The conversation also highlights innovative dependency management using the 'services' package and the intricacies of video creation for YouTube. Finally, Hynek explores the future of Python packaging, emphasizing community feedback and the ongoing evolution of the language.
AI Snips
Chapters
Books
Transcript
Episode notes
The Great Password Reset
- Hynek Schlawack changed every password in his company due to a Django ORM bug with composite primary keys.
- The ORM didn't warn him that it only uses the last defined primary key.
Standard Library Philosophy
- Python's standard library prioritizes features that guide better code design over niche tools like web servers.
- Data classes, inspired by
attrs
, exemplify this by promoting class usage over dictionaries.
Data Validation
- Keep data validation separate from your core business logic.
- Transform incoming data and database outputs into pure, validated objects before use.