python

Back Open Paginator
05.09.2025 15:30
pyconza (@pyconza@fosstodon.org)

We have a few gaps in our schedule. If you're interested in speaking at #PyCon #Africa, please submit a proposal: za.pycon.org/pages/talks/how_t.

Note: Apply only if you do not need financial assistance, as we have exhausted our grants budget.

#Python





Show Original Post


05.09.2025 15:23
warrickball (@warrickball@mas.to)

I just learned that this is in PEP8:

For sequences, (strings, lists, tuples), use the fact that empty sequences are false:

```
# Correct:
if not seq:
if seq:
```

I disagree. When I'm reviewing code and see a line like that, I presume `seq` is a boolean.

If you're testing if something has length zero, is it not clearer to... test if its length is zero? 🤔

```
if len(seq) == 0:
```

#Python




Show Original Post


05.09.2025 15:22
encbladexp (@encbladexp@chaos.social)

Aufgabe: Ihr dürft #golang oder #python verwenden, und müsste damit ca. 2000 Verbindungen offen halten.

QUIC oder WebSockets? Welche Library? Alternativen?

Die offenen Verbindungen bekommen ab und an bidirektional Daten. Manchmal wenige Kilobyte, manchmal gehen einige Megabyte oder ein mehr oder weniger interaktiver Stream durch.

Sehr high-level, ich weiß.

Wird effektiv nur so ein typischer IoT Durchlauferhitzer, proxied zwei verschiedene Welten, die eine Seite ist hinter NAT.




Show Original Post


05.09.2025 14:52
habr (@habr@zhub.link)

[Перевод] Что с Python? Меньше производительности, никакого сахара и больше багов

Python продолжает меняться, но не всегда так, как ждёт сообщество. Новый синтаксический сахар отклоняют, прирост производительности оказывается скромнее обещанного, а очередные депрекации в setuptools ломают проекты. При этом экосистема получает долгожданный стандартный lock-файл и поддержку uv в Dependabot. В статье разбираем, что это значит на практике и почему начинающим Python-разработчикам важно следить за этими изменениями.

habr.com/ru/companies/otus/art

#python #Python_314 #производительность_Python #pep #синтаксический_сахар #зависимости #setuptools #Dependabot




Show Original Post


05.09.2025 14:44
ksonly (@ksonly@mastodon.ml)

получилось у меня реализовать поиск эмодзи через алгоритм левенштейна
как по мне реализация на нем работает лучше и с меньшим кол-во кода (имхо)

на этом работа завершена до лучших времен пока не научусь алгоритму поиска синонимов для слов

#python #pet_проекты




Show Original Post


05.09.2025 14:10
pythonbrasil (@pythonbrasil@pynews.com.br)

Tutorial

Unlocking the Power of LLMs: Creating RAG Applications - David Camacho

We'll explore the power of Retrieval-Augmented Generation (RAG) models, which combine the strengths of LLMs with the flexibility of retrieval-based approaches.

#python #bolhadev #pythonbrasil #pybr2025





Show Original Post


05.09.2025 13:55
qiita (@qiita@rss-mstdn.studiofreesia.com)

「今日夜ご飯いる?」をDXした
qiita.com/yoshiddddd/items/d8b

#qiita #Python #RaspberryPi #初心者 #IoT #LINEmessagingAPI




Show Original Post


05.09.2025 13:55
qiita (@qiita@rss-mstdn.studiofreesia.com)

GitHub ActionsでAWS Lambdaを簡単かつ爆速でデプロイしよう!【Python編】
qiita.com/TooMe/items/b54219fd

#qiita #Python #lambda #CICD #GitHubActions




Show Original Post


05.09.2025 13:41
schenklklopfer (@schenklklopfer@chaos.social)

Ich beschwer mich ja gerne mal über #Python

Hier mal ein konkretes Beispiel:

Siehe Bild1.

Ich will was installieren.
pip install ... geht nicht

Es werden drei Alternativen vorgeschlagen.
In den Paketquellen gibt es das nicht, als venv hab ichs installiert bekommen und als pipx auch.
Also isses jetzt zwei mal drauf, aber mein Tool, dass diese Abhängigkeit braucht sagt immernoch, dass es nicht installiert sei.

Siehe Bild2.

Ja was soll ich denn noch machen?!

*cry*





Show Original Post


05.09.2025 13:32
ThePSF (@ThePSF@fosstodon.org)

This weekend is great time to get to know the nominees who are running for the PSF Board of Directors this year! If you affirmed your intention to vote in this year's election or voted last year, make sure to check your email 📩 #python
python.org/nominations/electio




Show Original Post


05.09.2025 13:28
wahlatlas (@wahlatlas@norden.social)

Auf dem Weg zur #scicar25 in einem pünktlichen ICE. Vorhin habe ich noch in Wiesbaden bei @destatis auf der statistischen Woche etwas zu Einkommen und Miete visualisiert. Das werde ich morgen bei meinem Vortrag zu Datenbanken der amtlichen Statistik aufgreifen. Zu beiden Veranstaltungen gibt es #python Code auf github.com/StatistischesBundes





Show Original Post


05.09.2025 13:06
ax6761 (@ax6761@freeradical.zone)

... Or, give up on creating installable #Python packages, re-pick up #Perl instead.




Show Original Post


1 ...1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 ...1550
UP