[Python-Dev] building extensions as builtins is broken in 3.7

2018-04-02 Thread Pablo Galindo Salgado
Hi, I am working on the release blocker https://bugs.python.org/issue32232. I tried to apply the patch proposed by Matthias Klose and I found that it works on Unix but it fails to build on Windows (probably because circular imports). I tried to add some tests but after some work on the problem and

Re: [Python-Dev] Why is pickle.DEFAULT_PROTOCOL still 3?

2018-04-02 Thread Gregory P. Smith
On Mon, Apr 2, 2018 at 3:57 PM Lukasz Langa wrote: > > > On Apr 2, 2018, at 2:13 PM, Antoine Pitrou wrote: > > > > On Mon, 2 Apr 2018 13:48:46 -0700 > > Lukasz Langa wrote: > >> Pickle protocol version 4.0 was originally defined back in PEP 3154 and > shipped as part of Python 3.4 back in 2011.

Re: [Python-Dev] Why is pickle.DEFAULT_PROTOCOL still 3?

2018-04-02 Thread Lukasz Langa
> On Apr 2, 2018, at 2:13 PM, Antoine Pitrou wrote: > > On Mon, 2 Apr 2018 13:48:46 -0700 > Lukasz Langa wrote: >> Pickle protocol version 4.0 was originally defined back in PEP 3154 and >> shipped as part of Python 3.4 back in 2011. Yet it's still not the default. > > Because we want pickles

Re: [Python-Dev] Why is pickle.DEFAULT_PROTOCOL still 3?

2018-04-02 Thread Gregory P. Smith
Given that, go ahead and change in master (3.8). On Mon, Apr 2, 2018 at 3:13 PM Christian Heimes wrote: > On 2018-04-02 22:48, Lukasz Langa wrote: > > Pickle protocol version 4.0 was originally defined back in PEP 3154 and > shipped as part of Python 3.4 back in 2011. Yet it's still not the defa

Re: [Python-Dev] Why is pickle.DEFAULT_PROTOCOL still 3?

2018-04-02 Thread Christian Heimes
On 2018-04-02 22:48, Lukasz Langa wrote: > Pickle protocol version 4.0 was originally defined back in PEP 3154 and > shipped as part of Python 3.4 back in 2011. Yet it's still not the default. > There's a number of things that would run faster with it like multiprocessing. > > This is too late f

Re: [Python-Dev] Why is pickle.DEFAULT_PROTOCOL still 3?

2018-04-02 Thread Antoine Pitrou
On Mon, 2 Apr 2018 13:48:46 -0700 Lukasz Langa wrote: > Pickle protocol version 4.0 was originally defined back in PEP 3154 and > shipped as part of Python 3.4 back in 2011. Yet it's still not the default. Because we want pickles produced with the default to be readable by earlier Python 3 versi

[Python-Dev] Why is pickle.DEFAULT_PROTOCOL still 3?

2018-04-02 Thread Lukasz Langa
Pickle protocol version 4.0 was originally defined back in PEP 3154 and shipped as part of Python 3.4 back in 2011. Yet it's still not the default. There's a number of things that would run faster with it like multiprocessing. This is too late for 3.7 which is a shame but can we at least bump it

Re: [Python-Dev] IDLE colorizer

2018-04-02 Thread Guido van Rossum
Heh. The good old manual approach. :-) How bad indeed? >>> from idlelib import colorizer; colorizer.make_pat() from idlelib import colorizer; colorizer.make_pat() '\\b(?PFalse|None|True|and|as|assert|break|class|continue|def|del|elif|else|except|finally|for|from|global|if|import|in|is|lambda|nonlo

Re: [Python-Dev] IDLE colorizer

2018-04-02 Thread MRAB
On 2018-04-02 05:43, Guido van Rossum wrote: My question for you: how on earth did you find this?! Speaking of a needle in a haystack. Did you run some kind of analysis program that looks for regexprs? (We've received some good reports from someone who did that looking for possible DoS attacks.

[Python-Dev] [Crosspost from python-committers] Announcing: signups are open for the 2018 Python Language Summit

2018-04-02 Thread Larry Hastings
It’s that time again: time to start thinking about the Python Language Summit!  The 2018 summit will be held on Wednesday, May 9, from 10am to 4pm, at the Huntington Convention Center in Cleveland, Ohio, USA.  Your befezzled and befuddled hosts Barry and Larry will once more be behind the big