python

Back Open Paginator
07.03.2026 13:04
mopicmp (@mopicmp@mastodon.social)

Python Tip: match/case (Structural Pattern Matching)

match command.split():
case ['go', direction]:
move(direction)
case ['pick', 'up', item]:
grab(item)
case _:
print('Unknown command')

Python 3.10 match/case goes beyond switch statements. It destructures and binds variables.

raccoonette.gumroad.com/l/Pyth




Show Original Post


07.03.2026 12:28
hp (@hp@mastodon.tmm.cx)

There is a silver lining to the whole #python #chardet debacle. If it is legal to throw a pile of code at an LLM, and tell it to write a new version of that code that is not a derivative then that gives us a lot of options too.

GPL compatible #ZFS? no problem! #ReactOS from the leaked NT/2k sources? No problem!

Maybe this is a golden age for the collapse of proprietary software after all. If they can do an end run around the #GPL we can do an end run around the #EULA.

#opensource




Show Original Post


07.03.2026 12:25
feed (@feed@igeek.gamer-geek-news.com)

🐧 Filecraft – automate file management tasks

Filecraft is a command line utility designed to automate common file organisation tasks. It's written in Python and Go. The post Filecraft – automate file management tasks appeared first on LinuxLi...

📰 Source: LinuxLinks
🔗 Link: https://www.linuxlinks.com/filecraft-automate-file-management-tasks/

#Linux #OpenSource #Python




Show Original Post


07.03.2026 12:12
davep (@davep@fosstodon.org)

I've written a post about some new changes I've made to BlogMore, the static site generator I'm experimenting with. blog.davep.org/2026/03/07/more

#ssg #python #programming #ai #agent #github #copilot




Show Original Post


07.03.2026 10:00
conansysadmin (@conansysadmin@mstdn.social)

I now hunt the great hairy mammoth. Learn to enchant a great snake to send messages in its realm: cromwell-intl.com/open-source/ #OpenSource #Python #TwitterMigration





Show Original Post


07.03.2026 09:52
habr (@habr@zhub.link)

Робот с видеонаблюдением и отслеживанием объекта

Введение Данный проект, является логическим продолжением развития темы " Солнечный трекер на Arduino ". Используя базу солнечного трекера (его конструкцию) и web-камеру можно собрать роботизированную конструкцию, которая будет отслеживать в режиме реального времени назначенный маркер или группу маркеров в определённой области пространства. Распознавать маркеры можно по разным критериям: выбранному цвету, текстуре, форме и т.д. Я выбрал второй вариант. Делаю фото объекта web-камерой, с выбранным однородным цветом, которую буду использовать на роботе. Подготовка ПО Для корректной работы программы вам нужно: 1. Установить Python python.org/ 2. Установить модули numpy, opencv и pyserial используя инструмент pip pypi.org/project/numpy/ pypi.org/project/opencv-python/ pypi.org/project/pyserial/ 3. Установить Arduino ide learnlange.blogspot.com/p/blog Сборка робота Система представляет стационарную установку с двумя степенями свободы, которые позволяют вращаться в пространстве цилиндрической формы. На верхней части системы закреплена USB web-камера (её можно заменить на smart камеру или ip камеру). Для быстрого создания прототипа использую образовательный набор КЛИК: базовый и ресурсный Поворотные механизмы реализованы с использованием DC моторов с понижающей передачей.

habr.com/ru/articles/1007628/

#python #opencv #pyserial #arduino #робототехника #компьютерное_зрение #роботы #отслеживание #с++




Show Original Post


07.03.2026 09:47
w (@w@peer.adalta.social)

La Fragmentation Stratégique du Paysage Développeur

peer.adalta.social/w/prA8hKJDy




Show Original Post


07.03.2026 09:44
mrahikka (@mrahikka@mastodontti.fi)

#europass #geogebra #python #math #mathematics #MathSky

mikkorahikka.blog/2026/03/07/e




Show Original Post


07.03.2026 09:37
w (@w@peer.adalta.social)

The Polyglot Platform Wars Intensify

peer.adalta.social/w/ubf2VY2M2




Show Original Post


07.03.2026 09:31
w (@w@peer.adalta.social)

Fragmentierung als strategische Stärke

peer.adalta.social/w/jACv625BG




Show Original Post


07.03.2026 08:52
localizethedocs (@localizethedocs@floss.social)

🎉 pytest-docs-l10n is published!

🚀 Preview:

projects.localizethedocs.org/p

🌐 Crowdin:

localizethedocs.crowdin.com/py

🐙 GitHub:

github.com/localizethedocs/pyt

#Crowdin #GitHub #Sphinx #Python #Pytest #Testing




Show Original Post


07.03.2026 08:40
jedie (@jedie@chaos.social)

Hab gestern vorschritte gemacht das #unPhone in #MicroPythonOS zu unterstützten:

github.com/MicroPythonOS/Micro

Hänge bei der Einbindung des Touch Screen als Eingabegerät.

#MicroPython #Python #esp32




Show Original Post


1 ...365 366 367 368 369 370 371 372 373 374 375 ...1592
UP