502
exit
(dubvee.org)
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.
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!