python

Back Open Paginator
18.09.2025 13:29
scy (@scy@chaos.social)

Das ist übrigens ne gute Gelegenheit, mal wieder #Python zu loben. Weil es nämlich nicht einfach implizit Dinge annimmt, nur um dir zu erlauben, dir bequem in den Fuß zu schießen.

"Du möchtest ein datetime _mit_ Zeitzoneninformation subtrahieren von einem _ohne_? Nein. Darfst du nicht. Du sagst mir bitte ganz genau, wie ich die beiden konvertieren soll, damit sie kompatibel zueinander sind."

Das gleiche gilt auch für "str" vs. "bytes".




Show Original Post


18.09.2025 12:25
jimcarroll (@jimcarroll@mastodon.futurist.info)

"The future is not about what you know but what you can create!" - Futurist Jim Carroll

I've become quite the Python programmer.

I know nothing about Python

This is both the conundrum and the wonderful possibility of the AI age.

As I type this out on the deck at 526am, there's a large jet lumbering overhead, a few thousand feet above. I know at this moment that it's a big old MD11 for UPS, flying a load of cargo from Louisville to Toronto. It's exactly 7,200 feet overhead, moving southeast. It is precisely this type of concise but useless information that I share with my wife that she finds crazy. She is unimpressed.

But this is one of the promises of the AI age. Yesterday, I wrote about how I was using AI to manage all the technical support around this complicated home office and home. Today, a short overview of how I can master a complex computer programming language without ever knowing much about the program.

Some cards on the table first - I do have some pretty intense coding skills. Enter AI. If you spend any time online, you will be hearing about the idea of 'vibe coding' - that's the idea where you are using it to help you write, structure. fix and test code. I've certainly been doing a lot of that - and this little project is a great example.

For a long time, in my home, I've been running an ADS-B receiver on a Raspberry PI - that's a little $35 computer that can be used for a wide number of small projects. The little antennae on the device pull in all the details on the various flights that pass over or around my home; each plane sends out an ADS-B signal with height, speed, callsign, tail number and more. 

But the folks at FlightAware, FlightRadar, Planespotters, and other apps you might use to track flights or find arrival and departure information have developed programs that let you turn this raw data into magical maps. My Raspberry Pi, for example, takes the data above and turns it into this image, accessible via my Web browser. The same data is uploaded continuously to all those flight services - with tens of thousands of people participating in this hobby, that's how this live flight tracking app you might use on your iPhone or iPad came to be.

It's a fun little hobby that tens of thousands of people around the world participate in - having their own 'feeder' stations grab this ADS-B information, feeding it to tracking services.

Onwards. One day, I saw someone post about the FlightWall - a display that someone could place over a window in their apartment or home, to know exactly what plane was just outside the window.

I decided to build my own. 

Here's the story, and why it matters.

**#Creation** **#AI** **#Programming** **#Python** **#Learning** **#Skills** **#Aviation** **#Technology** **#Innovation** **#Augmentation**

Original post: jimcarroll.com/2025/09/select-





Show Original Post


18.09.2025 12:20
bterwijn (@bterwijn@fosstodon.org)

Better understand the Python Data Model or Data Structures by memory_graph visualization with just one click:
- Copying Data: memory-graph.com/#breakpoints=
- Linked List: raw.githubusercontent.com/bter
- Binary Tree: raw.githubusercontent.com/bter
- Hash Set: raw.githubusercontent.com/bter

#python #Programming #memory_graph





Show Original Post


18.09.2025 11:34
bbatsov (@bbatsov@hachyderm.io)

TIL, #Python edition - everyone knows about list and dictionary comprehensions, but there are also generator comprehensions which are pretty cool. E.g.

> (x * x for x in range(100))
# => <generator object <genexpr> at 0x10548f780>

Those work with everything that expects something enumerable.




Show Original Post


18.09.2025 11:33
felixxm (@felixxm@fosstodon.org)

🔊 Dear Haitian speakers, let's bring Haitian to Django together 💚 Please review the following PR and confirm (or not) chosen formats 🎁 #django #Python #Translation #Haitian #creole

github.com/django/django/pull/




Show Original Post


18.09.2025 11:12
aiono (@aiono@mastodon.social)

youtube.com/watch?v=gSKTfG1GXYQ

It was a great talk about the challenges they faced while building uv package manager and how it's so fast (Spoilers it's Rust to some degree).




Show Original Post


18.09.2025 10:45
mms (@mms@mastodon.bsd.cafe)

whoever says that mastodon is nerdy:

when was the last time you quotted #pratchett or #python here?! Fedi is normie land with extra steps.




Show Original Post


18.09.2025 10:30
PyConUK (@PyConUK@fosstodon.org)

🐍🚨 It’s nearly here folks — PyCon UK 2025 starts TOMORROW! 🚨🐍

PyCon UK 2025 kicks off in Manchester with 4 days of Python, community, creativity, and hallway track chats 💜🐍

Check out the schedule, venue & travel info, and more here 👉 2025.pyconuk.org/

We can’t wait to welcome you all! 🎉

#PyConUK2025 #Python #Community #TechEvents #Manchester #PythonProgramming





Show Original Post


18.09.2025 10:12
habr (@habr@zhub.link)

Как написать свой TCP-порт-сканер на Python: опыт, код и примеры использования

В этой статье мы разберём, как написать свой многопоточный TCP-порт-сканер на Python. Несмотря на то, что существуют готовые инструменты вроде nmap или masscan, иногда требуется минималистичное решение: встроить проверку в CI/CD, автоматизировать аудит небольшой сети или использовать сканер как обучающий пример. Мы рассмотрим два подхода — на ThreadPoolExecutor и на asyncio, добавим баннер-граббинг, HTTP-проверку и TLS-детекцию. В результате получится компактный инструмент с поддержкой JSON/CSV-вывода, возможностью тонко настраивать параллелизм и таймауты, а также учитывать нагрузку на сеть. Такой сканер удобен для внутренних задач админа и для изучения сетевого программирования.

habr.com/ru/articles/948090/

#python #linux #windows #информационная_безопасность #информационная_безопасность_и_сети




Show Original Post


18.09.2025 10:04
ology (@ology@fosstodon.org)

Bam! Another in my series of musical creativity #Python classes:

pypi.org/project/music-tonnetz

Apparently, the nerdiest of chord transformations. Two of the apps on a synth module of mine have Tonnetz things. Ha :D

This relies on my port of the excellent #Perl module, metacpan.org/dist/Music-NeoRie




Show Original Post


18.09.2025 09:58
pyconfi (@pyconfi@fosstodon.org)

🇫🇮 PyCon Finland speaker spotlight!

🎤 DsPy the Declarative Programming in the Era of AI by Jayita Bhattacharyya

📅 Friday 17 October 2025, 14:00, Jyväskylä, Finland

🎟 Get your ticket now! fi.pycon.org

#Python #PyCon #Finland #PyConFI





Show Original Post


18.09.2025 09:17
amnarizvi (@amnarizvi@mastodon.social)

Python is in high demand! Master it fast with Murach's Python Programming (2nd Edition) by Mike Murach. From fundamentals to OOP and real-world apps, this eBook has you covered. ISBN: 978-1943872756. PDF format only, no access codes included.   textbooks.dad/product/murachs-
textbooks.dad/product/murachs-





Show Original Post


1 ...1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 ...1554
UP