Oh huh... 3.11 has `except*` ```try: whatever(...
# random
b
Oh huh... 3.11 has
except*
Copy code
try:
    whatever()
except* OSError as e:
    pass
w
… exception groups?
b
My reaction exactly
w
🤷‍♂️
Huh.
I immediately thought that was a spread function for exceptions
c
They seem pretty neat!

https://www.youtube.com/watch?v=Lfe2zsGS0Js

p
Yes! Now python can collect more than one error in a standard way so you can see all of the errors instead of just the last one. 🙂 It's a beautiful thing that I can't wait to use... Just need to get rid of python 3.6, 3.8, and so on so I can get to 3.11 🙂
b
Ahh async! Makes sense
w
I was more huh’ing at the syntax…
error*
? Is that a reference used elsewhere that I’m not aware of?
Or just more of a backwards compat thing?
My evening reading in front of a fire with a brandy https://peps.python.org/pep-0654/
b
Mmm airplane reading for tomorrow
p
If podcasts are your thing: I first heard about
except*
on the Talk Python to Me podcast: https://talkpython.fm/episodes/show/388/python-3.11-is-here-and-its-fast Oddly enough that episode is just after the one about pants 😛: https://talkpython.fm/episodes/show/387/build-all-the-things-with-pants-build-system
w
Ahh, okay, so its Benjy’s fault. Got it
🧌 1