match/case, Mutable Python Strings, Cleaning Text With Pandas, and More

#460 – FEBRUARY 16, 2021 VIEW IN BROWSER
The PyCoder’s Weekly Logo
PEP 634: Structural Pattern Matching (match/case)
A few links related to PEP 634, which will add structural pattern matching to Python via a new match/case statement: PEP 634 (Specification), PEP 635 (Motivation and Rationale), PEP 636 (Tutorial & Examples)
PYTHON.ORG

Python Strings Are Immutable, but Only Sometimes
It turns out you can mutate a string in Python… sort of.
AUSTIN HENLEY

Introducing App Platform, a New PaaS That Gets Your Apps to Market, Faster
Get your apps to market faster with DigitalOcean’s App Platform. Build, deploy, and scale apps quickly using a simple, fully managed solution. We’ll handle the infrastructure, app runtimes and dependencies, so you can push code to production in just a few clicks. Get started w/ $100 free credit →
DIGITAL OCEANsponsor

Making a Difficult Data Analysis Question Easy With Pandas
A great strategy to use when faced with a tricky data analysis problem is to reshape the dataset into a format that turns it into an easy problem. In this article, you’ll look at an example involving a simple calculation and extensive reshaping in pandas.
MARTIN • Shared by Martin

Efficiently Cleaning Text With Pandas
In this article, you’ll see some examples of cleaning text fields in a large data file and learn several strategies for efficiently cleaning unstructured text fields using Python and pandas.
CHRIS MOFFITT

Building Rich Terminal Dashboards
Learn how to use the Rich CLI library’s new terminal dashboard feature.
WILL MCGUGAN

Python Microservices With gRPC
Learn how to build a robust and developer-friendly Python microservices infrastructure using gRPC and Kubernetes. You’ll also explore advanced topics such as interceptors and integration testing.
REAL PYTHON

Python 3.7.10 and 3.6.13 Security Updates Now Available
CPYTHON DEV BLOG


Discussions


The New match/case Statement Has People Talking
Numerous people opine on Twitter about the new match/case statement expected in Python 3.10. While some folks welcome the powerful new syntax, others lament the syntax bloat and potential for confusion they see in the new feature.
RUSSELL KEITH-MAGEE & BRANDON RHODES

Pattern Matching Accepted for Python
Discussion of last week’s acceptance of PEP 634.
HACKER NEWS


Python Jobs


How Strong Is Your Resume?sponsor
Get a free, confidential review from a resume expert →

Senior Backend Developer (Berlin, Germany)
ORDERBIRD AG

Advanced Python Engineer (Newport Beach, CA, USA)
RESEARCH AFFILIATES

Principal Python Engineer (Remote)
EAB

Web developer (Berlin, Germany)
DER FREITAG MEDIENGESELLSCHAFT MBH & CO. KG

More Python Jobs >>>


Articles & Tutorials


Python cryptography, Rust, and Gentoo
A recent update to the Python cryptography library, which has started replacing some of its C code with Rust, stirred up some controversy among users and library maintainers.
JAKE EDGE

Unraveling Python’s Syntax to Its Core With Brett Cannon
Brett is a Python core developer and he’s been working on a series of articles where he is unraveling the syntax of Python. His series is a fantastic resource for those wanting to learn how Python is structured and works at its core.
REAL PYTHON podcast

Python Tricks: A Buffet of Awesome Python Features
Discover Python’s best practices with simple examples and start writing even more beautiful + Pythonic code. “Python Tricks: The Book” shows you exactly how. You’ll master intermediate and advanced-level features in Python with practical examples and a clear narrative. Get the book + video bundle 33% off →
DAN BADERsponsor

A Complete Notifications System for Your Python App
Send notifications from your Python app in just a few lines of code. One API to reach users over Email, SMS, Push, Slack, and more. Design notifications in a drag & drop editor, manage user preferences, and troubleshoot quickly. Get started for free.
COURIERsponsor

The PEP 8 Song
A songification of that most holiest of Python Enhancement Proposals.
LEON SANDØY video

Pandas Sort: Your Guide to Sorting Data in Python
Learn how to sort data in a pandas DataFrame using the pandas sort functions sort_values() and sort_index().
REAL PYTHON

An Interesting Issue Around Using is With a Literal in Python
When you use is to compare a value to a literal, such as the empty string '', you’ll see a SyntaxWarning that tells you not to use is that way, but your code may still work as intended. Learn why your code still works, and why you really should heed the warning.
CHRIS SIEBENMANN

Creating PyQt Layouts for GUI Applications
In this step-by-step course, you’ll learn how to use PyQt layouts to arrange and manage the graphical components on your GUI applications. With the help of PyQt’s layout managers, you’ll be able to create polished and professional GUIs with minimal effort.
REAL PYTHON course

Python “Tricks” I Can Not Live Without
Learn some fun and useful Python “tricks” that can help you write cleaner and more maintainable code.
SEBASTIAN OPAŁCZYŃSKI

Speeding Up Python Code With Nim
You need to speed up some Python code, but don’t know C and don’t have time to learn it. Enter Nim!
WULF

Adding Social Authentication to Flask
Learn how to add social authentication with GitHub and Twitter to a Flask application.
AMAL SHAJI • Shared by Amal Shaji

Earley Parser
Here’s an article for the computer science-minded folks. Learn how to create an Earley parser from scratch in Python, which allows you to use any context-free grammar to parse a string and recover all of the parse trees that correspond to the grammar from the generated parse forest. Heady stuff, I know!
RAHUL GOPINATH


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 →

dependabot-bot: Automatically Merge PRs From Dependabot When They Meet Certain Criteria
GITHUB.COM/TONYBALONEY

trustme: TLS Certs for the Discerning Tester
GITHUB.COM/PYTHON-TRIO

sdf: Simple SDF Mesh Generation in Python
GITHUB.COM/FOGLEMAN

Spokestack: Library for Voice Applications
GITHUB.COM/SPOKESTACK • Shared by Will Rice

NAVis: Neuron Analysis and Visualization
GITHUB.COM/SCHLEGELP • Shared by Philipp Schlegel

geovoronoi: Create and Plot Voronoi Regions Inside Geographic Areas
GITHUB.COM/WZBSOCIALSCIENCECENTER • Shared by Markus Konrad

📆🐍 Upcoming Python Events


⋅ Real Python Office Hours (Virtual) February 17, 2020

⋅ WeAreDevelopers Live (Virtual) February 17 – 18, 2021

⋅ PyCascades 2021 (Virtual) February 19 – 21, 2021

⋅ Python Web Conference 2021 (Virtual) February 22 – 26, 2021

⋅ PyCon 2021 (Virtual) May 12 – 18, 2021

⋅ DjangoCon Europe 2021 (Virtual) June 2 – 6, 2021
Happy Pythoning!
Copyright © 2021 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

Python Integers Deep Dive, Friendly Tracebacks, Property-Based Testing, and More

Tuesday, February 9, 2021

How Python Integers Work #459 – FEBRUARY 9, 2021 VIEW IN BROWSER The PyCoder's Weekly Logo How Python Integers Work Python's integer datatype is pretty different from most other languages

pandas Memory Explosions, Python Performance, a Case Against OOP, and More

Tuesday, February 2, 2021

Finding and Fixing an Unexpected Memory Explosion in Pandas #458 – FEBRUARY 2, 2021 VIEW IN BROWSER The PyCoder's Weekly Logo Finding and Fixing an Unexpected Memory Explosion in Pandas Storing

Automating Excel, Tracing the Python GIL, Python for Non-Developers, and More

Tuesday, January 19, 2021

Automating Excel File Creation and Distribution With Pandas And Outlook #456 – JANUARY 19, 2021 VIEW IN BROWSER The PyCoder's Weekly Logo Automating Excel File Creation and Distribution With Pandas

Pythonic Exercises, FastAPI App Structure, Data Visualization With Dash, and More

Tuesday, January 12, 2021

Advent of Code 2020 "Pytudes" #455 – JANUARY 12, 2021 VIEW IN BROWSER The PyCoder's Weekly Logo Advent of Code 2020 “Pytudes” Google researcher Peter Norvig goes through a suite of short

Ditching Excel for Python, How Python Attributes Work, IP Addresses in Python, and More

Tuesday, January 5, 2021

Ditching Excel for Python: Lessons Learned From a Legacy Industry #454 – JANUARY 5, 2021 VIEW IN BROWSER The PyCoder's Weekly Logo Ditching Excel for Python: Lessons Learned From a Legacy Industry

You Might Also Like

Re: Tomorrow's Password Class: How to sign up!

Thursday, February 27, 2025

Hi there, Do you reuse passwords? Do you struggle to remember unique passwords across accounts? Have you tried setting up a password manager but found it to be a hassle? You might not realize how

Documenting Event-Driven Architecture with EventCatalog and David Boyne

Thursday, February 27, 2025

If you're wondering on how to document Event-Driven Architecture, or you don't know that you should, I have something for you. We discussed with David Boyne, why data governance practices and

wpmail.me issue#708

Thursday, February 27, 2025

wpMail.me wpmail.me issue#708 - The weekly WordPress newsletter. No spam, no nonsense. - February 27, 2025 Is this email not displaying correctly? View it in your browser. News & Articles Shaping

Hackers stole 1Password logins - here's how

Thursday, February 27, 2025

Amazon AI races ahead; Research agents; Smartwatch trade-in -- ZDNET ZDNET Tech Today - US February 27, 2025 thief stealing passwords Hackers stole this engineer's 1Password database. Could it

New Golang-Based Backdoor Uses Telegram Bot API for Evasive C2 Operations

Thursday, February 27, 2025

THN Daily Updates Newsletter cover ⚡ LIVE WEBINAR ➟ Building Resilient Identity: Reducing Security Debt in 2025 Attacks Evolve, So Can Your Defenses--Learn How to Mitigate Risk and Optimize Identity

Reminder: What developer productivity metrics actually measure

Thursday, February 27, 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

⚡ THN Weekly Recap: Google Secrets Stolen, Windows Hack, New Crypto Scams & More

Thursday, February 27, 2025

From Google espionage to crypto scams, this week's Cyber Recap uncovers it all—read more now ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌

Guest-post: Open-source Python Development Landscape

Thursday, February 27, 2025

30 must-know tools for Python development ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

⚙️ IBM's AI can reason, now

Thursday, February 27, 2025

Plus: A bit of AI legislation ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌

Post from Syncfusion Blogs on 02/17/2025

Thursday, February 27, 2025

New blogs from Syncfusion ® How to Add a Context Menu to .NET MAUI ListView? By Jayaleshwari N This blog explains how to implement a context menu in the .NET MAUI ListView control with code examples.