python

Back Open Paginator
18.09.2025 17:52
mark (@mark@mastodon.fixermark.com)

Honestly the hack I'm proudest of that I've done in emacs is a keyboard shortcut that, given an undefined symbol in Python, adds an import for that symbol to the top of the file.

❌ - complicated algorithm for finding all possible valid symbols in all packages visible in this Python project

✅ - find the symbol definition in an open Python buffer, (using nothing more impressive than a regex search), compute the relative path between the symbol's location and the current buffer file's location, turn that into an import path, slam it into the top of the buffer.

Coupled with a handful of hard-coded values for things in the typing package (that really could stand to be builtin to the language but aren't because Python has gotten onto the slow bouncy-castle-slide into "too big to make better" behind C++), this works staggeringly well most of the time.

#emacs #Python




Show Original Post


18.09.2025 17:42
habr (@habr@zhub.link)

DSL против универсальных языков: когда стоит создавать собственный доменный язык и как избежать ошибок

Мир разработки полон соблазнов изобретать собственные решения. Один из самых ярких соблазнов — создать свой DSL (Domain-Specific Language). Это звучит красиво: язык, который идеально отражает задачи конкретной предметной области. Но где заканчивается здравый смысл и начинается велосипедостроение? В статье я попробую на примерах показать, когда DSL — это спасение, а когда лучше взять старый добрый Python, C# или даже Bash.

habr.com/ru/articles/948242/

#dsl #domainspecific_language #универсальные_языки #Python #парсинг #грабли #пример_кода #бизнеслогика #etl #парсер




Show Original Post


18.09.2025 17:35
sinisterporpoise (@sinisterporpoise@mastodon.online)

I love it when my computer science students let me excute a plan that begins with "Let me write a quick #Python program

#programming #computer_science #win




Show Original Post


18.09.2025 17:29
shakthimaan (@shakthimaan@mastodon.social)

PyCon India 2025 keynote presentation is available at shakthimaan.com/downloads/PyCo. Special thanks to the @pyconindia organizing committee, volunteers and the community for the wonderful conference and hospitality. @ThePSF





Show Original Post


18.09.2025 17:19
PyConUK (@PyConUK@fosstodon.org)

💙 Huge thanks to Flok Health for sponsoring #PyConUK2025! 💙

Your support makes a real difference — helping us bring together Pythonistas from all walks of life to celebrate code, community, and creativity 🐍✨

🌐 Learn more about Flok Health: flok.health/

🐍 Sponsors: 2025.pyconuk.org/sponsors/

#Python #TechCommunity #Sponsors #PyConUK2025 #PythonProgramming





Show Original Post


18.09.2025 17:01
gtronix (@gtronix@infosec.exchange)

PyPI invalidates tokens stolen in GhostAction supply chain attack

[...] The Python Software Foundation team has invalidated all PyPI tokens stolen in the GhostAction supply chain attack in early September, confirming that the threat actors didn't abuse them to publish malware.

bleepingcomputer.com/news/secu

#Python




Show Original Post


18.09.2025 16:21
hugovk (@hugovk@mastodon.social)

Just released: Python 3.14.0 release candidate 3! 🚀🐍

🪄 Finally, the final release candidate

🪄 We fixed *another* bug that required the ".pyc magic number" to be increased

🪄 The ABI isn't changing, and wheels built for rc1 and rc2 should still work

👤 This was the first release @savannah shadowed!

🏆 Please test and report bugs!

discuss.python.org/t/python-3-




Show Original Post


18.09.2025 15:23
jacket (@jacket@tech.lgbt)

After the 3, yes, THREE! Dependency attacks using #npm,

1: please lock your version and run tools to figure out if you have vulnerabilities in you dependencies.

2: Maybe integrating the most used functionality in the language is a good thing instead of relying on a million deps like in #javascipt or #python.




Show Original Post


18.09.2025 15:19
driscollis (@driscollis@mastodon.social)

Have you ever used a generator expression in ? They are similar to a list comprehension except that you get a generator returned.

Check it out:





Show Original Post


18.09.2025 15:03
youranonriots (@youranonriots@kolektiva.social)

Two fake Python packages just dropped a powerful RAT on Windows.

“sisaws” & “secmeasure” secretly install SilentSync — capable of stealing browser passwords, files, and screenshots. #Python #CyberSecurity #InfoSec
thehackernews.com/2025/09/sile




Show Original Post


18.09.2025 14:06
i3mainz (@i3mainz@wisskomm.social)

Zum 23. Mal fand Mitte September der #MainzerWissenschaftsmarkt statt - an einem neuen Standort und mit einem neuen Format: einem zusätzlichen Programm für Schulklassen. Beides kam sehr gut an!

hs-mainz.de/news/wima-2025-bur

#AR #VR #3DDaten #VisualStudioCode #python #Unity #Virtualreality #Marksburg #monitoring #profilscanning #Eigenfrequenzen #mainzed

@mainzed





Show Original Post


18.09.2025 13:47
adamchainz (@adamchainz@fosstodon.org)

🚀 Django 6.0 alpha 1 is out, so let's start testing against it!

I’ve just released versions of these 17 packages with Django 6.0 support:

django-auto-prefetch, django-browser-reload, django-cors-headers, django-harlequin, django-htmx, django-linear-migrations, django-minify-html, django-mysql, django-perf-rec, django-permissions-policy, django-read-only, django-rich, django-version-checks, django-watchfiles, heroicons, inline-snapshot-django, whitenoise

Enjoy!

#Django #Python




Show Original Post


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