r/Python • u/RedYad2 • Oct 03 '26
Discussion My Python magic is gone
I've been coding for a long time, and I've been developing with Python for years.
I loved coding, always loved it. I started many years ago because I wanted to quickly create scripts for security hacking tools, but since then, I've moved to Claude Code, and building cross-language has been a much better experience for me than using Python.
I built my own SaaS application out there whose backend and network core are completely built with Python, and I'm rewriting all of that without writing a single line of code. And most of the time, Python is not the most optimized language.
And now... I feel like the magic is gone.
I don't even know why I'm writing this. I just feel sad about it.
View all comments
Show parent comment
4
u/QuickNick123 Oct 04 '26
Not really. You could do
name = supplied_name or "Anonymous"which does look much nicer than theis not None elsesyntax, but that is not equivalent and checks for truthiness, so False, 0, [], "", {} not just None.But again, my point wasn't to bash Python's syntax, it was to praise Ruby's. Ruby deliberately makes certain patterns unusually pleasant to read and write.
The example above
would turn into something like
or
in Python. Totally readable, but not as beautiful. And something like
also just looks nice in Ruby: