How can i dectect when a repl stops in python?

additional answer:

try:
    main()
finally:
   # last thing to do
   pass

Could work, but that doesn’t account for the stop button’s existence. Or the tab getting closed.

1 Like

;-; ok sorry about that then

You’re fine, just figured it was a possibility that I would note.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.