Rodrigo Girão Serrão 🐍🚀
banner
mathspp.com
Rodrigo Girão Serrão 🐍🚀
@mathspp.com
I'll help you take your Python skills to the next level!

Python deep dive every Monday 🐍🚀 -> https://mathspp.com/insider

Short daily drop of Python knowledge 🐍💧 -> https://mathspp.com/drops
🤣
February 12, 2026 at 8:35 PM
FINALLY had technical issues while delivering a remote talk.

Today I got all of it!

First, my computer froze and I couldn't even share my screen.

Then, at some point my internet connection went POOF and I dropped off the call... 🤦

Hopefully now I'm good again for a dozen more talks.
February 12, 2026 at 7:35 PM
Catch you there?
February 12, 2026 at 10:49 AM
Don't forget to include PyCon Portugal (September 3rd–5th) in your calculations 😇
February 12, 2026 at 10:49 AM
Reposted by Rodrigo Girão Serrão 🐍🚀
Stoked to share that the Steering Council has accepted PEP 814. frozendict is coming to Python 3.15!

discuss.python.org/t/pep-814-ad...
PEP 814: Add frozendict built-in type
After careful deliberation, the Python Steering Council is pleased to accept PEP 814 – Add frozendict built-in type. The absence of an immutable dict counterpart has been a long-standing gap in Pytho...
discuss.python.org
February 11, 2026 at 5:13 PM
Reposted by Rodrigo Girão Serrão 🐍🚀
Introducing the PSF Community Partner Program! The PSF is very excited to announce this new in-kind offering that expands how we support Python community events and initiatives around the world, now and alongside future community support programs 💝🐍
Introducing the PSF Community Partner Program
The Python Software Foundation (PSF) is excited to announce the introduction of the PSF Community Partner Program. This new program is designed as an “in-kind” way for us to support Python events and initiatives with non-financial assistance through the use of the PSF logo and name, as well as promotional support via sharing qualified posts on PSF official social media accounts. The PSF looks forward to supporting Python community events and initiatives through this new program!The introduction of the PSF Community Partner Program grew out of our desire to find alternative ways to support the community during the pause of our Grants Program (read more about the resulting process below). Even so, we intend to continue offering this in-kind support program after the Grants Program reopens. Our big picture hope is that, over the long term, some community events and initiatives will continue to partner with the PSF while being financially dependent on sponsors and individual donors alone. The PSF is also working on the future of our Grants Program, including when and how we can reopen it in a way that ensures the program’s long-term sustainability while balancing the needs of the Python community. In light of the truly staggering outpouring of support from our community during the 2025 year-end fundraiser, we are now in a stronger position to reopen the Grants Program and are eager to give back in a thoughtful and sustainable way. More updates to come!As with the rollout of any new program, we anticipate small adjustments will need to be made for processes to flow smoothly and to ensure the program serves the Python community well. The PSF welcomes your comments, feedback, and suggestions regarding the new Community Partner Program on the corresponding Discuss thread. We also invite you to join our upcoming PSF Board or Grants Program Office Hour sessions to talk with the PSF Board and Staff synchronously. If you wish to send your feedback privately, please email grants@python.org. 
pyfound.blogspot.com
February 10, 2026 at 2:13 PM
😂

Yup, I already knew about True/False! I wonder how much crazy code was written thanks to that.
February 10, 2026 at 7:18 AM
Well, that would give you the correct answer 😬

But it's more fun to see if you can name them :D
February 9, 2026 at 6:49 PM
This list is missing the soft keywords.

How many are there, and what are they?
Here's a list of the #Python keywords

It's nice that the number is so small that you can actually probably remember all of them fairly easily.
February 9, 2026 at 5:30 PM
I've written this Python function so many times I should no longer be confused by it...

But I never know if it's

def clamp(v):
return min(max(v, low), high)

or

def clamp(v):
return min(max(v, high), low)

Always need to stop and think about it for a minute.
February 9, 2026 at 4:48 PM
Same here…
February 3, 2026 at 1:16 PM
If they had used the built-in `range` this wouldn’t happen.
February 3, 2026 at 12:13 PM
It's pretty cool how much you can get done in Python with so little code if you leverage the standard library.
February 2, 2026 at 5:54 PM
Nice, Sand & Basking are new to me.

I got
- Hammerhead
- Great White
- Tiger
- Whale
- Pyjama
- Reef
- Giant
February 2, 2026 at 4:57 PM
I'll tell you what sharks I listed if you tell me yours.
February 2, 2026 at 3:20 PM
I got some more, now. But apparently I can only spell 2 dinosaur names correctly...

135 animals listed
𓃴🦋🦬🦁🐆🐯🦋🐯🐻🐻‍❄️🐻🐰🦧🦍𓃷𓃱🐘𓃘🐎🦓🐕🙀🐁🐹🐀🐊🦫👩‍❤️‍💋‍👩🦨🦖🐼🦘🐑🐐🐽🐗🦎𓆈🐍🐍🐍🐍𓆏🐸🦌𓅦🐧🦈🦈🦈🦈🐟🐡𓇼🫍🐳🦭🦐🐙🦑🦀🦞🪱🐛🐛🪰🦟🐛🐛🐜🕷🕷🐛🐛🐛🪳🐛🐌🦐🐟🐟𓆣🦅𓅃🐦🐦🦜🐦𓅨🦢🦩🕊️🐦🐦‍⬛🐦‍⬛

Ok, I gotta go back to work 🤣
list animals until failure
hot new brain workout
rose.systems
February 2, 2026 at 3:18 PM
🤯 dinosaurs are valid!? But I don't know how many I can spell correctly. Maybe 3.

Also, just remembered about a bunch of mammals...

I guess I'll try again 🤣
February 2, 2026 at 3:02 PM
2nd time around was easier... Still had some translations cached, so I managed to spend more time thinking about other translations :D

rose.systems/animalist

116 animals listed
🦫🐎🐱🐕‍🦺🐆🦁🐅🦋🐯🐖🐮🫏🐐🐏🐔🐰🐹🐁🐀🐛🐌🐛🐛🦟🪰🐛🐛🐛🕷🕷🦋🐦‍⬛🐜🐛🪳🐛🪱🐦‍⬛🐦🕊️🐧𓅦🦘🐼🐻🐻🐻‍❄️🐦🦜𓅃🐦🦅🐦🐙🦑🦈🦈🦈🐟🐳🦐🦀🦞𓇼🐡🪲🪸🐍🦓🐍🐟🦇🐬🦭🫍🐸𓆏🦍𓃻🦧👯🐍🐍🐌
list animals until failure
hot new brain workout
rose.systems
February 2, 2026 at 2:56 PM
rose.systems/animalist

76 animals listed
🦮🙀🐴🦎𓆈🐜🪲🐛🪳🐛🐛🐛🦟🪰🪱🐛🕷🕷🐍🐍🐍🐳🦈🦈🦈🐟🦈🦀🦞🥷🐇🐖🐑🐐𓃬🐆𓃻🦍🐻🐻‍❄️🐻🫏🐭🐀🐹🐅🦋🐧𓅦🦅🐦🐦🦜🐦🐦𓇼🐌

Dang it, I knew at least a couple more in Portuguese but couldn't remember the translations :D
list animals until failure
hot new brain workout
rose.systems
February 2, 2026 at 2:43 PM
Then, run it with `uv run pytest` and uv will automatically pick up the pytest installed locally, as a dependency.
January 30, 2026 at 9:28 PM
One of my students today made this mistake.

If you have a project and want to test it, your tests will import your project.

So, you need to install pytest as a dependency INSIDE your project.

If you install it globally, when you run it, it can't see your own project.
January 30, 2026 at 9:28 PM
Dump JSON and make it Human-readable.
January 30, 2026 at 4:40 PM
Parse JSON from a string with a single function call.

Don't use this if you have JSON in a file. Use `load` for that.

This is for when the data comes in a payload, for example.
January 29, 2026 at 4:19 PM
Interesting. I definitely didn't see it but I'll see if I can come up with an implementation of it!
January 28, 2026 at 9:06 PM
Not sure I know what you're talking about. I looked at the recipes and I couldn't recognise “the one that groups numbers into ranges [...]”.
January 28, 2026 at 7:39 PM