python

Back Open Paginator
02.12.2025 15:08
CuratedHackerNews (@CuratedHackerNews@mastodon.social)

Python Data Science Handbook

jakevdp.github.io/PythonDataSc




Show Original Post


02.12.2025 15:05
mnvr (@mnvr@mastodon.social)

AOC 25 - Day 1

Python solution 18 ms, Rust 4 ms

Nothing spectacular. The problem was simple enough, but the "off by one, bane of programmers since ∞±1" special cases took some time to figure





Show Original Post


02.12.2025 15:00
bbelderbos (@bbelderbos@fosstodon.org)

Writing your own list chunking helpers? Check out #Python’s `itertools.batched()` that can do this for you 🚀

✅ Works with any iterable.
✅ Handles a smaller final chunk automatically.
✅ Use `strict=True` (Python 3.13+) to raise a `ValueError` when the final batch isn’t full.





Show Original Post


02.12.2025 14:46
bug_elseif (@bug_elseif@bolha.us)

ATENÇÃO! :ablobcatbongo:

Na programação do evento Python Sul 2025, participei apresentando o tutorial sobre ciclo de desenvolvimento de automações utilizando Python e BotCity.
:python:

Propus uma dinâmica prática em um contexto onde as pessoas participantes foram as desenvolvedoras das automações, e essas automações foram executadas em um servidor remoto, simulando um ambiente corporativo real.

Passamos pelos conceitos gerais sobre a estrutura, o desenvolvimento, a implementação, a execução e atualização das automações utilizando algumas ferramentas da BotCity, integradas com Docker e GitHub.

Foi uma oportunidade incrível para compartilhar conhecimentos, aprender com outras pessoas e fortalecer a comunidade Python no sul do Brasil.

:blobcathearthug:

ps:

Você pode conferir o material do tutorial no repositório do GitHub:

github.com/bugelseif/tutorial-

:BoostOK: :blobcatflower:

#tech #development #python #comunidade





Show Original Post


02.12.2025 14:09
pyladiescon (@pyladiescon@fosstodon.org)

🎉 Open Spaces are now open for #PyLadiesCon 2025! 💜🐍
Want to lead a discussion or share an idea? Open Spaces are simple—just submit a Title + short Abstract.

🌍 Multilingual & open to everyone.
🗓 Dec 5–7, 2025 • Online & free!

Submit here: pretalx.com/pyladiescon-2025/c

#PyLadies #Python #OpenSpaces





Show Original Post


02.12.2025 13:50
owenrlamont (@owenrlamont@fosstodon.org)

Just released aiomoto 0.1.1 to PyPi. Now with more s3fs and pandas tests and examples. Realised aiomoto can't mock an s3 bucket for polars or pandas (when using the pyarrow filesystem) since that doesn't use boto3 underneath 😞 #python





Show Original Post


02.12.2025 13:45
post (@post@mander.xyz)

Sovereign Tech Agency and PSF Security Partnership

mander.xyz/post/42886242




Show Original Post


02.12.2025 13:41
geekland (@geekland@mastodon.social)

Installing the LGPIO Library on the Raspberry Pi
pimylifeup.com/raspberry-pi-in




Show Original Post


02.12.2025 13:19
papajohn (@papajohn@sfba.social)

Content warning:Advent of Code 2025 Day Two Spoilers


Brute forcing today was pretty easy:

* Iterate through the ranges;
* Check if the first half of the number was equal to the second half (part one); or,
* Iterate through chunk lengths (up to and including half the number) and check if the number was composed of a repetition of that chunk (part two).

but the ranges were big enough that checking all of them took ... well honestly still not very long on my Macbook. Maybe a quarter second.

But still slower than I wanted, so I thought for a while and came up with another approach. It's obvious that the # of candidates grows much more slowly than the amount of numbers in the range, so it's much faster to generate all possible candidates then test if they're in a range (using Python's built-in bisect to quickly search for a possible range) than the other way around. This runs almost instantly on my computer.

github.com/biesnecker/aoc-anyh

#adventofcode #adventofcode2025 #python





Show Original Post


02.12.2025 12:54
zeyanglin (@zeyanglin@mastodon.online)

Meet #Python 3.15 alpha, #Gemini 3, GPT 5.1, more #Agentic AI, cloud outages and other fun stuff in my 9th issue of "This Month for Pythonistas" blueberrypy.netlify.app/post/t




Show Original Post


02.12.2025 12:42
habr (@habr@zhub.link)

Как ускорить автотесты на Python в Pytest в 8,5 раз

Меня зовут Анатолий Бобунов, я работаю SDET в компании EXANTE. Однажды я пришел на проект, на котором выполнение некоторых тест-сьютов занимало больше часа, настолько медленно, что запускать их на каждый merge request (MR) было просто нереально. Мы хотели запускать автотесты на каждый коммит в MR, но с такой скоростью это было невозможно. В результате мне удалось, за счёт серии небольших, но точных изменений добиться 8,5-кратного ускорения - без переписывания тестов с нуля. В статье расскажу, какие проблемы у нас возникли и как мы их решали.

habr.com/ru/articles/972448/

#testing #test_automation #python #pytest #pytestxdist




Show Original Post


02.12.2025 12:40
EmmaDelescolle (@EmmaDelescolle@mastodon.social)

RE: mastodon.social/@EmmaDelescoll

Day 2 is in.

> Winner: Human (by a landslide)

from codeberg.org/emmaDelescolle/ad




Show Original Post


1 ...895 896 897 898 899 900 901 902 903 904 905 ...1570
UP