Do we have #k8s networking experts in the Fediverse? I have a networking questions that's a bit too low level for me.
I have a Deployment that runs a few pods of an http service. In front of it I have a Service object through which clients access the pods.
Now assume a single #Python client that uses an #aiohttp session object to execute concurrent requests. Are all requests from this single client routed to the same backend pod? Or are they distributed over all of them?
Today in weirdly specific questions: what happens in #python when using functools.cache to cache a method which returns a mutable object?
Do we save the returned value of the object (so that if we call the method again, we get the same value whatever happened to the object after), do we get an error (like if we try to pass a mutable argument to a cached method), or de we save a reference to the object (so that if we call the method again, we will get the same object, possibly in a new state)?
I was relatively sure it wouldn't be the first one, but wasn't certain between the latter two. It turned out to be option number three. More here:
https://notes.adfoucart.be/caching_mutable_return.html
⭐️🎤 Talk spotlight! 🎤⭐️
🎙Mapping Jane Austen’s Influence Across Space & Time with Python and ClickHouse by @natalyjazzviolin
🎤⭐️ Learn more here: https://pretalx.com/pyconuk-2025/talk/CZT9TC/
🎟️ Grab your ticket! https://2025.pyconuk.org/tickets/

Stealthy Python Malware Uses Discord to Steal Windows Data https://gbhackers.com/python-malware/ #CyberSecurityNews #cybersecurity #Malware #Windows #Python
I hadn't yet turned on my torch when I came across this Python whilst walking this evening, so it was a bit of a surprise. It was super chill though. It was aware of me but didn't move at all as I took a couple of photos. (phone magic makes it look like there was more daylight than there was)
#WildOz #snake #python #SunshineCoast

@tintvrtkovic @carlton Anyway, back to the point... I think the reason #Python 's packaging tools normally won't install multiple versions of the same package in the same environment is more to avoid confusion more than anything else. Like, when you import a module from the package, which version does it come from? If part of your code needs one version and another part needs a different version, how do you identify in each part of the code which version of the dependency it should import from? And how do you express version constraints on a sub-package level? (like, if source_file_a.py in your package needs dependency-X>=1.2,<2, but source_file_b.py needs dependency-X>=1.6,!=2.0.1,<3) You can write custom code to solve these problems, but I suppose the developers of the packaging standards and tools looked at how it's played out in the past and decided that it's so rarely useful and so potentially confusing that it's not worth supporting in the default setup.
@tintvrtkovic @carlton Global (in the #Python sense of "global", i.e. module-level) state is kept in the module object in memory, but once that module object has been loaded from a file, it exists independently of the file it came from. So if you did load multiple different versions of a package, they'd all correspond to different module objects in memory, each of which could have its own global state. Heck, even with just one version of a package, you could load some module from that package a hundred times and get a hundred different module objects in memory, again each with its own individual global state.
This is kind of what the importlib.reload() function does, although IIRC it also tries to mix the original and reloaded versions of the module in a way that is supposed to make sense if you don't care about the old module. To get a true fresh and independent copy of the module object you'd have to use other importlib functions.
It's a pleasure to be at #pydataberlin this year, surrounded by great people and insightful talks, a lot to learn!
Рынок труда тестировщиков-автоматизаторов в России (2025)
Спрос на QA-специалистов в России продолжает расти, однако конкуренция в этой нише очень высокая. Так, по данным Computerra, в числе наиболее востребованных ИТ-специалистов в 2025 году оказались именно тестировщики и специалисты по написанию автотестов . При этом работодатели всё чаще требуют от тестировщиков навыков уровня начинающего разработчика: знания бэкенда, фронтенда, работы с БД и умения писать скрипты для автотестов. В этой статье мы подробно рассмотрим актуальные языки программирования, фреймворки и инструменты в автоматизации тестирования, требования работодателей, типичные этапы собеседований, а также рекомендации по подготовке.
https://habr.com/ru/articles/943414/
#playwright #selenium #java #python
Here's my latest blog post, about how I was able to take a mutable reference in Rust and let Python use it:
https://blog.lilyf.org/posts/python-mutable-reference/
Python has had async for 10 years – why isn't it more popular? - By Anthony Shaw
https://tonybaloney.github.io/posts/why-isnt-python-async-more-popular.html
I'm excited to get on the @pyconfi stage in October to help the audience learn how they can become better at debugging Python.
You should come too! Tickets are available, links in post. It's gonna be a lot of fun with great people.
https://hamatti.org/posts/i-will-be-speaking-at-pycon-finland-in-jyvaskyla-17-10/