which python trick or hack you know that you would want to share? - eviltoast
  • litchralee@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    2
    ·
    5 months ago

    If using asyncio is too impenetrable, try using Trio instead. It’s a sensibly-designed asynchronous library, to the point that you’ll find it’s easier to write non-trivial Python programs in Trio from the start, rather than bolting-on async support later.

    Asyncio is just plain weird, IMO, exposing more low-level concerns than is customary for Python. Whereas Trio lets you get things done intuitively.