[Python-Dev] a quit that actually quits

skip@pobox.com skip at pobox.com
Tue Dec 27 14:07:01 CET 2005


    Fredrik> whaddya think?

We're going to wind up with the same problem that spawned the atexit module:
multiple code sources wanting to fiddle with sys.excepthook step on one
another's toes.  For example, I already use an excepthook in interactive
mode to try to resolve NameErrors:

    % python
    Python 2.5a0 (#2, Dec 10 2005, 14:05:27) 
    [GCC 3.3 20030304 (Apple Computer, Inc. build 1671)] on darwin
    Type "help", "copyright", "credits" or "license" for more information.
    >>> sys.excepthook
    <function _autoload_exc at 0x3d6830>
    >>> sin(12)
    found sin in math module
    -0.53657291800043505

Other than that, seems fine to me.

Skip


More information about the Python-Dev mailing list