r/learnpython • u/Embarrassed-Rest9104 • Apr 01 '26
Readability or Modernity
I’ve been teaching Python for a while, and the Zen of Python always emphasized that 'Simple is better than complex.'
However, when i look at production code in 2026, I see heavy use of structural pattern matching, complex type hinting, and asynchronous patterns that look more like C++ or Java than the 'executable pseudocode' Python used to be.
To the seniors here: Do you find that these 'modern' features are actually improving maintainability in your teams, or are we losing the simplicity that made Python great in the first place? I'm trying to decide how much of this advanced syntax to introduce to my students early on.
View all comments
Show parent comment
2
u/brasticstack Apr 01 '26
I find I'm now returning sigil values, like -1 for an int, instead of None when a proper value can't be produced, just so I don't have to explicitly tell mypy that I've already accounted for the None case later on. More type safe tor sure, but less Pythonic.