Python Bytes 101: Asterisks, Web Frameworks, and More
Python Bytes Episode 101: Deep Dives and Innovation
In this milestone 101st episode, hosts Michael Kennedy and Brian Atkin dive into the nuanced power of Python syntax, explore new high-performance web frameworks, and discuss the intersection of open-source software and academic research.
The Power of Asterisks
An in-depth look at an article by Trey Hunter reveals the versatile power of the humble asterisk in Python. Beyond simple multiplication or exponentiation, asterisks serve as powerful tools for:
* Parameter unpacking in function calls.
* Creating and merging dictionaries in Python 3.6+.
* Enforcing keyword-only arguments in function signatures for cleaner, more predictable APIs.
The Rise of Responder
Kenneth Reitz’s new web framework, Responder, is making waves by prioritizing developer experience and performance. Built on top of UVicorn, it offers a modern approach to web development:
* Async/Await native support for high concurrency.
* Seamless integration of WSGI applications as sub-routes.
* A clean API that simplifies testing and request handling compared to traditional frameworks like Flask.
Open Science and Python
Discussion turned to the Nobel Prize in Economics, highlighting how laureate Paul Romer utilizes Jupyter Notebooks to ensure transparency and reproducibility in his research. Romer stresses the need for open-source tools over proprietary software in academia:
"The more I learn about proprietary software, the more I worry that objective truth might perish from the earth."
Learning and Maker Culture
The conversation covered excellent resources for data science, including the pythonprogramming.in portal, which provides concise, code-first tutorials for Pandas, Matplotlib, and TensorFlow. Finally, the hosts explored the MakerPhone, a DIY programmable smartphone that encourages users to learn soldering and Python programming, bridging the gap between hardware and software education.