#656 – NOVEMBER 19, 2024
How to Debug Your Textual Application
TUI applications require a full terminal which most IDEs don’t implement. To make matters more complicated, TUIs use the same calls that many command line debuggers use, making it hard to deal with breakpoints. This article teaches you how to debug a Textual TUI program.
MIKE DRISCOLL
Dictionary Comprehensions: How and When to Use Them
In this tutorial, you’ll learn how to write dictionary comprehensions in Python. You’ll also explore the most common use cases for dictionary comprehensions and learn about some bad practices that you should avoid when using them in your code.
REAL PYTHON
What We Learned From Analyzing 20.2 Million CI Jobs
The Trunk Flaky Test public beta is open! You can now detect, quarantine, and eliminate flaky tests from your codebase. Discover insights from our analysis of 20.2 million CI jobs and see how Trunk can unblock pipelines and stop reruns. Access is free. Check out our getting started guide here →
TRUNK sponsor
Python Puzzles
A collection of Python puzzles. You are given a test file, and should write an implementation that passes the tests. All done in your browser.
GPTENGINEER.RUN
Announcing DjangoCon Europe 2025 in Dublin, Ireland
DJANGO SOFTWARE FOUNDATION
Flask 3.1 Released
PALLETSPROJECTS.COM
Quiz: Basic Input and Output in Python
REAL PYTHON
PEP 761: Deprecating PGP Signatures for CPython Artifacts (Approved)
PYTHON.ORG
Quiz: Using .__repr__()
vs .__str__()
in Python
REAL PYTHON
Discussions
Andrej Karpathy on Learning
Entertainment-based content may appear educational, but it is not effective for learning. To truly learn, one should seek out long-form, challenging content that requires effort and engagement. Educators should prioritize creating meaningful, in-depth content that fosters deep learning.
X.COM
Ideas: Turn shutil
Into a Runnable Module
PYTHON.ORG
Articles & Tutorials
Maintaining the Foundations of Python & Cautionary Tales
How do you build a sustainable open-source project and community? What lessons can be learned from Python’s history and the current mess that the WordPress community is going through? This week on the show, we speak with Paul Everitt from JetBrains about navigating open-source funding and the start of the Python Software Foundation.
REAL PYTHON podcast
The Practical Guide to Scaling Django
Most Django scaling guides focus on theoretical maximums. But real scaling isn’t about handling hypothetical millions of users – it’s about systematically eliminating bottlenecks as you grow. Here’s how to do it right, based on patterns that work in production.
ANDREW
Build Your Own AI Assistant with Edge AI
Simplify workloads and elevate customer service. Build customized AI assistants that respond to voice prompts with powerful language and comprehension capabilities. Personalized AI assistance based on your unique needs with Intel’s OpenVINO toolkit.
INTEL CORPORATION sponsor
The Polars vs pandas Difference Nobody Is Talking About
When people compare pandas and Polars, they usually bring up topics such as lazy execution, Rust, null values, multithreading, and quey optimisation. Yet there’s one innovation which people often overlook: non-elementary group-by aggregations.
MARCO GORELLI • Shared by Marco Gorelli
PyPI Introduces Digital Attestations to Strengthen Security
PyPI now supports digital attestations. This feature lets Python package maintainers verify the authenticity and integrity of their uploads with cryptographically verifiable attestations, adding an extra layer of security and trust.
SARAH GOODING • Shared by Sarah Gooding
Django’s Technical Governance Challenges, and Opportunities
On October 29th, two DSF steering council members resigned, triggering an election earlier than planned. This note explains what that means and how you can get involved.
DJANGO SOFTWARE FOUNDATION
We’ve Moved to Hetzner
This post from Michael Kennedy talks about moving Talk Python’s hosting environment from Digital Ocean to Hetzner. It details everything involved in a move like this.
TALK PYTHON
Formatting Floats Inside Python F-Strings
In this video course, you’ll learn how to use Python format specifiers within an f-string to allow you to neatly format a float to your required precision.
REAL PYTHON course
Package Compatibility With Free-Threading and Subinterpreters
This tracker tests the compatibility of the 500 most popular packages with Python 3.13’s free-threading and subinterpreter features.
PYTHON.TIPS • Shared by Vita Midori
Projects & Code
chonkie: CHONK Your Texts With Chonkie
GITHUB.COM/BHAVNICKSM
seqlogic: Sequential Logic Simulator
GITHUB.COM/CJDRAKE
venvstacks: Virtual Environment Stacks for Python
GITHUB.COM/LMSTUDIO-AI
terminal-tree: Experimental Filesystem Navigator in Textual
GITHUB.COM/WILLMCGUGAN
chdb: An in-Process OLAP SQL Engine
GITHUB.COM/CHDB-IO
Events
Weekly Real Python Office Hours Q&A (Virtual)
November 20, 2024
REALPYTHON.COM
PyData Bristol Meetup
November 21, 2024
MEETUP.COM
PyLadies Dublin
November 21, 2024
PYLADIES.COM
PyConAU 2024
November 22 to November 27, 2024
PYCON.ORG.AU
Plone Conference 2024
November 25 to December 1, 2024
PLONECONF.ORG
Code, Configure and Deploy a Market Making Bot
November 25, 2024
MEETUP.COM
PyCon Wroclaw 2024
November 30 to December 1, 2024
PYCONWROCLAW.COM
Happy Pythoning!
This was PyCoder’s Weekly Issue #656.
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 ]
Source:: PyCoder’s