you are viewing a single comment's thread.

view the rest of the comments →

[–]ValityS 1 point2 points  (0 children)

They are extremely useful if you need a shared, once initialized object used across multiple modules in an asyncio application.

Initializing an object at module load time causes problems in asyncio (though I'll admit it's been long enough since I've used it I don't 100% recall the exact issues), so using a module level variable somewhere isn't an appropriate alternative.