know what it does, but i don't know where i exactly need to use it
You need it at your app entrypoint (from the shell).
you can wrap code in a module with it, so it can be included, but the code you wraped won't be executed
Useful if your script can be imported
in modules which can be both imported, and run as standalone
Обсуждают сегодня