[issue33034] urllib.parse.urlparse and urlsplit not raising ValueError for bad port

Matt Eaton report at bugs.python.org
Sat Mar 17 08:32:17 EDT 2018


Matt Eaton <agnosticdev at gmail.com> added the comment:

This is a very good point, Eric.  For backwards compatibility we would have to set the default parameter to false, so we be in the same state we are today by default.  Knowing this my vote would be to go with the improvements to the ValueError message when using .port as the current PR does now.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33034>
_______________________________________


More information about the Python-bugs-list mailing list