Michael Hudson wrote: > Walter Dörwald <[EMAIL PROTECTED]> writes: > >>Ka-Ping Yee wrote: >> >>>[...] >>> (a) ban string exceptions >>> (b) require all exceptions to derive from Exception >>> (c) ban bare "except:" >>> (d) eliminate sys.exc_* >> >>I think somewhere in this list should be: >> >> (?) Remove string exceptions from the Python stdlib > > I think this is done, more or less. There's one in test_descr, I > think (probably testing that you can't raise str-subclasses but can > raise strs).
There are a few appearances in docstrings, and the Demo, Mac/Tools and Tools directories. Those should be rather simple to fix. The only problem might be if there is code that catches these exceptions. >>and perhaps: >> >> (?) Make Exception a new style class > > I have a patch for this on SF, of course. http://www.python.org/sf/1104669 it seems. Bye, Walter Dörwald _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com