Nick Coghlan added the comment:

Leaving the option of context caching entirely to the caller would definitely 
make things simpler - my main interest is just in avoiding a hard compatibility 
break for folks that aren't doing anything particularly wrong, by which I mean 
specifically cases where a wrap_socket() implementation like this one would 
continue to work for them:

    def wrap_socket(sock, *args, *kwds):
        return ssl.get_default_context().wrap_socket(sock, *args, **kwds)

----------

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

Reply via email to