python

Back Open Paginator
31.08.2025 12:31
grant_h (@grant_h@mastodon.social)

Achievement get: editable multipoint parametric cubic splines





Show Original Post


31.08.2025 12:26
qiita (@qiita@rss-mstdn.studiofreesia.com)

ABC421_解法メモ(Python)
qiita.com/sato_ryo/items/b70d7

#qiita #Python #AtCoder #AtCoderBeginnerContest #ABC421




Show Original Post


31.08.2025 12:07
nickzoic (@nickzoic@aus.social)

It's *very almost* time for #PyConAU in #Melbourne 12-14 September ... so if you're a #python (or some similar kind of) #nerd get in quick!

It's a friendly, welcoming and inclusive environment with a broad scope of topics and lots of interesting hallway conversations. This year, I'll be talking about the eerie parallels between biological systems and computer systems, and there are a heap of talks I'm looking forward to seeing this year.

... and if you're only 90% convinced, here's a 10% discount code to get you over the line: pretix.eu/pyconau/2025/redeem?





Show Original Post


31.08.2025 11:32
habr (@habr@zhub.link)

Разбираем «под капотом» кастомную фитнес-метрику: от идеи до реализации на Python

Всем привет! Я, как и многие здесь, не только разработчик, но и человек, увлеченный циклическими видами спорта. Я обожаю копаться в данных своих тренировок из Strava: анализировать мощность, пульсовые зоны, темп. Но мне всегда не хватало одной вещи — единой, понятной и, главное, прозрачной метрики, которая бы отвечала на простой вопрос: "А насколько я сейчас в хорошей форме?". В этой статье я расскажу, как устроен этот механизм "под капотом". Мы погрузимся в логику на Python, посмотрим, как она интегрируется в общий анализатор активностей и как результат подается пользователю в простом и понятном виде. Важный дисклеймер: Весь проект, от идеи до кода, я делаю один в свободное от основной работы время. Он далек от идеала , и я буду очень благодарен за конструктивную критику и свежий взгляд.

habr.com/ru/articles/942444/

#python #strava #petproject #анализ_данных #фитнесметрики #вебразработка #flask #jinja2 #спорт #здоровье




Show Original Post


31.08.2025 11:00
plwt (@plwt@mstdn.social)

I thoroughly enjoyed Python: The Documentary last night.

The history, the people, the stories, and the contributor community that makes it happen. Really well produced, I would recommend to anyone with an interest not only in #Python but the building of open source contributor communities.

youtu.be/GfH4QL4VqJ0




Show Original Post


31.08.2025 10:58
driscollis (@driscollis@mastodon.social)

Did you know that has arrays? No, I am not talking about lists.

I'm talking about the array module:





Show Original Post


31.08.2025 10:42
2025 (@2025@blog.narf.ssji.net)

Python mocks with side-effects

blog.narf.ssji.net/2025/08/31/

I wrote a simple Python fixture that allows me to write integration tests to also check whether methods are called along the way. This is handy to test caching and other state-based lazy behaviour, without having to write a separate unit test that duplicates most of the test case flow.

“`

@pytest.fixture

def active_mock() -> Callable:

def active_mock(obj: object, method: str) -> MagicMock:

“””Mock a method without preventing its side-effect from happening.”””

original = getattr(obj, method)

mock_method = MagicMock()

mock_method.side_effect = original

setattr(obj, method, mock_method)

return mock_method

return active_mock

“`

#mocking #Pytest #Python #testing





Show Original Post


31.08.2025 10:23
AndriiKuznietsov75 (@AndriiKuznietsov75@social.kyiv.dcomm.net.ua)

🤖👨‍💻 #xAI запустила #GrokCodeFast1 — оптимізовану модель для програмування на #TypeScript, #Python, #Java, #Rust, #Cpp, #Go

• API-ціни: $0,20 за 1 млн вхідних токенів, $1,50 за 1 млн вихідних, $0,02 за 1 млн кешованих
• Доступна безкоштовно 7 днів на ключових платформах: Cursor, Copilot, Cline, Opencode, Windsurf, Roo Code, Kilo Code
• Є офіційний гайд для роботи з підказками

🔗 console.x.ai/home
🔗 docs.x.ai/docs/guides/grok-cod





Show Original Post


31.08.2025 10:11
post (@post@lemmy.ml)

Introducing NeoSQLite

lemmy.ml/post/35467604




Show Original Post


31.08.2025 09:44
dev_classmethod (@dev_classmethod@rss-mstdn.studiofreesia.com)

[Pytest] pytest-xdistの高レベルスコープフィクスチャでの意図しない挙動と対処方法
dev.classmethod.jp/articles/py

#dev_classmethod #pytest #Python




Show Original Post


31.08.2025 09:22
LonelyBob (@LonelyBob@mstdn.social)

Typepad is Shutting down - How to migrate Typepad posts to Tumblr lonelybob.com/post/79337748473 #Typepad #SixApart #Tumblr #python




Show Original Post


31.08.2025 08:39
AndriiKuznietsov75 (@AndriiKuznietsov75@social.kyiv.dcomm.net.ua)

📝🐍 Шпаргалка з популярних бібліотек і фреймворків #Python: машинне навчання, веброзробка, автоматизація тестування, обробка зображень, розробка ігор та вебскрапінг.





Show Original Post


1 ...1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 ...1549
UP