this post was submitted on 03 Jun 2025
501 points (99.0% liked)
Programmer Humor
27535 readers
236 users here now
Welcome to Programmer Humor!
This is a place where you can post jokes, memes, humor, etc. related to programming!
For sharing awful code theres also Programming Horror.
Rules
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
That just gave me the idea that it would be fun to inspect
exita little.Which led me down this path:
Okay, cool, the "Use exit() etc." blurb appears because it's the function's
repr, and the string is assembled from itsnameandeofproperties.Now let's try to make our own:
Oh Python, you shouldn't have.
Beauty!
Obviously they need to make
exit's repr method raise aSystemExitDoes gtfo() then work as expected?
Yup
Nice!