[issue24372] Documentation for ssl.wrap_socket's ssl_version parameter is odd
Eric V. Smith
report at bugs.python.org
Wed Jun 3 15:48:18 CEST 2015
Eric V. Smith added the comment:
It occurs to me that None would also be a fine default, and probably the smarter choice.
Then wrap_socket could say:
if ssl_version is None:
ssl_version = PROTOCOL_SSLv23
And we could change the default as needed, without being held to the actual value. And wrapper code, like mine, would declare a default of None and things would continue to work across versions.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24372>
_______________________________________
More information about the Python-bugs-list
mailing list