[Python-Dev] win32 specific exception in the core?

Barry A. Warsaw bwarsaw@cnri.reston.va.us (Barry A. Warsaw)
Mon, 7 Feb 2000 10:26:04 -0500 (EST)


>>>>> "TP" == Tim Peters <tim_one@email.msn.com> writes:

    TP> Sounds good to me, but if & only if it's a subclass of OSError

I agree (and I think Mark's been given some ideas about how to
accomplish this).

    TP> (why?  because nothing else makes sense <wink>).  I added
    TP> UnboundLocalError as a subclass of NameError (in the CVS
    TP> tree), so you can mimic what that did.  IIRC, for the benefit
    TP> of the old "string-based exceptions" option hack,
    TP> UnboundLocalError reverts to NameError if class-based
    TP> exceptions are disabled ...

I wouldn't worry about string-based standard exceptions.  Didn't we
decide to get rid of these (and -X) for 1.6 at IPC8?

-Barry