python

Back Open Paginator
04.11.2025 06:25
morebento (@morebento@aus.social)

Do I go to the Python tech talk before Secret Chiefs 3 and BLOOD INCANTATION?

#music #python #adelaide





Show Original Post


04.11.2025 06:18
GripNews (@GripNews@mastodon.social)

🌘 Python 的 OrderedDict 如何維持順序?
➤ 解密有序字典背後的雙向鏈結與雜湊雜技
piglei.com/articles/en-why-is-
本文深入探討 Python `collections.OrderedDict` 的內部機制,解釋了它如何透過結合雙向鏈結串列與字典來維持鍵的插入順序。即使內建的 `dict` 已預設保持順序,`OrderedDict` 仍因向後相容性、不同的相等性判斷以及額外功能(如 `move_to_end`)而持續存在。文章詳細解析了 `__setitem__` 和 `__iter__` 等方法的實作,並提及了使用 `weakref` 處理循環引用及以 `object()` 作為 `pop` 方法預設值的巧妙之處。
+ 以前一直以為內建 dict 就夠用了,沒想到 OrderedDict 還有這麼多細節和用途,尤其那個 `move_to_end` 真的蠻實用的。
+ 原來 `weakre




Show Original Post


04.11.2025 06:12
CuratedHackerNews (@CuratedHackerNews@mastodon.social)

Why is Python's OrderedDict ordered?

piglei.com/articles/en-why-is-




Show Original Post


04.11.2025 05:39
wraptile (@wraptile@fosstodon.org)

Python's asyncio is becoming so good that it's really tempting to scale up just with it and sooner or later you end up back on celery (or similar task queue) so if you're at that stage rn just bite the bullet and do it now :D

#python #celery




Show Original Post


04.11.2025 05:00
posts (@posts@aisparkup.com)

Kent Beck의 4주 실험: AI 코딩이 ‘바이브’를 넘어서는 법

TDD 창시자 Kent Beck이 4주간 AI와 함께 production-ready 라이브러리를 만들며 발견한 '증강 코딩' 방법론. 바이브 코딩을 넘어선 실전 개발 경험을 소개합니다.

aisparkup.com/posts/6155





Show Original Post


04.11.2025 04:29
brass75 (@brass75@twit.social)

If you have something you think the #Python community would be interested in, please submit a talk to #PyConUS 2026. If you need help, reach out. Click on the checkbox to ask for mentorship.
The hardest part is building up the courage to push the button and submit the proposal.

brassnet.biz/blog/pycon-us-202




Show Original Post


04.11.2025 03:59
ngate (@ngate@mastodon.social)

🤔🤓 Let's get this straight: in 2017, someone thought it was a great idea to scribble code by hand. 🖊️💻 Because, you know, nothing screams like spending three times as long to write a function while pretending to be a artist. 🙄
hillelwayne.com/handwriting-j/




Show Original Post


04.11.2025 03:39
villares (@villares@pynews.com.br)

Back to my map studies... Poly data (c) #OpenStreetMap contributors \nhttps://www.openstreetmap.org/copyright #osmnx #geopandas 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


04.11.2025 03:15
kevinbowen (@kevinbowen@hachyderm.io)

Since upgrading my #Django 5.2.7 projects use #Python 3.14.0, I'm seeing a new warning message when I stop the locally running #Werkzeug instance:

I'm not noticing any issues or change in performance. Perhaps something to look into for curiousity's sake later.

#NoteToSelf





Show Original Post


04.11.2025 03:03
trystuff (@trystuff@exquisite.social)

If you ever need to rebuild or share a python project’s dependencies cleanly, here’s a quick workflow I like:

Create a minimal requirements.txt using pipreqs (instead of pip freeze, which dumps everything):

pip install pipreqs
python -m pipreqs.pipreqs .

For comparison, the pip-freeze way (often too noisy):

pip freeze > requirements.txt

Download all required packages into a local folder (handy for offline installs):

pip download -r requirements.txt -d packages_dir

Then install from that local folder:

pip install -r requirements.txt --no-index --find-links packages_dir

#Python




Show Original Post


04.11.2025 02:47
diazona (@diazona@techhub.social)

@tartley @mdione @hgfernan Any chance you could get away with basicConfig(force=True)? It looks like force will basically replace the effect of an earlier basicConfig(), although of course if anything else is installing handlers and such then you'd need more custom code to deal with those.

#Python




Show Original Post


04.11.2025 01:30
clonbg (@clonbg@masto.es)

Minimizar al tray un programa hecho en PyQt5 myblog.clonbg.es/minimizar-al- #Programación #PyQT #Python clonbg.es





Show Original Post


1 ...1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 ...1565
UP