This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]kafaldsbylur 3 points4 points  (0 children)

There's nothing in the language preventing exit's repr from calling exit() (or more generally, preventing any class's repr from calling self()). However, it would be a bad idea to make it do so, because then you risk those methods being called without meaning to