#408 – FEBRUARY 18, 2020
View in Browser »
Find your perfect Python development setup with this review of Python IDEs and code editors. Writing Python using IDLE or the Python REPL is great for simple things, but not ideal for larger programming projects. With this course you’ll get an overview of the most common Python coding environments to help you make an informed decision.
REAL PYTHON video
Python does not natively support function overloading (having multiple functions with the same name.) See how you can implement and add this functionality using common language constructs like decorators and dictionaries. Related discussion on Hacker News.
Vettery is an online hiring marketplace that’s changing the way people hire and get hired. Ready for a bold career move? Make a free profile, name your salary, and connect with hiring managers from top employers today →
“Python currently requires that all decorators consist of a dotted name, optionally followed by a single call. This PEP proposes removing these limitations and allowing decorators to be any valid expression.” For example, this would become a valid decoration:
Adding more strict typing around the edges of a Python system for better error messages and design, using Pydantic and mypy. Interesting read!
The author of the profiling API improvements coming to Python 3.9 demonstrates the feature and explains how it was added to CPython.
How to make cool looking plotter art with NumPy, SciPy, and Matplotlib.
Articles & Tutorials
Brett Slatkin is a principal software engineer at Google and the author of the Python programming book Effective Python. Join us as we discuss Brett’s experience working with Python at Google, refactoring, and the challenges he faced when writing the second edition of his book.
“In this post, I will try to gather all my thoughts on the topic of automatic code formatting and why I personally don’t like this approach.”
Blockchain, the system behind Bitcoin, is immutable, unhackable, persistent and distributed, and has many potential applications. Check out ActiveState’s tutorial on how to build a blockchain in Python and Flask using a pre-built runtime environment →
Learn about managing resources for test execution, while building an asynchronous WebSocket client-server application that tracks them using Python and Sanic.
“Recently, I had a great interaction with one of my coworkers that I think is worth sharing, with the hope you may learn a bit about refactoring and Python.”
In the last tutorial in this series, you learned how to format string data using the string modulo operator. In this tutorial, you’ll see two more items to add to your Python string formatting toolkit. You’ll learn about Python’s string format method and the formatted string literal, or f-string.
“In this post I will walk through the process of building decent search functionality for a small to medium sized website using Django and Postgres.”
Useful Python tools for linking record sets and fuzzy matching on text fields. These concepts can also be used to deduplicate data.
Find and fix the bugs and code smells in your Python code with the popular tools for analyzing code.
A guide to comprehensions, generators and useful functions and classes.
Blackfire Profiler now supports Python, through a Public Beta. Profile Python code with Blackfire’s intuitive developer experience and appealing user interface. Spot bottlenecks in your code, and compare code iterations profiles.
Projects & Code
The Deadsnakes PPA project builds older and newer Python versions not found on a specific Ubuntu release. Originally based on the Debian source packages, they can still be built on Debian and not just on Ubuntu.
GITHUB.COM/JHERMANN • Shared by Jürgen Hermann
This was PyCoder’s Weekly Issue #408.
View in Browser »
[ Subscribe to 🐍 PyCoder’s Weekly 💌 – Get the best Python news, articles, and tutorials delivered to your inbox once a week >> Click here to learn more ]