python

Back Open Paginator
09.03.2026 18:18
r (@r@fed.brid.gy)

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...




Show Original Post


09.03.2026 18:18
r (@r@bsky.brid.gy)

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...




Show Original Post


09.03.2026 18:18
ham_jansen (@ham_jansen@mastodon.online)

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.

jamalhansen.com/blog/group-by-

#SQL #Python #DuckDB #DataScience #Programming





Show Original Post


09.03.2026 18:10
2026 (@2026@archimage.micro.blog)

I’d like a Picotron that uses Python.

#lexaloffle #gamedev #python




Show Original Post


09.03.2026 17:30
Reuven (@Reuven@fosstodon.org)

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!





Show Original Post


09.03.2026 17:09
son_link (@son_link@mastodon.social)

¡Extra, extra!

Ya está disponible la primera beta de 2.0.0 para su descarga para y

Aquí tenéis EntroPipes 2.0.0 Beta 1 para su descarga para Winbugs y Linux: codeberg.org/son_link/EntroPip

También podéis jugar online en son_link.codeberg.page/entropi




Show Original Post


09.03.2026 17:01
PythonPeak (@PythonPeak@mastodon.social)

How to Make Functions Remember State

Closure captures variables. Inner function sees outer. State without class.

youtube.com/watch?v=SWt7GwZ_ekM




Show Original Post


09.03.2026 16:43
ehmatthes (@ehmatthes@fosstodon.org)

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:

mostlypython.com/what-is-self/

#Python




Show Original Post


09.03.2026 16:42
habr (@habr@zhub.link)

Бот из бытовой боли

Прежде чем начну, вот репозиторий . Я не хочу ничего монетизировать, продавать или куда-то вас вести (в секту имени меня, например). Если этот бот, идея или даже отдельные куски кода окажутся кому-то полезны в жизни - я сделал чей-то день и, возможно, чья-то жизнь стала немного ярче. Начнем.

habr.com/ru/articles/1008218/

#python #автоматизация #рутина




Show Original Post


09.03.2026 15:59
pycon (@pycon@social.python.it)

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:
🔗 pycon.it/tickets

#PyConItalia #CPython #Python





Show Original Post


09.03.2026 15:22
GripNews (@GripNews@mastodon.social)

🌘 Python「延遲匯入」的故事:為何耗時三年且兩次嘗試才終獲成功
➤ 從生產環境的被迫妥協,到直譯器核心的正式優化
techlife.blog/posts/the-story-
Python 啟動速度慢一直是困擾開發者的難題,尤其是當應用程式需要載入龐大的套件(如 PyTorch 或 NumPy)卻僅需執行簡單指令時,系統效能損失顯著。Meta 與 Hudson River Trading 等大型企業為了應對此問題,不得不透過自行修改 Python 直譯器(如 Cinder)來實現「延遲匯入」。經過三年的反覆討論與兩次提案(PEP 690 被拒與 PEP 810 的誕生),Python 官方終於在版本 3.15 引入了語法層級的延遲匯入機制,在保持生態兼容性的同時,成功優化了開發者的使用體驗與效能表現。
+ 終於等到這一天了!每次寫 CLI 工具都要為了匯入這件
810




Show Original Post


09.03.2026 15:17
ngate (@ngate@mastodon.social)

🐍 Python's "Lazy Imports" drama: it only took a mere three years and two colossal attempts for the to accomplish what every other language calls 'Tuesday'. 🤦‍♂️ Apparently, Python's needed a motivational talk—or maybe just a PEP . 😏
techlife.blog/posts/the-story-




Show Original Post


1 ...355 356 357 358 359 360 361 362 363 364 365 ...1592
UP