python

Back Open Paginator
03.09.2025 12:02
achim (@achim@social.saarland)

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?




Show Original Post


03.09.2025 11:48
AFoucart (@AFoucart@social.sciences.re)

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:

notes.adfoucart.be/caching_mut

#programming




Show Original Post


03.09.2025 10:30
PyConUK (@PyConUK@fosstodon.org)

⭐️🎤 Talk spotlight! 🎤⭐️

🎙Mapping Jane Austen’s Influence Across Space & Time with Python and ClickHouse by @natalyjazzviolin

🎤⭐️ Learn more here: pretalx.com/pyconuk-2025/talk/

🎟️ Grab your ticket! 2025.pyconuk.org/tickets/

#PyConUK2025 #Python





Show Original Post


03.09.2025 10:30
jos1264 (@jos1264@social.skynetcloud.site)

Stealthy Python Malware Uses Discord to Steal Windows Data gbhackers.com/python-malware/ #CyberSecurityNews #cybersecurity #Malware #Windows #Python




Show Original Post


03.09.2025 10:23
wezm (@wezm@mastodon.decentralised.social)

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





Show Original Post


03.09.2025 10:17
diazona (@diazona@techhub.social)

@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.




Show Original Post


03.09.2025 10:10
diazona (@diazona@techhub.social)

@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.




Show Original Post


03.09.2025 10:05
canderson (@canderson@chaos.social)

It's a pleasure to be at #pydataberlin this year, surrounded by great people and insightful talks, a lot to learn!

#python #data #berlin




Show Original Post


03.09.2025 09:32
habr (@habr@zhub.link)

Рынок труда тестировщиков-автоматизаторов в России (2025)

Спрос на QA-специалистов в России продолжает расти, однако конкуренция в этой нише очень высокая. Так, по данным Computerra, в числе наиболее востребованных ИТ-специалистов в 2025 году оказались именно тестировщики и специалисты по написанию автотестов . При этом работодатели всё чаще требуют от тестировщиков навыков уровня начинающего разработчика: знания бэкенда, фронтенда, работы с БД и умения писать скрипты для автотестов. В этой статье мы подробно рассмотрим актуальные языки программирования, фреймворки и инструменты в автоматизации тестирования, требования работодателей, типичные этапы собеседований, а также рекомендации по подготовке.

habr.com/ru/articles/943414/

#playwright #selenium #java #python




Show Original Post


03.09.2025 09:21
lilyf (@lilyf@fosstodon.org)

Here's my latest blog post, about how I was able to take a mutable reference in Rust and let Python use it:

blog.lilyf.org/posts/python-mu

#rust #pyo3 #Python




Show Original Post


03.09.2025 09:02
vnzn (@vnzn@mas.to)

Python has had async for 10 years – why isn't it more popular? - By Anthony Shaw

tonybaloney.github.io/posts/wh

#programming #Python




Show Original Post


03.09.2025 08:50
hamatti (@hamatti@mastodon.world)

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.

hamatti.org/posts/i-will-be-sp

#blogging #Python #debugging




Show Original Post


1 ...1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 ...1550
UP