Issue #491

Structural Pattern Matching, Generator Expressions, Python Steps Forward, and More

Sept. 21, 2021

Structural Pattern Matching, Generator Expressions, Python Steps Forward, and More
#491 – SEPTEMBER 21, 2021 VIEW IN BROWSER
The PyCoder’s Weekly Logo
Structural Pattern Matching in Python 3.10
“Python 3.10, which is due out in early October 2021, will include a large new language feature called structural pattern matching. This article is a critical but (hopefully) informative presentation of the feature, with examples based on real-world code.”
BEN HOYT

Build a Personal Diary With Django and Python
In this beginner-friendly tutorial, you’ll build a personal diary app in Django. You’ll use the strengths of the Django web framework and learn the basics of web development with Python.
REAL PYTHON

Get Deeper Insights Into Your Python Code-Level Performance and Reduce End-User Latency
Datadog APM enables you to detect the methods that consume the most CPU, memory, and time under real work loads allowing you to optimize code in real-time to reduce end-user latency and cloud provider costs. Optimize your Python app performance at any scale. See for yourself with a free trial →
DATADOGsponsor

(Not) Unravelling Generator Expressions
What does that look like if you take away the Python “magic” of generator expressions and unravel them down to their core Python semantics?
BRETT CANNON

Python Anti-Pattern: Using a Mutable Default Value as an Argument
A debugging post-mortem.
VALI VOICU

Better PyPy JIT Support for Auto-Generated Python Code
CARL FRIEDRICH BOLZ-TEREICK

Debugging by Starting a REPL at a Breakpoint Is Fun
JULIA EVANS

Django 4.0 to Get a Built-in Redis Cache Backend
GITHUB.COM/DJANGO


Discussions


quit(), exit(), sys.exit(), os._exit(): The Differences and Do They Matter?
REDDIT

I Think I Have Installed a Dodgy Pip Package…
REDDIT


Python Jobs


Senior Software Engineer (Washington D.C.)
QUORUM

Senior Backend Software Engineer (Remote)
CLAY

More Python Jobs >>>


Articles & Tutorials


Programming Languages: Python Is on the Verge of Another Big Step Forward
Python could soon take first place in one more programming language popularity ranking: “Python has never been so close to the number 1 position of the TIOBE index,” writes Paul Jansen, chief of Tiobe software. “It only needs to bridge 0.16% to surpass C. This might happen any time now. If Python becomes number 1, a new milestone has been reached in the TIOBE index. Only 2 other languages have ever been leading the pack so far, i.e. C and Java.”
LIAM TUNG

Pass by Reference in Python: Best Practices
In this course, you’ll explore the concept of passing by reference and learn how it relates to Python’s own system for handling function arguments. You’ll look at several use cases for passing by reference and learn some best practices for implementing pass-by-reference constructs in Python.
REAL PYTHON course

Rev APIs Solve All of Your Speech-to-Text Needs
Rev.ai is the most sophisticated automatic speech recognition in the world. Our speech-to-text APIs are more accurate, easier to use, and have less bias than competitors like Google, Amazon, and Microsoft. Try Rev.ai free for five hours right now →
REV.AIsponsor

Using the “and” Boolean Operator in Python
In this step-by-step tutorial, you’ll learn how Python’s “and” operator works and how to use it in your code. You’ll get to know its special features and see what kind of programming problems you can solve by using “and” in Python.
REAL PYTHON

Validating and Formatting Phone Numbers in Python With phonenumbers
This article explains how to validate phonenumbers using the phonenumbers library. It also shows how to extract the meta information (such as carrier, geographical) from a phone number.
RUSLAN HASANOV • Shared by Ruslan Hasanov

How to Send Emails With Python
Learn how to send emails with Python using the smtplib and email modules. You’ll also learn how to send attachments.
MIKE DRISCOLL

DataStax Astra DB – Built on Apache Cassandra. Get 80 Gigabytes of Storage Free Every Month
Need global scale on a startup budget? DataStax Astra DB is a multi-cloud DBaaS built on Apache Cassandra. Painless APIs, always free for developers, and no credit card required.
DATASTAXsponsor

Introduction to Django slippers: Reusable Components
Slippers aims to augment Django’s template language with convenience features for writing reusable components.
MITCHEL CABULOY

How I Patched Python to Include Ruby’s Inline “if”
What the author learned from adding “else-less” functionality to Python, as inspired by Ruby.
MIGUEL BRITO

Language Translation and OCR With Tesseract and Python
ADRIAN ROSEBROCK

Using OpenBSD’s pledge and unveil Syscalls From Python
CHRIS WELLONS

Improving Python Dependency Management With pipx and Poetry
CEDA EI


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 →

eacc: Minimalist but Flexible Lexer/Parser Tool in Python
GITHUB.COM/IOGF

python-goto: Function Decorator That Rewrites the Bytecode to Enable goto in Python
GITHUB.COM/SNOACK

django-cacheops: ORM Cache With Automatic Granular Event-Driven Invalidation
GITHUB.COM/SUOR

django-upgrade: Automatically Upgrade Your Django Projects
GITHUB.COM/ADAMCHAINZ

Learn Python Through Nursery Rhymes & Fairy Tales (Kickstarter)
SHARI ESKENAS

slippers: Build Reusable Components in Django Without Writing a Single Line of Python
GITHUB.COM/MIXXORZ

📆🐍 Upcoming Python Events


⋅ Real Python Office Hours (Virtual) September 22, 2021

⋅ PyDelhi User Group Meetup September 25, 2021

⋅ PythOnRio Meetup September 25, 2021

⋅ Introduction to the Python Programming Language (In Persian) September 28, 2021

⋅ Dominican Republic Python User Group September 28 to September 29, 2021
Happy Pythoning!
Copyright © 2021 PyCoder’s Weekly, All rights reserved.