python

Back Open Paginator
18.08.2025 10:46
bterwijn (@bterwijn@fosstodon.org)

SOLUTION: raw.githubusercontent.com/bter
explanation: github.com/bterwijn/memory_gra

#Python #memory_graph #ShallowCopy #DeepCopy





Show Original Post


18.08.2025 10:33
choan (@choan@social.anartist.org)

Buenos días.

Ayer escribí un script utilísimo (para mí) en #python

Y, nenes: no me gusta python.

Dado que lo que hice es un churro, creo que el refactor, si llega a darse, va a empezar por reescribirlo en otro lenguaje.




Show Original Post


18.08.2025 10:30
PyConUK (@PyConUK@fosstodon.org)

⭐️🎤 Talk spotlight! 🎤 ⭐️

🎙 Beyond lists: why other collection types are often better by David Seddon
pretalx.com/pyconuk-2025/talk/

🎟️ Grab your ticket! 2025.pyconuk.org/tickets/

#PyConUK2025 #Python





Show Original Post


18.08.2025 10:21
GripNews (@GripNews@mastodon.social)

🌘 Tilus:GPU 核心程式語言
➤ 駕馭 GPU 運算:Tilus 的誕生與實踐
github.com/NVIDIA/tilus
Tilus 是一個以 Python 實作的 GPU 核心程式語言,專注於提供線程塊(thread-block)層級的粒度控制,並將張量(tensors)視為主要資料類型。它允許開發者對共享記憶體和暫存器進行明確控制,支援低精度(1 至 8 位元)的任意位元寬度資料類型,並整合了自動調優和快取功能,提供 Pythonic 的介面,大幅簡化 GPU 程式開發流程。
+ 這個新推出的 GPU 程式語言聽起來很有潛力,特別是它對低精度資料類型的支援,對於 LLM 部署應該非常有幫助。
+ 雖然 Tilus 的概念聽起來很吸引人,但實際應用中,其穩定性和效能表現如何,還有待時間驗證。




Show Original Post


18.08.2025 10:18
GripNews (@GripNews@mastodon.social)

🌘 統一:使用 Python 實現基本統一演算法
➤ 解碼符號學的精確匹配:從模式比對到最廣泛的統一者
eli.thegreenplace.net/2018/uni
本文深入探討了在邏輯學和電腦科學中至關重要的「統一」(unification) 概念,並透過 Python 程式語言提供了一個完整的、可實際操作的基礎演算法實作。作者首先解釋了統一的本質,將其視為模式比對的延伸,並詳細闡述瞭如何透過尋找變數賦值來使兩個符號項相等。文中介紹了符號項的表示法,包括常數、變數以及函數應用,並舉例說明瞭模式比對和統一的過程。隨後,作者引用 Peter Norvig 的研究,指出了一個常見於教科書的統一演算法錯誤,並基於 J.A. Robinson 的開創性工作,提出了一個正確且簡潔的實作。文章核心在於展示了 `unify` 和 `unify_variable` 兩個關鍵函數的運作邏輯,前者負責處理函數應用和遞歸地統一參數,後者則處理變數的統一,並引入了 `occurs_check` 來防止潛在的無限循環。透過




Show Original Post


18.08.2025 07:30
lobsters (@lobsters@mastodon.social)

Functional Programming HOWTO lobste.rs/s/jrdrxz
docs.python.org/3/howto/functi




Show Original Post


18.08.2025 07:24
diazona (@diazona@techhub.social)

@AlSweigart Nice! I could see that being handy.

I don't suppose you have one that gives ASNs?

#Python




Show Original Post


18.08.2025 07:12
habr (@habr@zhub.link)

Как подключить проект Django к S3 от Yandex

Выбрал сервис Yandex Object Storage (S3) для медиа (фото) и статики. Потратил пару дней, чтобы подключить. Статью от Яндекса не нашел, использовал пару сторонних сайтов и информацию с Chat GPT. И вот решил написать свою статью. Начнем с Django. По идее в settings.py у вас так...

habr.com/ru/articles/938040/

#яндекс #s3 #django #python #статика




Show Original Post


18.08.2025 05:45
leanpub (@leanpub@mastodon.social)

Mastering Modern Time Series Forecasting + Mastering Catboost leanpub.com/b/mastering_modern by Valery Manokhin is the featured bundle of ebooks 📚 on the Leanpub homepage! leanpub.com





Show Original Post


18.08.2025 04:46
maurice (@maurice@pompat.us)

I took a little time explaining to #Claude what my learning goals were for #Python. I asked for a learning curriculum (which is now a project artifact), made up a project prompt, and basically asked Claude to give me a Python bootcamp.

I'm super #ADHD so I've really been struggling with the book method. TONS of reading, not much action. BOOOOORING.

I'm not far in yet, but Claude is giving me those dopamine hits that come with socratic teaching. It knows enough about my tech background to draw on my non-Python experiences and ask me "how would you do this in (other context)?" And then gives me hints about the Pythonic way to do the same thing, but I still have to write the working code.

I'm going to stick to this for a bit. I don't need to be able to pass a coding test or work in Python day to day professionally. At least not yet.




Show Original Post


18.08.2025 04:20
villares (@villares@pynews.com.br)

Code at: github.com/villares/sketch-a-d
More sketch-a-day: abav.lugaralgum.com/sketch-a-d
If you like this, support my work:
paypal.com/donate/?hosted_butt
liberapay.com/Villares
wise.com/pay/me/alexandrev562 #Processing #Python #py5 #CreativeCoding





Show Original Post


18.08.2025 01:30
edmond (@edmond@vael.town)

#Python 3.14 is looking good, with some nice optimizations.

Happy to see native uuid7 support, which makes UUID's time-sortable. Been waiting for this one. Really handy to use as database IDs for time-series data.

docs.python.org/3.14/whatsnew/




Show Original Post


1 ...1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 ...1547
UP