Unlock Python's Pattern Matching, Combinatoric Iterators, SSH Scripting, and More

#652 – OCTOBER 22, 2024 VIEW IN BROWSER
The PyCoder’s Weekly Logo
Structural Pattern Matching in Python
In this tutorial, you’ll learn how to harness the power of structural pattern matching in Python. You’ll explore the new syntax, delve into various pattern types, and find appropriate applications for pattern matching, all while identifying common pitfalls.
REAL PYTHON

Combinatoric Iterators From itertools
The itertools module offers four combinatoric iterators that generate different combined outputs from one or more iterable. This post covers all of them: product, permutations, combinations, and combinations_with_replacement.
JUHA-MATTI SANTALA

Scrape Web Data at Scale with a 98.7% Success Rate
Extract all the data you need from any website without getting blocked with ZenRows’ Scraper API – a complete toolkit with premium proxies, anti-CAPTCHA, cloud-based scalable browsers, and more. Start your free trial now →
ZENROWSsponsor

CPython Internals: Your Guide to the Python 3 Interpreter
Unlock the inner workings of the Python language, compile the Python interpreter from source code, and participate in the development of CPython. Guido van Rossum, the creator of Python, says: “I can recommend CPython Internals to anyone who wants to get going with hacking on CPython” →
ANTHONY SHAW sponsor

SSH Scripting With Fabric and Python
Reading and writing files is a basic task that most software applications need to do, but what if you need to do that on remote machines? This tutorial introduces you to Fabric and how to connect over SSH in Python.
MIKE DRISCOLL

Python 3.14.0 Alpha 1 Released
CPYTHON DEV BLOG

Quiz: Structural Pattern Matching
REAL PYTHON

Quiz: Iterators and Iterables in Python
REAL PYTHON

Quiz: Python import: Advanced Techniques and Tips
REAL PYTHON


Articles & Tutorials


Mind Your Image Metadata
Most devices record a variety of metadata when generating images. While some of that information may be innocuous, you could end up exposing the GPS coordinates to your home if you aren’t careful. In this article, Stefanie provides a brief introduction to image metadata, and then shows you how to remove it with exif-stripper.
STEFANIEMOLIN.COM • Shared by Stefanie Molin

Open Source in Python and JavaScript 2024
Python vs. JavaScript: Which open-source community is leading the way? This analysis of 36,000 GitHub repositories explores the evolution of Python and JavaScript ecosystems, highlighting key trends and popular topics. Discover how open-source communities of Python and JavaScript have shaped the tech landscape.
PYCHALLENGER.COM • Shared by Erik Nogueira Kückelheim

Accelerate Edge Devices with High-Performance AI Power
Experience the power of Edge AI—delivering lightning-fast, real-time processing where it matters. Optimize your applications to push performance and accuracy beyond limits with Intel’s OpenVINO toolkit.
INTEL CORPORATIONsponsor

Using Type Hints for Multiple Return Types in Python
In this video course, you’ll learn how to define multiple return types using type hints in Python. This course covers working with single or multiple pieces of data, defining type aliases, and performing type checking using a third-party static type checker tool.
REAL PYTHON course

Narwhals: Expanding DataFrame Compatibility
How does a Python tool support all types of DataFrames and their various features? Could a lightweight library be used to add compatibility for newer formats like Polars or PyArrow? This week on the show, we speak with Marco Gorelli about his project, Narwhals.
REAL PYTHON podcast

Syntactic Sugar: Why Python Is Sweet and Pythonic
In this tutorial, you’ll learn what syntactic sugar is and how Python uses it to help you create more readable, descriptive, clean, and Pythonic code. You’ll also learn how to replace a given piece of syntactic sugar with another syntax construct.
REAL PYTHON

Entering Text in the Terminal Is Complicated
Julia asked some folks on Mastodon what they found confusing about working in a terminal. It turns out that entering text in the terminal is complicated. This post talks about why that is and how to understand it better.
JULIA EVANS

4 Lessons From Small Teams That Ship Fast
Software engineering provides a lot of leverage and small teams can do a large amount of work. This post talks about several common examples in the industry where a small group created a big product.
LEONARDO CREED

Perks of Being a Python Core Developer
Mariatta has been a Python Core Developer since 2017. If you want to know just what that means, this post talks about all the things she gets to do.
MARIATTA

Custom Dictionary Types in Pydantic
Pydantic lets you create custom types. This post talks about how to create a custom dictionary type using root models and Enums.
BRYAN ANTHONIO

How to Use Lambda Functions in Python
This article looks at some examples and best practices when using Lambda functions in Python.
FEDERICO TROTTA • Shared by AppSignal


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 →

ryp: R Inside Python
GITHUB.COM/WAINBERG

pyglove: Symbolic OO for Python
GITHUB.COM/GOOGLE

pipreqs: Generate requirements.txt Based on Imports
GITHUB.COM/BNDR

Bowler: Safe Code Refactoring for Modern Python
GITHUB.COM/FACEBOOKINCUBATOR

nanodjango: Full Django in a Single File
GITHUB.COM/RADIAC

📆🐍 Upcoming Python Events


Weekly Real Python Office Hours Q&A (Virtual)
October 23, 2024

October Oslo Python Meetup
October 24, 2024

PyCon APAC 2024
October 25 to October 27, 2024

PyCon Korea 2024
October 25 to October 28, 2024

PythonHo Conference 2024
October 26 to October 28, 2024

PythOnRio Meetup
October 26, 2024

Django Girls Aba
October 27, 2024

PyCon FR 2024
October 31 to November 3, 2024

PyCon Zimbabwe
October 31 to November 3, 2024
Happy Pythoning!
Copyright © 2024 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

Lots of PEPs, More Py3.13, HPy, and More

Sunday, October 20, 2024

Exploring the New Features of Python 3.13 #651 – OCTOBER 15, 2024 VIEW IN BROWSER The PyCoder's Weekly Logo Exploring the New Features of Python 3.13 Python 3.13 is here! Our regular guests, Geir

Immutable Types, DuckDB & Pyodide, Free Threaded, and More

Tuesday, October 8, 2024

Differences Between Python's Mutable and Immutable Types #650 – OCTOBER 8, 2024 VIEW IN BROWSER The PyCoder's Weekly Logo Differences Between Python's Mutable and Immutable Types In this

Python 3.13, pdb, Django Project Ideas, and More

Tuesday, October 1, 2024

Python 3.13: Cool New Features for You to Try #649 – OCTOBER 1, 2024 VIEW IN BROWSER The PyCoder's Weekly Logo Python 3.13: Cool New Features for You to Try In this tutorial, you'll learn about

Python 3.13, Rust Extensions, doctest, and More

Tuesday, September 24, 2024

Python 3.13 Preview: Free Threading and a JIT Compiler #648 – SEPTEMBER 24, 2024 VIEW IN BROWSER The PyCoder's Weekly Logo Python 3.13 Preview: Free Threading and a JIT Compiler Get a sneak peek at

NumPy where(), Python & R, HTTP Clients, and More

Tuesday, September 17, 2024

How to Use Conditional Expressions With NumPy `where()` #647 – SEPTEMBER 17, 2024 VIEW IN BROWSER The PyCoder's Weekly Logo How to Use Conditional Expressions With NumPy where() This tutorial

You Might Also Like

Want to earn easy money? Join Wynter.

Monday, January 6, 2025

Get paid to participate in research studies, customer interviews, and product demos. It's a way for you to give back to the community while having a low-key side hustle. ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

Daily Coding Problem: Problem #1660 [Hard]

Monday, January 6, 2025

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Adobe. You are given a tree with an even number of nodes. Consider each connection

🐧 2025 Won't Be the Year of the Linux Desktop — Everything Apple Could Release This Year

Monday, January 6, 2025

Also: Why I Switched to macOS After Two Decades, and More! How-To Geek Logo January 6, 2025 Did You Know The "root" in root beer is literal. The original recipes for root beer used the root

Welcome to 2025 & How to get good at anything creative

Monday, January 6, 2025

Polywork shutting down, the end of news, a year of curiosity, and a lot more in this week's issue of Creativerly. Creativerly Welcome to 2025 & How to get good at anything creative By Philipp

Infographic | The Global Semiconductor Industry, in One Giant Chart 📊

Monday, January 6, 2025

American companies account for 71.5% of the semiconductor industry's global market cap, despite most chips being manufactured elsewhere. View Online | Subscribe Presented by: Non-consensus

Spyglass Dispatch: Cutting Checks, Bending Knees & Kissing Rings

Monday, January 6, 2025

Sam Altman Reflects on a Chaotic Couple Years • 2025 Golden Globes • AI TVs • Uber & Lyft + Robotaxis • Thoughts on Dune: Prophecy The Spyglass Dispatch is a newsletter sent on weekdays featuring

I saw Samsung's 8K TVs at CES 2025

Monday, January 6, 2025

🛜 My off-grid internet solution; Wi-Fi 8; AI PCs; iOS 18.2 problems -- ZDNET ZDNET Tech Today - US January 6, 2025 Samsung Neo QLED 8K TV at CES I saw Samsung's 8K TV at CES 2025 - and these 3 new

GCP Newsletter #432

Monday, January 6, 2025

Welcome to issue #432 January 6th, 2025 News AI Official Blog Public Sector A Look Back at the AI Innovations Transforming the Public Sector - In 2024, Google AI made significant advancements in

⚡ THN Weekly Recap: Top Cybersecurity Threats, Tools and Tips [6 Jan]

Monday, January 6, 2025

Your one-stop-source for last week's top cybersecurity headlines. The Hacker News Every tap, click, and swipe we make online shapes our digital lives, but it also opens doors—some we never meant to

🚀 Ready to Level Up Your Cloud, 🤖 AI and DevOps Skills?

Monday, January 6, 2025

Access top-tier courses and labs right now! Hey there, Are you still wrestling with cloud deployments, AI integrations, or DevOps workflows? Maybe you're spending hours troubleshooting, or worse –