<div dir="ltr">Pushed a new version which I believe adresses all of these. I added an example of opting-out with urllib.urlopen, let me know if there's any other APIs you think I should show an example with.<br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 19, 2014 at 3:06 PM, Guido van Rossum <span dir="ltr"><<a href="mailto:guido@python.org" target="_blank">guido@python.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div>The PEP doesn't specify any of the API changes for Python 2.7. I feel it is necessary for the PEP to show a few typical code snippets using urllib in Python 2.7 and how one would modify these in order to disable the cert checking.<br><br></div>There are also a few typos; especially this paragraph puzzled me:<br><br>This will be acheived by adding a new ``ssl._create_default_https_context``<br>function, which is the same as ``ssl.create_default``. ``http.client`` can then<br>replace it's usage of ``ssl._create_stdlib_context`` with the new<br>``ssl._create_default_https_context``.<br><br></div>(1) spelling: it's achieved, not achieved<br></div><br>(2) method name: it's ssl.create_default_context, not ssl.create_default<br><br></div>(3) There's not enough whitespace (in the rendered HTML on <a href="http://legacy.python.org" target="_blank">legacy.python.org</a>) before http.client -- I kept reading it as "... which is the same as ssl.create_default.http.client ..."<br><br></div><div>(4) There's no mention of the Python 2 equivalent of http.client.<br><br></div><div>Finally, it's kind of non-obvious in the PEP that this affects Python 2.7.X (I guess the one after the next) as well as 3.4 and 3.5.<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 19, 2014 at 9:53 AM, Alex Gaynor <span dir="ltr"><<a href="mailto:alex.gaynor@gmail.com" target="_blank">alex.gaynor@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
I've just updated the PEP to reflect the API suggestions from Nick, and the<br>
fact that the necessary changes to urllib were landed.<br>
<br>
I think this is ready for pronouncement, Guido?<br>
<br>
Cheers,<br>
Alex<br>
<br>
_______________________________________________<br>
Python-Dev mailing list<br>
<a href="mailto:Python-Dev@python.org" target="_blank">Python-Dev@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/python-dev" target="_blank">https://mail.python.org/mailman/listinfo/python-dev</a><br>
Unsubscribe: <a href="https://mail.python.org/mailman/options/python-dev/guido%40python.org" target="_blank">https://mail.python.org/mailman/options/python-dev/guido%40python.org</a><span class="HOEnZb"><font color="#888888"><br>
</font></span></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><br>-- <br>--Guido van Rossum (<a href="http://python.org/~guido" target="_blank">python.org/~guido</a>)
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">"I disapprove of what you say, but I will defend to the death your right to say it." -- Evelyn Beatrice Hall (summarizing Voltaire)<br>"The people's good is the highest law." -- Cicero<br><div>GPG Key fingerprint: 125F 5C67 DFE9 4084</div></div>
</div></div>