[Python-Dev] Proposed schedule for 3.4.2 (original) (raw)

Antoine Pitrou solipsis at pitrou.net
Thu Sep 11 20:36:29 CEST 2014


On Mon, 8 Sep 2014 10:44:51 -0700 Alex Gaynor <alex.gaynor at gmail.com> wrote:

Shifts uncomfortably it looks like presently there's not a good way to change anything about the SSL configuration for urllib.request.urlopen. It does not take a context argument, as the http.client API does: https://docs.python.org/3/library/urllib.request.html#module-urllib.request and instead takes the cafile, capath, cadefault args.

The reason it doesn't take a context argument is that SSL contexts are hard to understand and configure for the average urlopen() user (why should people know about ssl module specifics to open an HTTPS URL?).

http.client is more low-level and therefore more amenable to such powerful knobs.

Regards

Antoine.



More information about the Python-Dev mailing list