Re:How to Make Python Wait
by 2rsf on Thursday December 19, 2019 @07:49AM
(#21834421)
Good article on an important topic for novices, but why is it so long ?
[ Parent
| on HN ]
Because it helps you learn.
You can tell someone a brief answer to memorize, but to teach them anything takes a little more explaining.
For example, Question #1 is often "how do I do this in some particular way", but 2 and 3, "why" and "when" should I do it that particular way -- they take more explaining than #1 -- and through that explanation, you start to get good at your craft.
Re:How to Make Python Wait
by HeadInTheClouds on Friday December 20, 2019 @07:06AM
(#21843514)
Actually I also liked the way each iteration built on the previous concept. Having the full code at each step adds a lot to the length, but for beginners, this is really useful.
Actually, I started reading about async/await from asyncio package. But for a newbie the above article is much simpler to grasp concurrency and parallelism concepts. And the sample code makes it a lot easier.