-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Ka-Ping Yee wrote: > [...] > (b) If more handholding seems like a good idea, then: > > class ExitHatch: > def __call__(self): sys.exit() > def __repr__(self): return '<Type "exit()" to exit Python.>' > __builtins__.exit = __builtins__.quit = ExitHatch()
That looks like a good compromise to me. - -- Gerhard -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFDsdPWdIO4ozGCH14RAsTyAKCW5mwCJ/cN+UbKICufXwmDIX9/tgCfQLJa LaEL4a4pV7Jhnh3ry/b+CrU= =/FQl -----END PGP SIGNATURE----- _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com