Python errors aren't just problems - they're helpful features! From syntax errors ensuring clean code to index/key errors preventing silent bugs, these 7 "errors" actually guide better programming. Name errors catch typos, type/value errors ensure proper function use, and assertion errors aid debugging. Embrace Python's explicit error philosophy! #Python #Programming #DataScience #Coding #TechTips https://www.kdnuggets.com/7-python-errors-that-are-actually-features
I made a library to make hacking the new Python REPL easier.
I'm hoping that Python will eventual have a public interface for hacking the REPL, at which point this package will become obsolete.
https://github.com/treyhunner/pyrepl-hacks
/cc @pythonbytes
Ok. Now what #Python #music class should I make (and publish) next? Maybe musical dice, or traditional melodic devices and cadences? Suggestions? :)
I want to enhance the musical *creation* ecosystem. There are plenty of music and #MIDI fundamentals and analysis code, but little for actual creativity it seems. 🤔
😅🤩Giving #justice to Bob bhai this time 🔥 Only Alice mam wins
✅ Just solved LeetCode 3227 – Vowels Game in a String!
Game theory + string manipulation = epic battle🧠💻
#LeetCode #100DaysOfCode #DSA #Coding #Programming #GameTheory #String #Java #Python #CodeNewbie
#DevLife
#100DaysOfCode
#LeetCode
#Coding
#Programming
#DSA
#Java
#ProblemSolving
#Developer
#CodeNewbie

#Python Friday #296: Lint & Format Code With #Ruff
https://pythonfriday.dev/2025/09/296-lint-and-format-code-with-ruff/
I just watched #Python The Documentary — An origin story (84min). Interesting to me were the context in which Python was created, how it started with just a few people and some crazy ideas (and no internet yet), how the community was formed, how they purposefully (and effectively) improved the gender balance in the community (and conference speakers and core developers), and of course some thoughts on the woefully underestimated python 2->3 migration.
Recommended watch!
Just fixed a bug by adding a line that does `self.__class__ = ModuleType`.
Apropos of nothing, you can hire me to maintain critical open source software. I can handle even the kind of critical libraries that are old and terrifying and have millions of downloads a month. Chances are I've seen worse.
@RomanOnARiver Yeah for sure, it was kind of the same for me - when I started out with #Python it was so freeing to not have to use types, but then it turned out to make it way easier to mix up different values or use them in the wrong ways or so on. These days I'll skip type hints when writing something small and quick and probably single-use, but any time I'm trying to make a complex program work correctly, I find that having type hints (and running a tool to check them) helps catch a lot of silly mistakes.
🏝️ Introducing #PyBeach Speaker Moshe Zadka, who would be giving the #Python
talk
🎤 Back off and Give up: The Art of Graceful System Degradation
Moshe will be teach us how to better work with distributed systems under stress, using intelligent retreat strategies that consistently outperform blind persistence.
🗓️ Saturday, September 27, 2025
🌎 Santa Monica, CA
🎟️ Get your ticket now!
https://ti.to/pybeach/pybeach2025

He creado un bot que se llama @frankenrolbot (qué original), es tan fácil que da un poco de miedo. Ya lo había hecho para Twitter y Telegram pero ahora en Mastodon lo tienen tan bien montado que literalmente son cuatro líneas de código en Python.
¿Qué puede hacer mi bot? De momento la idea es que publique una frase, cita, consejo o chiste rolero una vez al día. Otras posibilidades son que busque noticias sobre rol por su cuenta y las republique, que permita jugar a juegos de tipo "Elige tu propia aventura" contestando a preguntas, que sirva de ayudante del máster y le puedas pedir semillas de aventuras, listas de nombres para personajes de fantasía, tiradas de dados...
En cualquier caso, por ahora está en pruebas, así que es probable que haga y diga muchas cosas extrañas mientras le ajusto los circuitos. Tened paciencia con él, la culpa será toda mía.
¡Abajo la IA, vivan los bots!
Một thư viện Python mới, qr-code-engine, giúp tạo mã QR dễ dàng và nhanh chóng chỉ với một lệnh đơn giản: `pip install qr-code-engine` và `qr-gen`. Giao diện GUI giúp việc tạo mã QR trở nên siêu đơn giản mà không cần thiết lập thêm.
#python #qrcode #tool #lập_trình #công_cụ #mã_QR
https://www.reddit.com/r/SideProject/comments/1nf5a59/qrcodeengine/
One of the things I hate about working with #Jinja is that, while you can use pure #python methods to manipulate things, if you rely solely on the Jinja #documentation, you won't see things like .append() or .insert() documented there — not even a casual call-out like "for append functionality, consult the Python documentation"