This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eric.smith
Recipients docs@python, eric.smith
Date 2015-06-03.13:48:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1433339298.69.0.231472669954.issue24372@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2015-06-03 13:48:18eric.smithsetrecipients: + eric.smith, docs@python
2015-06-03 13:48:18eric.smithsetmessageid: <1433339298.69.0.231472669954.issue24372@psf.upfronthosting.co.za>
2015-06-03 13:48:18eric.smithlinkissue24372 messages
2015-06-03 13:48:18eric.smithcreate