[issue2350] Warn against importing 'exceptions'

Brett Cannon report at bugs.python.org
Mon Aug 25 01:39:55 CEST 2008


Brett Cannon <brett at python.org> added the comment:

On Sun, Aug 24, 2008 at 2:51 PM, Benjamin Peterson
<report at bugs.python.org> wrote:
>
> Benjamin Peterson <musiccomposition at gmail.com> added the comment:
>
> I'm not sure how we could implement a warning on import of exceptions
> aside from implementing it in the compiler. I suppose 2to3 could just
> remove the import...
>

... and would also have to change all references. But that would
probably work out fine.

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue2350>
_______________________________________


More information about the Python-bugs-list mailing list