https://pantsbuild.org/ logo
#random
Title
# random
b

bitter-ability-32190

04/19/2023, 6:12 PM
Oh huh... 3.11 has
except*
Copy code
try:
    whatever()
except* OSError as e:
    pass
w

wide-midnight-78598

04/19/2023, 6:32 PM
… exception groups?
b

bitter-ability-32190

04/19/2023, 6:33 PM
My reaction exactly
w

wide-midnight-78598

04/19/2023, 6:34 PM
🤷‍♂️
Huh.
I immediately thought that was a spread function for exceptions
c

careful-address-89803

04/19/2023, 8:07 PM
They seem pretty neat!

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

p

proud-dentist-22844

04/19/2023, 8:09 PM
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

bitter-ability-32190

04/19/2023, 8:10 PM
Ahh async! Makes sense
w

wide-midnight-78598

04/19/2023, 10:43 PM
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

bitter-ability-32190

04/19/2023, 10:47 PM
Mmm airplane reading for tomorrow
p

proud-dentist-22844

04/20/2023, 1:34 AM
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

wide-midnight-78598

04/20/2023, 1:35 AM
Ahh, okay, so its Benjy’s fault. Got it
🧌 1