Python Forum
How to programmatically exit without Traceback?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to programmatically exit without Traceback?
#6
Yes on the colon. When I try that in Visual Studio code the computer raps my knuckles with a ruler.

Exiting out of a program from inside a function is usually a bad idea. Do you get the same message if you run your program outside of Spyder. IDLE is my tool of choice when answering questions on the forum. Sometimes IDLE doesn't work as expected, and when that happens I try running my programs from the command prompt or from Visual Studio Code.
Reply


Messages In This Thread
RE: How to programmatically exit without Traceback? - by deanhystad - Feb-24-2021, 05:51 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Question How create programmatically variables ? SpongeB0B 6 1,676 Aug-19-2023, 05:10 AM
Last Post: SpongeB0B
  How to programmatically stop a program in Jupyter Notebook? Mark17 11 39,157 Feb-12-2023, 01:41 PM
Last Post: jp21in
  Create Excel Line Chart Programmatically dee 3 1,320 Dec-30-2022, 08:44 PM
Last Post: dee
  python difference between sys.exit and exit() mg24 1 2,043 Nov-12-2022, 01:37 PM
Last Post: deanhystad
  Adding Language metadata to a PDF programmatically bhargavi22 0 2,014 Aug-17-2020, 12:53 PM
Last Post: bhargavi22

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020