YEAR IN REVIEW: Social/health
- Very bad #MentalHealth, including a real mid-life crisis (not done)
- Ate w/ strangers indoors >0 times, thanks to nasal sprays, leading to…
- A relatively fun, social #PyCon2025
- Got a li'l closer to being a full-time #pescatarian
- Incredible amount of family […]
Join us tomorrow at Python Ireland’s PyCon 2025 for a talk with Nathaniel Ford on Bayesian workflows with PyMC.
Learn iterative refinement, robust SEM modeling, and the craft behind meaningful statistical discovery.
#PyCon2025 #PyMC #DataScience
仕事に行く途中
( ✌︎'ω')✌︎
#pyconjp #pycon2025 #pyconjp2025
🌏 Coming to PyCon AU from overseas?
If you're traveling from outside Australia, now is the time to get your visa sorted!
We’ve just published updated information to help you prepare your visa application.
👉 2025.pycon.org.au/attend/inter...
#PyConAU #PyCon2025 #PyCon #Python
Everyone’s loving the avatars @pycon.us — so I had to make one for our amazing Devs-in-Residence @python.org too. This photo? Epic.
@lukasz.langa.pl @miketheman.com @sethmlarson.dev #PyConUS #pycon2025
🐍 Road to PyCon Bologna 🇮🇹
#PyCon2025 #Python #Bologna #TechConference #Community
Made with #python #numpy #matplotlib #numba
Common gotcha: trying to raise one Exception from an ExceptionGroup loses a bunch of the traceback and context! Treat ExceptionGroups like ExceptionGroups, not Exceptions.
ExceptionGroups don't have great tooling at the moment, and there are active PEPs to improve that.
#PyCon2025
ExceptionGroups are designed for situations where multiple things went wrong concurrently.
They have: a message, and a list of other exceptions/exception groups
#PyCon2025
The reasonable part of the talk is now over, according to the speaker. Let's keep going!
Exception().with_traceback(err) let's you change the traceback of one exception with the traceback of another.
This happens in-place! Use with care.
#PyCon2025
In python 3.11 onward, the part of the line that raised the error will be highlighted!
Python also has exception chaining, and you can use "raise from" to be more specific.
You can "raise from" None to skip previous errors.
#PyCon2025
It's time for another episode of "Phildini liveblogs talks after they happened"!
Right now: " Notes, Groups and Stars: exceptional new features of Python 3.11!" by Zac Hatfield-Dodds
www.youtube.com/watch?v=x5Wd...
Note: I start these in #PyConUS so people can find them, then move to #PyCon2025
So what are the takeaways?
- Write obvious code. This means going beyond just "it works"
- Use or abuse the language to make clearer code!
- But don't jump the shark ✨
Code and slides are at github.com/amyreese/pycon
#PyCon2025
Now let's talk about generators.
generators are functions that yield, but get started by being iterated over, or `next()`
But generators don't just yield, they can also receive new data
You can also _make_ a generator throw an exception
#PyCon2025
Decorators! Mostly syntactic sugar for functions wrapping functions
Decorators don't have to return... anything!
We can recreate perl's "until" loop using decorators! It's a little finicky, but very doable.
#PyCon2025
Did you know "try-except-else" exists? And is probably what you want instead of "finally"
"for-else" also exists, which runs when the for's iterable is exhausted
"while-else" is similar, runs when the condition of the while is false
Both these cases don't get hit if there's a `break`
#PyCon2025
comprehensions can hide cyclomatic complexity
our choices impact readability and therefore reliability
let's start with something simpler: "else"
#PyCon2025
Talk starts with a CW: code.
lmao.
There will be a URL at the end, so I'm not going to aim for a full transcription.
"Control flow" is how #python controls execution, the big three being:
- conditionals
- loops
- functions
Everything else is ultimately one of these
#PyCon2025
First up! "Or Else!" www.youtube.com/watch?v=zFzE...
#PyCon2025
@pluralistic was invited to give a keynote at #pycon2025 and you should watch it.
"Happy liberation day" indeed, let's make it so.
https://www.youtube.com/watch?v=ydVmzg_SJLw
Anyone interested in a 5pm open space to talk about event sourcing :tm:? Chris May is going to teach us!
Come to room 315
#pycon2025
@pamelafox.bsky.social thanks for your #PyCon2025 (technically flaskCon) talk: Testing Flask and Quart Apps with Pytest and Playwright - I use selenium but knew nothing about playwright. Looking forward to trying it out.
It's happening! 🎉 Our amazing team members, Nathan Goldbaum and Lysandros Nikolaou, are taking the stage RIGHT NOW at #PyCon2025 to share insights on free-threaded Python ecosystem support! A year of hard work has led to this moment! 🐍💙 #Python #NoMoreGIL
Any pycon people want to do a bike ride on monday?
maybe we can get a pycon people tour organized?
www.biketheburgh.com
#pycon2025