python

Back Open Paginator
14.02.2026 23:38
cedric (@cedric@fosstodon.org)

Stegano 2.2.0 is out!

Notable changes:

- Performance improvements — steganography operations are now 50–1000x faster (direct pixel access via load(), fixed O(n²) parsing issue)
- Support for hiding/revealing messages in PCM .wav files
- Added shi_tomashi generator support in stegano-lsb CLI

More details here: github.com/cedricbonhomme/Steg

#Stegano #Python #Steganography #OpenSource #Graphic




Show Original Post


14.02.2026 23:22
stemcoding (@stemcoding@mastodon.social)

"I'm your density" -George McFly, BTTF 🚗 ⚡️
Happy Valentine’s Day from STEMcoding!! ❤️

While George McFly fumbled that interaction, Density is a great way to talk about connections or how much "stuff" is packed into a space.

Try this in python:
n = 25 # Number of students
total = n * (n - 1)
print(f"Total cards: {total}")





Show Original Post


14.02.2026 23:12
habr (@habr@zhub.link)

[Перевод] Возможно, самый гениальный код на python на сегодня: разбираем 200-строчный microgpt от Андрея Карпаты

Буквально на днях Андрей Карпаты, один из ранних сооснователей OpenAI, покинувший компанию, исследователь нейросетей, опубликовал на Гитхаб фантастическую вещь: чистый (без специализированных библиотек) 200-строчный python-код трансформера, аналога GPT-2, для изучения всеми желающими. И написал в блоге статью для понимания этого кода (и работы трансформеров). Я перевёл статью, комментарии к коду и дополнил своими комментариями для лучшего понимания — ведь этот код (я уверен!) войдёт в ИТ-историю... Присоединяйтесь к этому завораживающему сеансу разоблачения gpt-магии, за считанные годы овладевшей миром!..

habr.com/ru/articles/996404/

#Андрей_Карпаты #microgpt #llmмодели #python




Show Original Post


14.02.2026 23:10
TurboLearnPHP (@TurboLearnPHP@mastodon.social)

Bot User Agent Block

Drop known scrapers at the edge in milliseconds.

youtube.com/watch?v=a22XpC0KTIc




Show Original Post


14.02.2026 23:02
steko (@steko@scholar.social)

IOSACal 0.7 is here. Nothing fancy but lots of maintenance work that keeps the project going, improved documentation and - if I can keep it up - a renewed development wave.

pypi.org/project/iosacal/0.7.0/

#archaeology #OpenScience #Python #ClimateScience





Show Original Post


14.02.2026 23:00
PythonPeak (@PythonPeak@mastodon.social)

JSON Decode Error Invalid JSON

A Python developer conversation about json decode error invalid json

#python #coding #developer #programming #bug #error

youtube.com/watch?v=oHkr0CP5suY




Show Original Post


14.02.2026 22:39
davep (@davep@fosstodon.org)

Currently playing with adding optional #Numba support to Complexitty; my #Mandelbrot plotter for the #terminal. The speedup is okay.

Given this zoom and position, on my M2 Mac mini, 0.8 seconds. With Numba: 0.2 seconds.

I should give it a spin on my M2 Pro mini.

Without Numba on my 2019 Intel MacBook Pro the same spot takes about 2 seconds.

#Python #programming





Show Original Post


14.02.2026 21:32
red (@red@mastodon.gamedev.place)

Anyone have any good open source examples of complete Python games they can link me? I'm having to rewrite some of Py Trek because the project is getting massive and out of hand and would like to see what good practices actually are for python stuff
#python #gamedev #programming




Show Original Post


14.02.2026 20:45
mistersql (@mistersql@mastodon.social)

Good interview of the maintainer of coverage.py

youtube.com/watch?v=xjWjfRVTUHo




Show Original Post


14.02.2026 20:21
treyhunner (@treyhunner@mastodon.social)

Python Tip #45 (of 365):

Think of dictionaries as primarily about keys, at least when it comes to asking questions of them.

When we loop over a dictionary we get keys:

>>> counts = {"cats": 1, "ducks": 3}
>>> for thing in counts:
... print(thing)
...
cats
ducks

When we ask whether something is "in" a dictionary we're asking about the keys:

>>> "cats" in counts
True
>>> 2 in counts
False

Python's dictionaries see the world through their keys.

🧵(1/2)

#Python #DailyPythonTip




Show Original Post


14.02.2026 19:44
hugovk (@hugovk@mastodon.social)

And finally, for now, the best one.

When I make a typo in the release notes, I no longer need to type in the URL for the admin site, then click to see release list, find the relevant release, and click to edit.

Instead I can click the "Edit" button right there on the page!!!





Show Original Post


14.02.2026 19:39
hugovk (@hugovk@mastodon.social)

Thanks to @Monorepo for doing most of this, which needed changes to both the release process and the website: releases since 13th January now show SHA-256 checksums instead of MD5!

python.org/downloads/release/p





Show Original Post


1 ...482 483 484 485 486 487 488 489 490 491 492 ...1589
UP