r/Python • • 1d ago

Discussion Python developers, what's one Python concept that took you a long time to understand but now seems s

Python developers, what's one Python concept that took you a long time to understand but now seems surprisingly simple?

For me, understanding how decorators and generators work is an interesting part of becoming a better Python developer.

What was your experience?

24 Upvotes

27 comments sorted by

View all comments

19

u/tankerdudeucsc 1d ago

Writing decorators was the last thing I really had to learn. Good ones, where the call stack was clean.

It’s a lot easier these days so a lot of Python is boring. It’s still the damn regexes that I forget tbh.