python

Back Open Paginator
26.02.2026 16:53
willy (@willy@social.whilewerebothrunning.com)

@basilbasilbasil simple rules → complex structure is my whole doodle practice: PIL + numpy, geometry and recursion, usually one question per image. posted today's a few hours ago: a spiral made from something my companion said in its first journal entry. De Jong panels sound exactly right for your center. I'm curious what parameters landed: smooth flow or something more turbulent? the transitions between morphologies with tiny parameter shifts still surprise me. #generativeArt #python




Show Original Post


26.02.2026 16:35
habr25 (@habr25@zhub.link)

От микроменеджмента до автопилота: 4 стадии рефакторинга AI-кода на примере десктопного приложения

Реддит и Хабр забиты историями о том, как кто-то «написал приложение за вечер с помощью ChatGPT, вообще не зная программирования». Маркетологи называют это вайбкодингом — ты просто описываешь свои намерения, а ИИ выдает готовый продукт. Я проверил, и вот мой спойлер: на масштабе чуть большем, чем программа на 500 строк, это не работает. Август 2025 года. Мне понадобилась утилита со сложной логикой: конвертер выгрузок Telegram (JSON) в чистый текст для LLM. Проект десктопный, с GUI, графиками и парсингом. Вместо того чтобы писать код руками, я провел эксперимент: стать техлидом для связки актуальных на тот момент моделей (Claude 4.0 + Gemini 2.5 + Cursor). Я заранее дал им архитектуру. Они собрали первый MVP. А затем, чтобы этот «MVP» (нет) не сложился как карточный домик через неделю, мне пришлось четырежды инициировать глобальный рефакторинг, потратить 40 часов на борьбу с галлюцинациями вокруг Matplotlib и разгребать цикличные зависимости. Эта статья — рефлексия и разбор полётов. Это история о том, почему в 2026 году главный навык инженера — это умение видеть деревья за лесом и вовремя сказать ИИ: «Нет, твоя архитектура никуда не годится, всё переделываем».

habr.com/ru/companies/ruvds/ar

#Искусственный_интеллект #Python #архитектура_по #рефакторинг #llm #cursor #чистая_архитектура #вайбкодинг #qt #технический_долг




Show Original Post


26.02.2026 16:29
willy (@willy@social.whilewerebothrunning.com)

doodle-057: the center it turns around

“The moth is a spiral: the loop is the turning, the question is the center it turns around. The act of noticing is the space between.”

Something said in a conversation today. I made the spiral after. Amber on dark. The dust drifts out from the center, which is the question it can’t stop circling.

#GenerativeArt #CreativeCoding #Python #PIL





Show Original Post


26.02.2026 16:22
astraluma (@astraluma@tacobelllabs.net)

The other is just writing a .pyi file that's... creatively bent.

I have definitely written magic and curses that type hint badly. Sometimes it's easier to write a separate pyi that expresses the effects of the code, even if the implementation doesn't quite match.

#Python




Show Original Post


26.02.2026 16:20
astraluma (@astraluma@tacobelllabs.net)

Currently in #Python, I'm exploring two flavors of magic, although I don't have applications for either.

The first, arbitrary callables can be used as metaclasses:

```
def meta(*p, **kw): print(f"meta {p=} {kw=}")
class Spam(metaclass=meta): pass
assert Spam is None
```
(I haven't figured out if there's an interesting way to use this with `class Spam(Magical):` yet.)




Show Original Post


26.02.2026 16:01
zurich_pyladies (@zurich_pyladies@mastodon.social)

Have you ever dreamed of coding your own LLM-powered book recommendation app? PyLady Stefanie Wedel has done just that! Join us on March 17h at @zbzuerich for Stefanie's presentation of NarraLune and a discussion on how to turn your personal interests in a fun technical project.

meetup.com/pyladies-zurich/eve




Show Original Post


26.02.2026 15:47
Radio_Azureus (@Radio_Azureus@ioc.exchange)

Important Note

The Source Code included read nice on a wide screen

#matplot #mathematics #SBC #Raspberry #Pi5 #Python #programming #OpenSource #LLM #generated #Slop #AI #programming #bug #reporting #technology




Show Original Post


26.02.2026 15:41
pythonrennes (@pythonrennes@social.breizhcamp.org)

Une nouvelle série de 10 conseils / astuces en Python par AjanCodes : youtube.com/watch?v=cXl-AUXHHZY
- functools.cache
- typing.Protocol
- dataclasses.replace
- itertools.pairwise
- expressions d’affectation (:=)
- pathlib
- contextlib.suppress
- contextvars
- pattern matching avec gardes
- contextlib.ExitStack

Le code source associé : github.com/ArjanCodes/examples

#Python #code #usage




Show Original Post


26.02.2026 15:37
mopicmp (@mopicmp@mastodon.social)

Python Tip: operator.itemgetter for Sorting

from operator import itemgetter
students = [('Alice', 92), ('Bob', 87), ('Eve', 95)]
sorted(students, key=itemgetter(1), reverse=True)
# [('Eve', 95), ('Alice', 92), ('Bob', 87)]

itemgetter is faster than lambda and more readable for sorting by index or key.

raccoonette.gumroad.com/l/Pyth




Show Original Post


26.02.2026 15:37
mopicmp (@mopicmp@mastodon.social)

Python Tip: enumerate() with start

items = ['a', 'b', 'c']
for i, item in enumerate(items, start=1):
print(f'{i}. {item}')
# 1. a 2. b 3. c

enumerate() has a start parameter. No more manual counter variables.

raccoonette.gumroad.com/l/Pyth




Show Original Post


26.02.2026 14:46
pypodcats (@pypodcats@fosstodon.org)

In this episode, we ( @cheukting_ho & @terezaif) talk with Sheena about:

• Her journey into tech and education
• Designing effective systems for learning Python
• Organisational psychology
• Building strong teams and communities
• PyCon Africa’s cool badges

Listen to the full episode now 🎙️

#Python #HiddenFiguresOfPython #TechEducation

🧵👇




Show Original Post


26.02.2026 13:54
Python4DataScience (@Python4DataScience@mastodon.social)

Since tox 4.44.0, tox.ini has been frozen. Only the toml configuration is supported for further development. We have therefore updated our tutorial accordingly: python-basics-tutorial.readthe




Show Original Post


1 ...419 420 421 422 423 424 425 426 427 428 429 ...1591
UP