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

📟 Turning Old Tech Into Keychains — How to Use Android's Theft Protection Feature

Tuesday, October 22, 2024

Also: Modern Video Games Are Too Easy, and More! How-To Geek Logo October 22, 2024 Did You Know When Galoob released the "Game Genie" product in the 1990s to allow players on the Nintendo

Daily Coding Problem: Problem #1586 [Hard]

Tuesday, October 22, 2024

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Airbnb. An 8-puzzle is a game played on a 3 x 3 board of tiles, with the ninth tile

Mapped | The Home Price-to-Income Ratio of Large U.S. Cities 🏘️

Tuesday, October 22, 2024

The top five large US cities have a home price-to-income ratio more than double the national average of 4.7. View Online | Subscribe | Download Our App Presented by Hinrich Foundation NEW REPORT:

Ushering In

Tuesday, October 22, 2024

Netflix's Theatrical Strategy • Blade Runner vs. Elon Musk • Disney vs. App Store • Anthropic's AI PC Control • AirPods Hearing Boost Ushering In Netflix's Theatrical Strategy • Blade

Speeding up with SIMD and Go assembly

Tuesday, October 22, 2024

Plus some Go code generation magic, test parallelism, and working with Excel spreadsheets. | #​528 — October 22, 2024 Unsub | Web Version Together with Ardan Labs Go Weekly A Taste of Go Code Generator

LW 155 - Optimizing Shopify Themes for Long Product Descriptions

Tuesday, October 22, 2024

Optimizing Shopify Themes for Long Product Descriptions ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ Shopify Development news and articles

Secure Your Election 2024 eBook at the Best Value Today ⏰

Tuesday, October 22, 2024

Stay informed with our visual guide to the US Presidential Election—exclusively for VC+ members, along with additional updates. View email in browser Now Available: The Visual Guide to the US Election

Startups of The Year: How To Vote

Tuesday, October 22, 2024

Top Tech Content sent at Noon! How the world collects web data Read this email in your browser How are you, @newsletterest1? 🪐 What's happening in tech today, October 22, 2024? The HackerNoon

JS0/JSSugar; converting CommonJS to ESM; top-level await in Node.js; Node.js v23.0.0; Bun v1.1.31;

Tuesday, October 22, 2024

We have 8 links for you - Stay up-to-date on JavaScript and tools Discussing JS0/JSSugar docs.google.com We linked to the JS0/JSSugar slides in last week's issue. We now have reactions to those