[issue27391] server_hostname should only be required when checking host names

R. David Murray report at bugs.python.org
Wed Jun 29 10:46:32 EDT 2016


R. David Murray added the comment:

Sorry, I've been having trouble communicating on this ticket.  I thought I'd posetd an apology but I don't see it...I wonder where I did post it?  Bad morning :(.

Anyway, create_connection was what I was asking for.

Reading the docs, I, at least, agree with you, and if it weren't for backward compatibility I'd suggest making the only way to disable host checking be by passing a context with it disabled.  But failing that I don't see any reason to force you to specify a hostname if you've already said you don't want to check hostnames.

----------

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


More information about the Python-bugs-list mailing list