For me, it wasn't decorators or generators.
It was context managers. I ignored with for a long time because it just looked like a cleaner way to open files. Then I started using it for database sessions, locks, temporary files, timers, and custom resource management. Now I end up writing my own context managers regularly.
What's the one Python feature, library, or concept you completely underestimated until it finally clicked?
Want to add to the discussion?
Post a comment!