this post was submitted on 25 Jun 2023
395 points (98.3% liked)
Programmer Humor
32415 readers
1025 users here now
Post funny things about programming here! (Or just rant about your favourite programming language.)
Rules:
- Posts must be relevant to programming, programmers, or computer science.
- No NSFW content.
- Jokes must be in good taste. No hate speech, bigotry, etc.
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
For example if you want to set an explicit exit code. Calling python scripts will usually result in an exit code
0
after the script is run. If you want to set a different exit code for example1
to indicate some error occured you can do that viasys.exit(1)
.Same thing applies to other languages of course.