Binary Data, Tail Calls, Pickles, and More

#672 – MARCH 11, 2025 VIEW IN BROWSER
The PyCoder’s Weekly Logo
Bytes Objects: Handling Binary Data in Python
In this tutorial, you’ll learn about Python’s bytes objects, which help you process low-level binary data. You’ll explore how to create and manipulate byte sequences in Python and how to convert between bytes and strings. Additionally, you’ll practice this knowledge by coding a few fun examples.
REAL PYTHON

Python Interpreter Adds Tail Calls
As part of the on-going performance improvement work, Python 3.14 is likely to include an optimization known as a “tail call”. Submitted changes are showing a 10% general speedup for some architectures. Read this article to learn the details.
DAROC ALDEN

Ship Integrations With 300+ APIs
Nango is an open source platform that lets you ship robust native integrations with 300+ APIs. We offer hundreds of pre-built integrations, customizable in code, and developer tooling purpose built for scaling and maintaining integrations. For humans and AI agents. Try Nango for free →
NANGO INC.sponsor

Exploiting Python Pickles
Python has a built-in mechanism for serializing and deserializing objects known as “pickling”. It comes with the caveat that you should never use it with untrusted data, it can lead to remote code execution.
DAVID HAMANN

Django Security Releases: 5.1.7, 5.0.13 and 4.2.20
DJANGO SOFTWARE FOUNDATION

Quiz: What Is the Python Global Interpreter Lock (GIL)?
REAL PYTHON


Articles & Tutorials


Python while Loops: Repeating Tasks Conditionally
In this tutorial, you’ll learn about indefinite iteration using the Python while loop. You’ll be able to construct basic and complex while loops, interrupt loop execution with break and continue, use the else clause with a while loop, and deal with infinite loops.
REAL PYTHON

Quiz: Python while Loops: Repeating Tasks Conditionally
REAL PYTHON

Positron is Now Available for Beta Testing
Positron is a next-gen data science IDE built by Posit PBC. It’s an extensible tool for writing python & exploring data, designed for reproducible research & publishing. Consider trying Positron & offering the devs feedback in this beta period.
POSITsponsor

Maybe Don’t Start With Unit Tests
Should you always start testing your code with unit tests? When does it make sense to look at integration or end-to-end testing as a first step instead? This week on the show, we speak with previous guest Eric Matthes about where to begin testing your code.
REAL PYTHON podcast

Open Graph Images in Django for Social Media
The Open Graph protocol specifies metadata for a webpage that gives third party sites information about the page. The most common use is to provide a preview image for social media sites. This post explains how to combine this into your Django projects.
AIDAS BENDORAITIS

Working With Python Polars
Welcome to the world of Polars, a powerful DataFrame library for Python. In this video course, you’ll get a hands-on introduction to Polars’ core features and see why this library is catching so much buzz.
REAL PYTHON course

Beating LinkedIn “Queens” With Python
LinkedIn publishes a daily logic puzzle called “Queens” that is a cross between a chess queen placement puzzle and Sudoku. This article shows how to write a Python script to solve the puzzles.
RODRIGO GIRÃO SERRÃO

ASCII Control Characters in My Terminal
Ever wonder about those ASCII control characters in your terminal, like CTRL-C to kill a program? Well wonder no more, Julia breaks down what they are and how they can be used.
JULIA EVANS

A Map of Python
View an interactive graph of the packages at PyPI, showing how many packages depend on each. The post also briefly describes the methodology for producing the chart.
FIEFDOM OF FILES

Pokémon With Reinforcement Learning
David and his colleagues have been using reinforcement learning to beat “Pokemon Red”, a single player JPRG from 1996. Learn about how they did it and see the code.
RUBENSTEIN, ET AL

Good Programmers Worry About Data Structures and Their Relationships
This opinion piece discusses a quote from Linus Torvalds, that good programmers worry about data structures and their relationships.
LEONARDO CREED

Which Python GUI Library Should You Use in 2025?
This post compares the Python GUI libraries available in 2025, including PyQT, PySide, TKinter, and Kivy.
MARTIN FITZPATRICK


Projects & Code


Brought to you by Real Python for Teamssponsor
Online Python training created by a community of experts. Give your team the real-world Python skills they need to succeed →

codegen-sdk: Scriptable Interface to Tree-Sitter
GITHUB.COM/CODEGEN-SH

phmutest: Troubleshoot Python Examples in Markdown
GITHUB.COM/TMARKTAYLOR

Variable Explorer in JupyterLab
GITHUB.COM/MLJAR • Shared by Piotr Plonski

time-machine: Travel Through Time in Your Tests
GITHUB.COM/ADAMCHAINZ

SciencePlots: Matplotlib Styles for Scientific Plotting
GITHUB.COM/GARRETTJ403

📆🐍 Upcoming Python Events


Weekly Real Python Office Hours Q&A (Virtual)
March 12, 2025

Python Weekend Abuja
March 13, 2025

Python Atlanta
March 13 to March 14, 2025

Python Weekend Abuja
March 15, 2025

Python Weekend Abuja
March 17, 2025
Happy Pythoning!
Copyright © 2025 PyCoder’s Weekly, All rights reserved.
You are receiving this email because you opted in on our website at pycoders.com
Our mailing address: DevCademy Media Inc. · #720-999 West Broadway, Vancouver BC V5Z 1K5, Canada

Unsubscribe | Update Email Address

Older messages

Underscore Naming, Flask-SQLAlchemy, Kivy, and More

Tuesday, March 4, 2025

Single and Double Underscore Naming Conventions in Python #671 – MARCH 4, 2025 VIEW IN BROWSER The PyCoder's Weekly Logo Single and Double Underscore Naming Conventions in Python In this video

Joining Strings, MongoDB in Django, Mobile Wheels, and More

Thursday, February 27, 2025

How to Join Strings in Python #669 – FEBRUARY 18, 2025 VIEW IN BROWSER The PyCoder's Weekly Logo How to Join Strings in Python In this tutorial, you'll learn how to use Python's built-in .

pyproject.toml, DuckDB, Flet, and More

Thursday, February 27, 2025

How to Manage Python Projects With `pyproject.toml` #670 – FEBRUARY 25, 2025 VIEW IN BROWSER The PyCoder's Weekly Logo How to Manage Python Projects With pyproject.toml Learn how to manage Python

NumPy, Compiling Python 1.0, BytesIO, and More

Friday, February 14, 2025

NumPy Techniques and Practical Examples #668 – FEBRUARY 11, 2025 VIEW IN BROWSER The PyCoder's Weekly Logo NumPy Techniques and Practical Examples In this video course, you'll learn how to use

Django vs FastAPI, Interacting With Python, Data Cleaning, and More

Tuesday, January 14, 2025

Django vs. FastAPI, an Honest Comparison #664 – JANUARY 14, 2025 VIEW IN BROWSER The PyCoder's Weekly Logo Django vs. FastAPI, an Honest Comparison David has worked with Django for a long time, but

You Might Also Like

Software Testing Weekly - Issue 261

Wednesday, March 12, 2025

New AI solutions for testing 👀 View on the Web Archives ISSUE 261 March 12th 2025 COMMENT Welcome to the 261st issue! I have nothing more to add to the genuinely great news that came out recently. I

JSK Daily for Mar 11, 2025

Tuesday, March 11, 2025

JSK Daily for Mar 11, 2025 View this email in your browser A community curated daily e-mail of JavaScript news How to Enforce Type Safety in FormData with TypeScript When working with the FormData

Shaking The Wasp’s Nest 🐝

Tuesday, March 11, 2025

How Gamergate swarmed into our online lives. Here's a version for your browser. Hunting for the end of the long tail • March 11, 2025 Today In Tedium: You probably have noticed, just like me, that

Daily Coding Problem: Problem #1714 [Easy]

Tuesday, March 11, 2025

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Google. You are given an N by N matrix of random letters and a dictionary of words. Find

Mapped | The State of Democracy Around the World 🌐

Tuesday, March 11, 2025

After a historic election year, we show the state of democracy worldwide as it declines to its lowest level in two decades. View Online | Subscribe | Download Our App NEW REPORT: The Age of Data >

Stories, Free Tool & CRM Template

Tuesday, March 11, 2025

Notion stories, smart tools, and a free template to organize your contacts 🔥 ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

LW 173 - How to become a Shopify Developer in 2025

Tuesday, March 11, 2025

How to become a Shopify Developer in 2025 ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ Shopify Development news and articles Issue 173 - 03/11

This free AI tool beats Perplexity

Tuesday, March 11, 2025

Ubuntu vs. Debian; The new HR; YouTube randomizer -- ZDNET ZDNET Tech Today - US March 11, 2025 webfeetgettyimages-10141124 DuckDuckGo's AI beats Perplexity in one big way - and it's free to

⚙️ AI bubble bursts (?)

Tuesday, March 11, 2025

Plus: We talk to the CEO of Read AI ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌