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

⚙️ LLMs fail new AGI test

Wednesday, March 26, 2025

Plus: The 5 taboos Silicon Valley broke ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌

📸 I Ditched Google Photos and Built My Own Photo Server — macOS Is Finally Becoming a Legit Gaming Platform

Wednesday, March 26, 2025

Also: DJI Osmo Mobile 7p Review, and More How-To Geek Logo March 26, 2025 Did You Know Norway has won more gold medals at the Winter Olympic Games than any other country. 📶 Gotta Go Fast Happy

BetterDev #277 - When You Deleted /lib on Linux While Still Connected via SSH

Tuesday, March 25, 2025

Better Dev #277 Mar 25, 2025 Hi all, Last week, NextJS has a new security vulnerability, CVE-2025-29927 that allow by pass middleware auth checking by setting a header to trick it into thinking this is

JSK Daily for Mar 25, 2025

Tuesday, March 25, 2025

JSK Daily for Mar 25, 2025 View this email in your browser A community curated daily e-mail of JavaScript news Easily Render Flat JSON Data in JavaScript File Manager The Syncfusion JavaScript File

Want to create an AI Agent?

Tuesday, March 25, 2025

Tell me what to build next ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

LangGraph, Marimo, Django Template Components, and More

Tuesday, March 25, 2025

LangGraph: Build Stateful AI Agents in Python #674 – MARCH 25, 2025 VIEW IN BROWSER The PyCoder's Weekly Logo LangGraph: Build Stateful AI Agents in Python LangGraph is a versatile Python library

Charted | Where People Trust the Media (and Where They Don't) 🧠

Tuesday, March 25, 2025

Examine the global landscape of public trust in media institutions. Confidence remains low in all but a few key countries. View Online | Subscribe | Download Our App Presented by: BHP >> Read

Daily Coding Problem: Problem #1728 [Medium]

Tuesday, March 25, 2025

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Square. Assume you have access to a function toss_biased() which returns 0 or 1 with a

LW 175 - Shopify uses AI to Prepare Stores for Script Editor Deprecation

Tuesday, March 25, 2025

Shopify uses AI to Prepare Stores for Script Editor Deprecation ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ Shopify Development news and

Reminder: Microservices rules #7: Design loosely design-time coupled services - part 1

Tuesday, March 25, 2025

You are receiving this email because you subscribed to microservices.io. Considering migrating a monolith to microservices? Struggling with the microservice architecture? I can help: architecture