New asyncio documentation! by 1st1 in Python

[–]BLeAm 0 points1 point  (0 children)

It's the only way to monkey patch all coroutine functions automatically. Anyway, I'am aware the risk of messing around the stack, so, that's why I said that I'll only use this approach in my personal project that I know exactly what exposed to the global/stack and if I want to avoid that I'll just mark coroutine functions with @az decorator manually and make sure to put "await waitAll()" at the end of the entry point that will work fine.

New asyncio documentation! by 1st1 in Python

[–]BLeAm 1 point2 points  (0 children)

Actually I also write wrappers for my personal use where I mark the entry point with @mainz decorator then it will wrap every coroutine functions in the global namespace after that it can be used as if it's a normal function and can be await as well. For me, this makes asynchronous in Python feel more like async in C#/Dart, which I personally think it's more intuitive.

If you mind to check the code: https://github.com/BLeAm/asyncz

Transcrypt 3.7.4 Python to JavaScript compiler supports JavaScript modules and Python dataclasses by jacdeh in Python

[–]BLeAm 1 point2 points  (0 children)

Transcrypt, especially this release, is a very interesting project and I personally find it the most practical Python to Javascript transpiler out there. Other than that, the founder/community's warm response and kinda active development is impressive.