Hi Anthony, I often see you going for `if __name__ == "__main__": exit(main())`, but how is exit supposed to end up in the global namespace? It's present in the REPL, but it doesn't seem to be there in a regular `python3 your_module_here.py` invocation...
it's there for me? do you have a strange `site.py` or are you using `python3 -S` ? both are fairly rare (3rd party packages don't really work without it) - I talk a bit about this in th-cam.com/video/sv46294LoP8/w-d-xo.html
I like the way he makes videos. No pre written scripts and fixing errors on the fly. 👍👍
came here to solve an issue with cycle imports, but learned a lot! thank you!
thank you for explaining it very clear, could able to understand in one go :)
Hi Anthony, I often see you going for `if __name__ == "__main__": exit(main())`, but how is exit supposed to end up in the global namespace? It's present in the REPL, but it doesn't seem to be there in a regular `python3 your_module_here.py` invocation...
it's there for me? do you have a strange `site.py` or are you using `python3 -S` ? both are fairly rare (3rd party packages don't really work without it) - I talk a bit about this in th-cam.com/video/sv46294LoP8/w-d-xo.html
@@anthonywritescode Should've double-checked it, but thanks for the reference to site.py. TIL :D
you appear to have spelled discord incorrectly in your description (future planning)
thank you!