Release candidate 10.8.2.rc4 of passagemath, the comprehensive #OpenSource #Mathematics system in #Python, the pip-installable modularized fork of #SageMath.
github.com/passagemath/...
Release passagemath-10.8.2.rc4...
Release candidate 10.8.2.rc4 of passagemath, the comprehensive #OpenSource #Mathematics system in #Python, the pip-installable modularized fork of #SageMath.
github.com/passagemath/...
Release passagemath-10.8.2.rc4...
How many customers are in each city? If you're pulling all the rows into Python and using Counter or pandas groupby(), you're doing too much work.
SQL's GROUP BY does the counting on the database server and sends back just the summary. Five cities? Five rows returned. Not 10,000.
Read more about GROUP BY, aggregate functions (COUNT, SUM, AVG, MIN, MAX), and the golden rule of grouping.
https://jamalhansen.com/blog/group-by-aggregating-your-data
#SQL #Python #DuckDB #DataScience #Programming

I’d like a Picotron that uses Python.
#lexaloffle #gamedev #python
Want to guarantee that no one can run "from .. import *" on your #Python module? Include a non-existent name in the __all__ list:
x = 100
y = [10, 20, 30]
__all__ = ['YOU_SHOULD_NOT_USE_IMPORT_*']
Using "from .. import *" on this module will result in an error!

¡Extra, extra!
Ya está disponible la primera beta de #EntroPipes 2.0.0 para su descarga para #linux y #windows
Aquí tenéis EntroPipes 2.0.0 Beta 1 para su descarga para Winbugs y Linux: https://codeberg.org/son_link/EntroPipes/releases
También podéis jugar online en https://son_link.codeberg.page/entropipes_beta
#libregaming #floss #python #pyxel
How to Make Functions Remember State
Closure captures variables. Inner function sees outer. State without class.
#python #closure #nonlocal #state #howto
https://www.youtube.com/watch?v=SWt7GwZ_ekM
If you teach Python, or help others understand the language, the question "What is self?" is always worth revisiting.
Here's my latest reflection on that timeless question:
https://www.mostlypython.com/what-is-self/
Бот из бытовой боли
Прежде чем начну, вот репозиторий . Я не хочу ничего монетизировать, продавать или куда-то вас вести (в секту имени меня, например). Если этот бот, идея или даже отдельные куски кода окажутся кому-то полезны в жизни - я сделал чей-то день и, возможно, чья-то жизнь стала немного ярче. Начнем.
https://habr.com/ru/articles/1008218/
#python #автоматизация #рутина
A reminder in case you missed it: Diego Russo is keynoting #PyConIT 2026 🐍
CPython core dev, Arm Principal Engineer, EuroPython organiser; his talk covers how Python went from "fast enough" to “fast by design”.
🎟️ Tickets are still available:
🔗 https://pycon.it/tickets

🌘 Python「延遲匯入」的故事:為何耗時三年且兩次嘗試才終獲成功
➤ 從生產環境的被迫妥協,到直譯器核心的正式優化
✤ https://techlife.blog/posts/the-story-of-pythons-lazy-imports-why-it-took-three-years-and-two-attempts/
Python 啟動速度慢一直是困擾開發者的難題,尤其是當應用程式需要載入龐大的套件(如 PyTorch 或 NumPy)卻僅需執行簡單指令時,系統效能損失顯著。Meta 與 Hudson River Trading 等大型企業為了應對此問題,不得不透過自行修改 Python 直譯器(如 Cinder)來實現「延遲匯入」。經過三年的反覆討論與兩次提案(PEP 690 被拒與 PEP 810 的誕生),Python 官方終於在版本 3.15 引入了語法層級的延遲匯入機制,在保持生態兼容性的同時,成功優化了開發者的使用體驗與效能表現。
+ 終於等到這一天了!每次寫 CLI 工具都要為了匯入這件
#Python #軟體工程 #開發語言 #PEP 810 #效能優化
🐍 Python's "Lazy Imports" drama: it only took a mere three years and two colossal attempts for the #language to accomplish what every other #programming language calls 'Tuesday'. 🤦♂️ Apparently, Python's #developers needed a motivational #pep talk—or maybe just a PEP #talk. 😏
https://techlife.blog/posts/the-story-of-pythons-lazy-imports-why-it-took-three-years-and-two-attempts/ #Python #Lazy #Imports #Drama #Python #News #HackerNews #ngated