this post was submitted on 29 Aug 2023
33 points (100.0% liked)

Python

6393 readers
14 users here now

Welcome to the Python community on the programming.dev Lemmy instance!

πŸ“… Events

PastNovember 2023

October 2023

July 2023

August 2023

September 2023

🐍 Python project:
πŸ’“ Python Community:
✨ Python Ecosystem:
🌌 Fediverse
Communities
Projects
Feeds

founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 3 points 1 year ago (1 children)

I think a similar result might now be achievable with match statements

[–] [email protected] 0 points 1 year ago (1 children)

Match only just came out in Python 3.10, so it doesn't universally work. I think you implied that in your comment, so I wanted to add context for others.

[–] [email protected] 2 points 1 year ago

Oh, yes. I'm excited for the arrival of match. I've used it in rust and it's very nifty and Pythonic