Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Yeah, that message is a pet peeve of mine. Like, you know what I'm trying to do.


It sort of doesn't! It's just doing exactly the same thing it would do with any other identifier: it's printing its `repr`. Try `repr(exit)`!


More to the point, try `[len,exit,repr]`. Consider what would happen if `exit.__repr__()` did terminate the program.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: