[issue8721] urlparse.urlsplit regression in 2.7

R. David Murray report at bugs.python.org
Wed May 19 19:03:47 CEST 2010


R. David Murray <rdmurray at bitdance.com> added the comment:

Why would you not want to catch all value errors?  I assume (perhaps a bad thing) that distribute will repeat the returned error message in a more user friendly format.  If a bug in urlparse returns a spurious ValueError, that will presumably be found (and then corrected) either by the test suite or by other code in addition to distribute.

The standard library should use standard exceptions unless there is a compelling reason to create a new exception.  This rule of thumb has not always been followed, of course.

----------

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


More information about the Python-bugs-list mailing list