Re: [Python-Dev] Reading Python source file

2015-11-18 Thread Ryan Gonzalez
Well, not quite the same thing, but https://github.com/kirbyfan64/pfbuild/blob/master/pfbuild embeds the compressed version of 16k LOC. Would it be affected negatively in any way be this? Since all the data is on one line, I'd think the old (current) parser would end up reading in the whole

Re: [Python-Dev] Reading Python source file

2015-11-18 Thread Guido van Rossum
On Wed, Nov 18, 2015 at 4:15 AM, Hrvoje Niksic wrote: > On 11/18/2015 03:31 AM, Nick Coghlan wrote: >> >> That behaviour is then inherited at the command line by both the -m >> switch and the support for executing directories and zip archives. >> When we consider that the

Re: [Python-Dev] Benchmark results across all major Python implementations

2015-11-18 Thread R. David Murray
On 17 Nov 2015, at 21:22, Stewart, David C wrote: > On 11/17/15, 10:40 AM, "Python-Dev on behalf of R. David Murray" > rdmur...@bitdance.com> wrote: >> >> I suppose that for this to have maximum

Re: [Python-Dev] Reading Python source file

2015-11-18 Thread Hrvoje Niksic
On 11/18/2015 04:48 PM, Guido van Rossum wrote: That trick doesn't work unless the data looks like Python comments or data (e.g. a docstring). Python has always insisted on being able to parse until EOF. The only extreme case would be a small script followed by e.g. 4 GB of comments (where the

Re: [Python-Dev] Reading Python source file

2015-11-18 Thread Hrvoje Niksic
On 11/18/2015 03:31 AM, Nick Coghlan wrote: That behaviour is then inherited at the command line by both the -m switch and the support for executing directories and zip archives. When we consider that the "-c" switch also executes an in-memory string, direct script execution is currently the odd

Re: [Python-Dev] Reading Python source file

2015-11-18 Thread Nick Coghlan
On 19 November 2015 at 02:50, Ryan Gonzalez wrote: > Well, not quite the same thing, but > https://github.com/kirbyfan64/pfbuild/blob/master/pfbuild embeds the > compressed version of 16k LOC. Would it be affected negatively in any way be > this? > > Since all the data is on one

Re: [Python-Dev] [Python-checkins] cpython (3.4): asyncio.docs: Fix versionadded

2015-11-18 Thread Martin Panter
On 18 November 2015 at 17:45, yury.selivanov wrote: > https://hg.python.org/cpython/rev/b34c42e46e7b > changeset: 99204:b34c42e46e7b > branch: 3.4 > parent: 99201:89d66f912671 > user:Yury Selivanov > date:Wed Nov 18

[Python-Dev] Python stdlib ssl.SSLContext is missing mode setting ability

2015-11-18 Thread Ben Bangert
In Python 2 and 3, the ssl module's SSLContext object has a way to set SSL options, but not to set SSL modes. The set_mode command and some of the available modes: https://www.openssl.org/docs/manmaster/ssl/SSL_CTX_set_mode.html The most critical mode is SSL_MODE_RELEASE_BUFFERS, which can drop