Thomas Grainger's Avatar

Thomas Grainger

@graingert.co.uk

https://fosstodon.org/@graingert https://twitter.com/graingert

194
Followers
231
Following
30
Posts
27.11.2024
Joined
Posts Following

Latest posts by Thomas Grainger @graingert.co.uk

Post image
20.11.2025 15:20 πŸ‘ 525 πŸ” 201 πŸ’¬ 16 πŸ“Œ 0
Preview
The final Python 3.9 security fix release is out! Python 3.9.25 is available now! If you’re still using that, grab the sources and build the update as there’s some final fixes: Security (low severity) gh-136063: email.message: ensured linear comp...

Python 3.9 is officially EOL!

Congratulations to @lukasz.langa.pl on a wonderful run as release manager! πŸ–€

discuss.python.org/t/the-final-...

31.10.2025 20:05 πŸ‘ 58 πŸ” 13 πŸ’¬ 0 πŸ“Œ 4

This week, the #Python Software Foundation rejected a $1.5MM NSF grant, due to a requirement that the PSF abandon diversity work.

So I joined forces with Python folks (@offby1, @petrillic, @amethyst) and we're matching up to $12,000 of donations to the PSF. 🧡

29.10.2025 21:24 πŸ‘ 27 πŸ” 61 πŸ’¬ 1 πŸ“Œ 3
A comic on the bridge from Star Trek the Next Generation.
Picard: COMMANDER DATA, PLEASE IDENTIFY THAT ROMULAN VESSEL.
Data: THAT'S A GREAT IDEA CAPTAIN!
IDENTIFYING A VESSEL IS A GREAT PLACE TO START - IN ANY TACTICAL OR STRATEGIC OUTER SPACE SITUATION.
THIS VESSEL APPEARS TO BE A 23rd CENTURY KLINGON BIRD OF
PREY! πŸš€πŸ¦…βœ¨
Picard: ARE YOU SURE?
LIKE I SAID WE'RE... PRETTY SURE IT'S ROMULAN.
Data: ...
Data: OF COURSE! SO SORRY ABOUT THAT, YOU'RE RIGHT!
ON CLOSER EXAMINATION IT'S A ROMULAN VESSEL! CAN I RECOMMEND SOME SOONGβ„’ BRAND PRODUCTS THAT CAN HELP YOU WITH THAT?
Picard cradles his face in his hand in a gesture of frustration.
Data: DID I MENTION THE PLIGHT OF OPRESSED WHITES IN SOUTH AFRICA?

A comic on the bridge from Star Trek the Next Generation. Picard: COMMANDER DATA, PLEASE IDENTIFY THAT ROMULAN VESSEL. Data: THAT'S A GREAT IDEA CAPTAIN! IDENTIFYING A VESSEL IS A GREAT PLACE TO START - IN ANY TACTICAL OR STRATEGIC OUTER SPACE SITUATION. THIS VESSEL APPEARS TO BE A 23rd CENTURY KLINGON BIRD OF PREY! πŸš€πŸ¦…βœ¨ Picard: ARE YOU SURE? LIKE I SAID WE'RE... PRETTY SURE IT'S ROMULAN. Data: ... Data: OF COURSE! SO SORRY ABOUT THAT, YOU'RE RIGHT! ON CLOSER EXAMINATION IT'S A ROMULAN VESSEL! CAN I RECOMMEND SOME SOONGβ„’ BRAND PRODUCTS THAT CAN HELP YOU WITH THAT? Picard cradles his face in his hand in a gesture of frustration. Data: DID I MENTION THE PLIGHT OF OPRESSED WHITES IN SOUTH AFRICA?

realistic Star Trek

26.08.2025 17:23 πŸ‘ 6558 πŸ” 2500 πŸ’¬ 47 πŸ“Œ 81

Why didn't you get a ResourceWarning about this?

20.06.2025 16:08 πŸ‘ 1 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0
Post image

Python web development in a picture
#pyconit
@marcelotryle.bsky.social
@tiangolo.com
@pyconit.bsky.social

29.05.2025 09:00 πŸ‘ 6 πŸ” 1 πŸ’¬ 1 πŸ“Œ 0
Video thumbnail

The trailer for "Python, the Documentary" is here! πŸ”₯🐍

From its humble beginnings in the Netherlands to powering AI at the world’s biggest companies - this is the story of Python.

πŸŽ₯ The film premiers at @europython.eu in July and will follow on our YouTube channel.

Subscribe to stay updated!

18.05.2025 12:59 πŸ‘ 122 πŸ” 50 πŸ’¬ 4 πŸ“Œ 8
Preview
Call for EuroPython 2026 Host Venues Are you a community builder dreaming of bringing EuroPython to your city? The Call for Venues for EuroPython 2026 is now open! πŸŽ‰ EuroPython is the longest-running volunteer-led Python conference in the world, uniting communities across Europe. It’s a place to learn, share, connect, spark new ideasβ€”and have fun

EuroPython returns to Prague this July and is looking for a new home for 2026 and beyond. Can your community help?
www.europython-society.org/call-for-eur...
#Python #EuroPython #conference #PyCon

23.04.2025 09:11 πŸ‘ 2 πŸ” 1 πŸ’¬ 0 πŸ“Œ 0

This should be the easiest boycott ever and if you can’t even satisfy this baseline level of solidarity then you have no right to question why we are all now under the gun.

17.04.2025 22:24 πŸ‘ 3789 πŸ” 1376 πŸ’¬ 35 πŸ“Œ 14

Thanks to months of consistent contributions by
lysnikolaou of @quansight.com (Lysandros Nikolaou), all of the mandatory dependencies of #aiohttp now ship free-threaded variants of #wheels!

This unlocks the same in aiohttp!

Find a minute to thank him, will you?

#aio-libs #Python #Packaging

17.04.2025 06:27 πŸ‘ 17 πŸ” 7 πŸ’¬ 1 πŸ“Œ 0

EuroPython!

09.04.2025 10:59 πŸ‘ 1 πŸ” 1 πŸ’¬ 1 πŸ“Œ 0
Post image
05.04.2025 23:23 πŸ‘ 15557 πŸ” 3408 πŸ’¬ 48 πŸ“Œ 88
Preview
How AnyIO powers Prefect's Async Architecture Our love letter to AnyIO.

Our next OSS love letter

26.03.2025 15:40 πŸ‘ 16 πŸ” 7 πŸ’¬ 0 πŸ“Œ 0
Irregular status update about reproducible Debian live ISO images

What an achievement:

* All official Debian bookworm live images rebuild reproducibly

lists.reproducible-builds.org/pipermail/rb...

27.03.2025 03:44 πŸ‘ 210 πŸ” 47 πŸ’¬ 7 πŸ“Œ 4
Preview
Ilya Sutskever, ex-OpenAI, gets $2b funding not to release anything until he has β€˜super intelligence’ Ex-OpenAI cofounder Ilya Sutskever’s new startup Safe Superintelligence just closed another funding round. For $2 billion, Sutskever promises not to release any product at all until SSI has develop…

Let it be known that I too will accept $2 billion in funding on the promise that I will not release anything until I have created God.

pivot-to-ai.com/2025/03/06/i...

22.03.2025 22:19 πŸ‘ 1768 πŸ” 391 πŸ’¬ 49 πŸ“Œ 83
Post image

Roses are red
Violets are blue

20.03.2025 17:43 πŸ‘ 61423 πŸ” 13504 πŸ’¬ 2492 πŸ“Œ 1368

It is either very funny or very depressing that I’ve now been trained to seek a second source for online queries as innocuous as β€˜when is my local coffee shop open til today’. I’ve been conditioned to not trust Google’s first answer. Great stuff.

16.03.2025 14:22 πŸ‘ 211 πŸ” 16 πŸ’¬ 9 πŸ“Œ 0

sys._getframe should probably have a pure python default that uses an exception and tb_frame

12.03.2025 15:17 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

But I think tb_frame is just as unmandated (and for practically the same reasons) so I think this compat function is indeed redundant

12.03.2025 14:47 πŸ‘ 0 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

Maybe, but I'm pretty sure PyPy does have this function. Python 2 doesn't have `__traceback__` though

12.03.2025 14:39 πŸ‘ 0 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

This isn't a python 2 thing

12.03.2025 14:04 πŸ‘ 1 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

Like doing things without OOP/types/ABCs/discord/FastAPI or server sockets and just glue code around requests and keyboard etc?

12.03.2025 14:01 πŸ‘ 4 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

Mastodon

13.02.2025 18:27 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

Think of the herd immunity and the extra load on the healthcare service

13.02.2025 18:20 πŸ‘ 4 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0
Post image

Poster featuring cartoon Trump and Elon Musk at the CFPB protest.

10.02.2025 22:26 πŸ‘ 1363 πŸ” 222 πŸ’¬ 29 πŸ“Œ 18

A lot slower! try/except is zero cost when no exception is raised

03.02.2025 16:55 πŸ‘ 1 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

suppress is slower and will unintentionally catch ExceptionGroups

03.02.2025 15:42 πŸ‘ 2 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0
Network protocols, sans I/O β€” Sans I/O 1.0.0 documentation

Doing I/O on my behalf.

sans-io.readthedocs.io

01.02.2025 02:40 πŸ‘ 5 πŸ” 1 πŸ’¬ 0 πŸ“Œ 0

Nope nope nope nope

Fuck this.

@mcuban.bsky.social What is the right way to pursue legal action against this

01.02.2025 19:28 πŸ‘ 41 πŸ” 1 πŸ’¬ 3 πŸ“Œ 0

Yeah, it's both unnecessary and misleading

01.02.2025 14:21 πŸ‘ 1 πŸ” 1 πŸ’¬ 0 πŸ“Œ 0