#Python power using the built-in `pow()` method
pow(base, exponent)

🔍️ / #software / #python / #NodeJS
Why we migrated from Python to Node.js
We just did something crazy: we completely rewrote our backend from Python to Node just one week after our launch. We did this so we can scale. Yes, scale. A week in. In some ways, it's a good time right? The codebase is still small and we don't have too many users.
🐱🔗 https://laravista.altervista.org/CatLink/links/439
#catlink #softwarepython #softwarepythonNodeJS
cibuildwheel 3.3 out! Fix for docker 29 changing the capitalization of the version output, but also runner customization (for iOS on GHA macos-15), manylinux_2_35 on armv7l, build[uv] support on Android, removed build-system constraints, and more! https://github.com/pypa/cibuildwheel/releases/tag/v3.3.0 #python #releases
Who are the Hetzner + Coolify folks here? I've been hearing positive things about this combination.
Asking because I want to consolidate hosting for at least two (static) websites and one Django website; preferably auto-deployed from Codeberg. Located in the GDPR area is a must.
One kicker: I am not an infra person. I can navigate Docker well enough to meet my needs, but server management is not my strong suit.
Would love to hear your experiences!
yandex-music-downloader, но уже на #python
Как сохранить токен доступа описано тут (я просто сохранил весь трафик в har-файл, а затем grep'нул из него строку с access_token=)
🌗 非同步與終結器造成的死結
➤ 揭示非同步程式碼與物件生命週期管理中的潛藏死結
✤ https://tratt.net/laurie/blog/2025/async_and_finaliser_deadlocks.html
本文探討了在非同步程式設計和物件終結器(finaliser)執行時可能遇到的死結問題。作者透過一個簡化的 Python 範例,說明瞭當物件的終結器嘗試取得已被主執行緒佔用的鎖(mutex)時,會引發死結。這種問題的根源在於,終結器可能在程式執行的任意非同步點被呼叫,且其執行時機難以預測,尤其是在採用自動記憶體管理的語言中。文章回顧了此問題的歷史,並引用了 Hans Boehm 的經典論文,強調了終結器需要存取共享狀態而常需使用鎖。最後,作者指出,解決此問題的根本之道是讓垃圾回收器從獨立的執行緒中執行終結器,以避免與主執行緒的鎖競爭。
+ 這篇解釋得很清楚,我過去在處理類似的底層問題時也曾遇到類似的困境,幸好作者用 Python 舉例,讓我這個非 Rust 專家也能理解。
+ 原來終結器
#程式設計 #死結 #非同步程式設計 #終結器 #Python #Rust
All the people in my feed loudly complaining about people using Jupyter notebooks, I'm curious:
What's your proposed fix / replacement for doing a document which has words and runnable code snippets?
How are you proposing to do better?
...that isn't "use different coding language" or "just these seventeen steps to cloud deploy the discombobulator"
If there's something, I'm sure people would love to know!
Je viens de publier le code source de PIFOCast, mon projet de modèle météo basé sur de l' #IA. Ce projet est développé en #python avec la librairie Tensorflow GNN.
https://github.com/ngasnier/PIFOCast

"Google has ceded the training of AI models to Python, rather than continuing to try and push a JavaScript solution for that. The company seems to have made the bet that inference — the process of making a decision or a prediction based on an AI model — is something that can be done more effectively in the browser, which means it’s ripe for JavaScript."
The New Stack: How Google Is Shifting AI From the Cloud to Your Browser https://thenewstack.io/how-google-is-shifting-ai-from-the-cloud-to-your-browser/ @TheNewStack #Google #NoAI #JavaScript #LLM #Python
Ihr habt uns allen schon sehr gezeigt, dass euch die Aufgaben der @ThePSF wichtig sind und habt fleißig gespendet. Vielen Dank dafür von mir!
Aber wir sind noch nicht am Ziel!
Dafür haben wir heute unsere Jahres-Spendenaktion auf https://donate.python.org/de/ gestartet und uns ein ehrgeiziges Ziel von 314.159,26 $ bis zum Ende des Jahres gesteckt.
Erzählt es euren Freund:innen, Kolleg:innen (und der Firmenleitung)! 💛💙
#PythonForEveryone #PythonFürAlle #python #psf https://fosstodon.org/@ThePSF/115537801355825141
[Projet] Plugin #Zim pour masquer la barre de menus.
Version 1.1.0 :
* fix: typo dans le libellé du menu
* add: Bouton dans les fenêtres flottantes.
* add: Stockage de l'état d'affichage du menu (uistate).
* Site web: https://omacronides.com/projets/zim-plugin-hide-menubar
* Sources: https://framagit.org/rui.nibau/zim-plugin-hide-menubar
Think I’m gonna stop using AI coding agents for a bit. I feel lobotomised by them. I can’t even remember how to handle lifespans of services that live on the Python asyncio event loop anymore.
I don’t think being able to get over the programming writers’ block is worth the trade off