Re: [Python-Dev] Backport ssl.MemoryBIO on Python 2.7?

2017-05-25 Thread Antoine Pitrou
On Tue, 23 May 2017 23:09:31 -0500 Victor Stinner wrote: > Le 23 mai 2017 20:43, "David Wilson" a écrit : > In which case, what is to prevent Requests from just depending on > > pyOpenSSL as usual? > > > From what I heard, pyOpenSSL

Re: [Python-Dev] PEP 544: Protocols - second round

2017-05-25 Thread Antoine Pitrou
On Wed, 24 May 2017 23:31:47 +0200 Ivan Levkivskyi wrote: > Hi all, > > After collecting suggestions in the previous discussion on python-dev > https://mail.python.org/pipermail/python-dev/2017-March/thread.html#147629 > and playing with implementation, here is an updated

Re: [Python-Dev] Micro-optimizations by adding special-case bytecodes?

2017-05-25 Thread Victor Stinner
Hi Ben, I am not convinced that combining operations will have a significant impact in term of performance. Mark Shanon implemented that in his HotPy project. I proposed a RETURN_NONE opcode to combine LOAD_CONST with RETURN_VALUE. The issue was rejected because I failed to show any speedup.

Re: [Python-Dev] Snap Python for simple distribution across multiple Linux distros

2017-05-25 Thread Martin Wimpress
Hi, On 23/05/17 17:54, Guido van Rossum wrote: I think the I inevitable conclusion is"thanks, but no thanks." Can I ask why this the inevitable conclusion? The Python Foundation make packages for Windows and macOS, why not snaps for Linux? On May 23, 2017 8:05 AM, "Martin Wimpress"

Re: [Python-Dev] 2017 Python Language Summit coverage

2017-05-25 Thread MRAB
On 2017-05-25 22:16, Gregory P. Smith wrote: Thanks Jake! I'm laughing at not being in the photo. That must've happened soon after I left the room as I disappeared a tad early. I'll pretend I'm hiding behind Brett or Thomas. ;) > -gps > Or someone could Photoshop you in. :-) On Thu,

Re: [Python-Dev] Micro-optimizations by adding special-case bytecodes?

2017-05-25 Thread Victor Stinner
After reading Cesare Di Mauro's email, I realized that I was thinking to WPython in fact... Victor Le 25 mai 2017 8:11 PM, "Mark Shannon" a écrit : > > > On 25/05/17 03:47, Victor Stinner wrote: > >> Hi Ben, >> >> I am not convinced that combining operations will have a

Re: [Python-Dev] 2017 Python Language Summit coverage

2017-05-25 Thread Gregory P. Smith
Thanks Jake! I'm laughing at not being in the photo. That must've happened soon after I left the room as I disappeared a tad early. I'll pretend I'm hiding behind Brett or Thomas. ;) -gps On Thu, May 25, 2017 at 10:34 AM Barry Warsaw wrote: > On May 25, 2017, at 08:03 AM,

Re: [Python-Dev] PEP 544: Protocols - second round

2017-05-25 Thread Mark Shannon
On 24/05/17 14:31, Ivan Levkivskyi wrote: Hi all, After collecting suggestions in the previous discussion on python-dev https://mail.python.org/pipermail/python-dev/2017-March/thread.html#147629 and playing with implementation, here is an updated version of PEP 544. -- Ivan I really like

Re: [Python-Dev] Micro-optimizations by adding special-case bytecodes?

2017-05-25 Thread Mark Shannon
On 25/05/17 03:47, Victor Stinner wrote: Hi Ben, I am not convinced that combining operations will have a significant impact in term of performance. Mark Shanon implemented that in his HotPy project. I don't think that I did ;) HotPy implemented a trace-based optimising interpreter, that

Re: [Python-Dev] Micro-optimizations by adding special-case bytecodes?

2017-05-25 Thread Ben Hoyt
Thanks, Victor. That's very helpful. So RETURN_NONE (and probably RETURN_SMALL_CONST) are not worth it, based on your empirical tests. Your patch shows how (relatively) straight-forward it is to test out new opcodes. I'm still optimistic about the value of COMPARE_IS_NONE and COMPARE_IS_NOT_NONE,

Re: [Python-Dev] Micro-optimizations by adding special-case bytecodes?

2017-05-25 Thread Cesare Di Mauro
Hi Ben, for what you're interested in, you might give a look at WPython 1.0 ( https://code.google.com/archive/p/wpython/downloads ) and 1.1 ( https://code.google.com/archive/p/wpython2/downloads ), but they cover a lot of optimizations (as you can see from a brief look at the slides):

Re: [Python-Dev] Backport ssl.MemoryBIO on Python 2.7?

2017-05-25 Thread Nick Coghlan
On 25 May 2017 at 21:24, Antoine Pitrou wrote: > The new TLS API wouldn't significantly improve security. It's just a > different API. It isn't just a different API. It's an API with *backends for the native TLS implementations on WIndows and Mac OS X*. This means that

Re: [Python-Dev] PEP 544: Protocols - second round

2017-05-25 Thread Nick Coghlan
On 25 May 2017 at 21:26, Antoine Pitrou wrote: > On Wed, 24 May 2017 23:31:47 +0200 > Ivan Levkivskyi wrote: > >> Hi all, >> >> After collecting suggestions in the previous discussion on python-dev >>

Re: [Python-Dev] Backport ssl.MemoryBIO on Python 2.7?

2017-05-25 Thread Victor Stinner
Le 25 mai 2017 1:26 PM, "Antoine Pitrou" a écrit : System admins can add the company CA at the system level in the system's CA cert store, they have no need for a Python API. If I understood correctly, since the Python ssl module is unable to load system CAs (at least on

Re: [Python-Dev] PEP 544: Protocols - second round

2017-05-25 Thread Jelle Zijlstra
2017-05-25 7:19 GMT-07:00 Nick Coghlan : > On 25 May 2017 at 21:26, Antoine Pitrou wrote: > > On Wed, 24 May 2017 23:31:47 +0200 > > Ivan Levkivskyi wrote: > > > >> Hi all, > >> > >> After collecting suggestions in the previous

Re: [Python-Dev] Snap Python for simple distribution across multiple Linux distros

2017-05-25 Thread Nick Coghlan
On 25 May 2017 at 20:32, Martin Wimpress wrote: > Hi, > > On 23/05/17 17:54, Guido van Rossum wrote: >> >> I think the I inevitable conclusion is"thanks, but no thanks." > > > Can I ask why this the inevitable conclusion? The Python Foundation make > packages for

[Python-Dev] 2017 Python Language Summit coverage

2017-05-25 Thread Jake Edge
Hola python-dev, Thanks to Larry and Barry, I was able to sit in on the Python Language Summit again this year. The start of the coverage for that is now available. The starting point is the overview article, here: https://lwn.net/Articles/723251/ (for non-subscribers, this link will get

Re: [Python-Dev] 2017 Python Language Summit coverage

2017-05-25 Thread Barry Warsaw
On May 25, 2017, at 08:03 AM, Jake Edge wrote: >Thanks to Larry and Barry, I was able to sit in on the Python Language >Summit again this year. The start of the coverage for that is now >available. Thanks so much for your always excellent reporting Jake. It's unfortunate that we can't invite

Re: [Python-Dev] 2017 Python Language Summit coverage

2017-05-25 Thread Eric Snow
On Thu, May 25, 2017 at 7:03 AM, Jake Edge wrote: > > Hola python-dev, > > Thanks to Larry and Barry, I was able to sit in on the Python Language > Summit again this year. The start of the coverage for that is now > available. > > [snipped] > > Hopefully I captured things