Martin Panter added the comment:

In general, I would be against stripping square brackets if the host and port 
have already been separated, e.g. in the address tuple used with 
socket.create_connection() etc. It feels like unnecessary double processing, 
which should already have been done at a higher level.

But I guess you could make the argument that adding this feature in 
HTTPConnection simplifies the API by improving consistency with the case where 
the port is not specified separately. But I would still say it is not a bug fix 
nor regression, and should be documented as being added in the next Python 
version (3.7 atm).

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue28539>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to