On sab, 2017-08-12 at 18:23 +0000, skorpio wrote: > I usually quit pygame by breaking out of the main loop and calling > pygame.quit() followed by sys.exit(), but I can't remember anymore > where I learned to use sys.exit and why it should be used.
If you need to use an exit function, then I've found using the built-in exit() function gives an error if you use pyinstaller to create a frozen binary. That's the only reason I try to use sys.exit(). I've not had any problems just allowing the execution to reach the end of the file and completing naturally though.
signature.asc
Description: This is a digitally signed message part