[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: starting to dive into python package bugs



On 3 July 2013 19:36, Barry Warsaw <barry@debian.org> wrote:
The reason is that if some code is trying to:

    except 'error message'

this will fail if the raise site is changed.

In fact it will already fail - recent Python 2 versions throw a TypeError if you attempt to raise a bare string (from at least 2.6 - I don't have older versions to check). Changing the exception could still lead to it getting caught by an except: clause which previously missed it, though.

Thomas

Reply to: