Ronald Oussoren wrote: > I'd prefer 'def quit(): raise SystemExit', the class above just adds > a message for someone that accidently got stuck in a python shell. I > don't like the idea of making quit or exit special enough to cause > side effects without parentheses, no other function does that. Anyone > that knows how to program in Python should be able to guess that you > have to use 'quit()' instead of 'quit'. The thing is there primarily for people who *don't* know how to program in Python. If they knew, they knew how to get out of it; they wouldn't type "quit()" but simply Ctrl-D. So if they do >>> quit <function quit at 0xb7d96294> they are just as confused as if they got a name error. Regards, Martin
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4