python

Back Open Paginator
09.03.2026 03:33
villares (@villares@pynews.com.br)

516 triangles on a 4x4 grid of points, avoiding duplicates with whole grid rotation, but not duplicates whit translations (& possible rotations) of the triangles inside the grid.
Find the sketch-a-day archives and tip jar at: abav.lugaralgum.com/sketch-a-d
Code for this sketch at: github.com/villares/sketch-a-d #Processing #Python #py5 #CreativeCoding





Show Original Post


09.03.2026 01:09
cupz (@cupz@mas.to)

This marked the end of the #7drl for us. You can play it here: robotkikker.itch.io/stuck-slee

We worked so hard and had so much fun. The artists got all the art done with time to spare they are machines. There's still a bunch of game-breaking bugs in there which I'll clean up over the next week (but first we relax).

#gamedev #gamejam #pygame #python #7drl #roguelike





Show Original Post


09.03.2026 00:51
py013 (@py013@mastodon.social)

< Dados virando ensinamentos em tempo real! >

Nosso rolou sábado com a @SociedadePinguim, onde apresentamos insights em dados abertos sobre e a Baixada Santista.

Tudo seguido de sorteios e um belo coffee break para todos.

Agradecemos pela participação!





Show Original Post


09.03.2026 00:32
habr (@habr@zhub.link)

Артефактно-ориентированная разработка с AI-ассистентами: методология синхронизации контекста

Делюсь методологией артефактно-ориентированной разработки с AI-ассистентами. Метод решает проблему ограничений контекста в LLM через двустороннюю синхронизацию проекта и сжатых артефактов. Эксперимент на реальном проекте (портфолио с нуля, 36 файлов) показал: 18× меньше файлов для загрузки, 30× ускорение подготовки контекста, 100% воспроизводимость.

habr.com/ru/articles/1008020/

#AI #Development #Productivity #LLM #Python #Architecture




Show Original Post


08.03.2026 23:58
teinturs (@teinturs@social.sciences.re)

ENG - Learning Python for data work in the social sciences is one of my current goals.
I had graaaaaaaat ambitions for this spring break week, which is already drawing to a close… (we did lose an hour to daylight saving time — that counts for something, right?)
So…
✔️ Followed the excellent introductory session by Emilien Schultz (Urfist de Lyon): a course that invites you to reflect on what a programming language actually does to our data — and all that implies — well beyond purely technical or "utilitarian" considerations. Unfortunately, I won't be able to attend the two following sessions, which are offered in person…
✔️ Tracked down a few manuals and tutorials to get the adventure started
✔️ And, as always essential for me: some "context." In this case, the documentary available online — Python, The Documentary (Cult. Repo) — recommended by Emilien during the session. A fascinating dive into the creation of Python — born out of a failure —, its development, the governance challenges of a community that never stopped growing, its near-disappearance, and the — belated but real — inclusion of women developers, with the rise of #PyLadies and one of its leading figures, @mariatta . The documentary tells the story primarily from the perspective of the founders and early developers rather than the broader community — there is doubtless much more to be said —, but it is a wonderful introduction to what has become one of the most essential programming languages around.

Right. Time to open a terminal and write some actual code !

#Python #SocialSciences #OpenSource




Show Original Post


08.03.2026 23:57
teinturs (@teinturs@social.sciences.re)

FR - (English follows - see comments) Apprendre Python pour mon usage de données en sciences sociales est l'un de mes objectifs actuels.
J'avais de graaaaaaaaandes ambitions pour cette semaine de relâche qui s'achève déjà (bon, on a eu une heure de moins avec le retour à l'heure d'été — ça compte un peu, non ?)
Alors…
✔️ Suivi (en ligne) l'excellente introduction de @emilienschultz dans le cadre de @urfistlyon@social.siences.re : une formation qui propose une réflexion sur ce que fait un langage informatique à nos données — avec toutes ses implications —, bien au-delà des considérations purement techniques ou "utilitaires". Je ne pourrai malheureusement pas assister aux deux séances suivantes, offertes en présence…
✔️ Récupéré quelques manuels et tutoriels pour me lancer dans l'aventure
✔️ Et, ce qui est toujours essentiel pour moi : du "contexte". En l'occurrence, le documentaire accessible en ligne : Python, The Documentary (Cult. Repo) — recommandé par Émilien lors de la formation. Une plongée fascinante dans la création de Python — né d'un échec —, son développement, les défis de gouvernance d'une communauté qui n'a cessé de s'élargir, quelques-unes de ses crises, et l'intégration — tardive mais réelle — des femmes de la tech, avec l'émergence des #pyladies, et aussi l'une de ses figures phares : @mariatta . Le documentaire raconte l'histoire principalement du point de vue des fondateurs et premiers développeurs plutôt que de la communauté dans son ensemble — il reste sans doute beaucoup à dire —, mais c'est une magnifique introduction à ce qui est devenu l'un des langages informatiques incontournables.

Et maintenant... plongée dans les choses sérieuses : du python !

youtu.be/GfH4QL4VqJ0

#Python #SciencesSociales #digitalhumanities #OpenSource




Show Original Post


08.03.2026 19:50
grant_h (@grant_h@mastodon.social)

A milestone: Blobs (nodes as sets) now work! Grab a 'parent' blob, and all the children move. Edges connect anywhere on the blob, and default to be orthogonal to the point of contact. graphML read and write working.

Now on to proper hyperedges!





Show Original Post


08.03.2026 18:59
mopicmp (@mopicmp@mastodon.social)

Python Tip: Multiple Assignment

# Swap without temp variable
a, b = b, a

# Multiple returns
def min_max(lst):
return min(lst), max(lst)

lo, hi = min_max([3,1,4,1,5])

Python's tuple packing/unpacking makes swaps and multiple returns elegant.

raccoonette.gumroad.com/l/Pyth




Show Original Post


08.03.2026 18:59
mopicmp (@mopicmp@mastodon.social)

Python Tip: Context Managers

from contextlib import contextmanager

@contextmanager
def timer():
start = time.time()
yield
print(f'Took {time.time()-start:.2f}s')

with timer():
heavy_computation()

Create your own context managers with @contextmanager. Clean resource management and timing.

raccoonette.gumroad.com/l/Pyth




Show Original Post


08.03.2026 18:46
treyhunner (@treyhunner@mastodon.social)

Python Tip #67 (of 365):

When making a class that should support inheritance, don't hard-code references to your own class. Use type(self) to dynamically look up the current class.

This is particularly relevant in __repr__.

Instead of this:

def __repr__(self):
return f"MyClass(...)"

Do this:

def __repr__(self):
class_name = type(self).__name__
return f"{class_name}(...)"

This ensures instances of child classes show the right type in their repr()/str().




Show Original Post


08.03.2026 18:22
habr (@habr@zhub.link)

Telegram-бот вместо Excel-рутины: как я автоматизировал рутину с помощью Python

Как я заменил Excel-сводные на Telegram-бота и ускорил контроль потерь на складе Я автоматизировал рутинный процесс, который постоянно отъедал время: сбор выгрузок, построение сводных в Excel, перенос результатов в Google Sheets и ручной контроль повторений. Теперь всё делается одной кнопкой в Telegram: бот берёт последний файл из папки на Яндекс.Диске, обрабатывает данные и выкладывает готовую витрину в Google Sheets. Отдельно он показывает товар, который начнёт списываться в ближайшие 24 часа — это стало не просто ускорением, а новым инструментом управления потерями. Как всё было?

habr.com/ru/articles/1007960/

#python #telegrambot #google_sheets #api #oauth #yandex_disk #pandas #etl #devops #автоматизация




Show Original Post


08.03.2026 18:22
247CodeGirl (@247CodeGirl@mastodon.social)

Season 1 Lesson 6 Part 6 - Your First Steps - Shorthand Padding with Zero - within f String in Python





Show Original Post


1 ...359 360 361 362 363 364 365 366 367 368 369 ...1592
UP