[Python-Dev] import exceptions

Guido van Rossum guido at python.org
Thu Sep 1 02:05:21 CEST 2005


On 8/31/05, Neal Norwitz <nnorwitz at gmail.com> wrote:
> Is there any reason to import exceptions?  It's only done in 4 places:
> Lib/asyncore.py, Lib/shutil.py, Lib/idlelib/PyShell.py, and
> Lib/test/test_exceptions.py.  I can understand the one in test, but
> should the other 3 be removed since exceptions are builtin?

I'm guessing this is a remnant from a transitional period around Python 1.5.

Let's get rid of it.

-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)


More information about the Python-Dev mailing list