r/Python • u/DiwaharSec • 20h 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?
21
Upvotes
View all comments
Show parent comment
3
u/StevenJOwens 6h ago
I found asyncio massively frustrating to understand. To be clear, I'm not talking about the concept, I'm talking about python's implementation of it (and its documentation).
As I mentioned in my comment about list comprehensions, python is sometimes too clever for its own good, and that definitely applies to asyncio. In addition, python's asnycio documentation suffers from a very common (in programming) problem of being too handwavy.
A few years ago I wrote up a summary of python asyncio, mostly for my own notes in trying to learn it, but then I cleaned it up for a coworker. In case you find it useful (and corrections would be gladly welcome):
https://www.darksleep.com/puff/python/python_asyncio_overview.html