Achievement get: editable multipoint parametric cubic splines
ABC421_解法メモ(Python)
https://qiita.com/sato_ryo/items/b70d7908733c6c11fb00?utm_campaign=popular_items&utm_medium=feed&utm_source=popular_items
#qiita #Python #AtCoder #AtCoderBeginnerContest #ABC421
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: https://pretix.eu/pyconau/2025/redeem?voucher=SPKR10-ASE85RZ7Q84L3C7Z

Разбираем «под капотом» кастомную фитнес-метрику: от идеи до реализации на Python
Всем привет! Я, как и многие здесь, не только разработчик, но и человек, увлеченный циклическими видами спорта. Я обожаю копаться в данных своих тренировок из Strava: анализировать мощность, пульсовые зоны, темп. Но мне всегда не хватало одной вещи — единой, понятной и, главное, прозрачной метрики, которая бы отвечала на простой вопрос: "А насколько я сейчас в хорошей форме?". В этой статье я расскажу, как устроен этот механизм "под капотом". Мы погрузимся в логику на Python, посмотрим, как она интегрируется в общий анализатор активностей и как результат подается пользователю в простом и понятном виде. Важный дисклеймер: Весь проект, от идеи до кода, я делаю один в свободное от основной работы время. Он далек от идеала , и я буду очень благодарен за конструктивную критику и свежий взгляд.
https://habr.com/ru/articles/942444/
#python #strava #petproject #анализ_данных #фитнесметрики #вебразработка #flask #jinja2 #спорт #здоровье
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.
Did you know that #Python has arrays? No, I am not talking about lists.
I'm talking about the array module:

Python mocks with side-effects
https://blog.narf.ssji.net/2025/08/31/python-mocks-with-side-effects/
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

🤖👨💻 #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
• Є офіційний гайд для роботи з підказками
🔗 https://console.x.ai/home
🔗 https://docs.x.ai/docs/guides/grok-code-prompt-engineering

Introducing NeoSQLite
https://lemmy.ml/post/35467604
[Pytest] pytest-xdistの高レベルスコープフィクスチャでの意図しない挙動と対処方法
https://dev.classmethod.jp/articles/pytest-xdist-high-level-scope-fixture-issues/
#dev_classmethod #pytest #Python
Typepad is Shutting down - How to migrate Typepad posts to Tumblr https://www.lonelybob.com/post/793377484737544192/typepad-is-shutting-down-how-to-migrate-posts-to #Typepad #SixApart #Tumblr #python
📝🐍 Шпаргалка з популярних бібліотек і фреймворків #Python: машинне навчання, веброзробка, автоматизація тестування, обробка зображень, розробка ігор та вебскрапінг.
