Re: [Python-Dev] [Speed] Benchmarks: Comparison between Python 2.7 and Python 3.6 performance

2016-11-04 Thread Victor Stinner
2016-11-04 20:18 GMT+01:00 Miquel Torres : > Nice! For the record, I'll be giving a talk in PyCon Ireland about > Codespeed. Would you mind me citing those tweets and screenshots, to > highlight usage on speed.python.org? Sure. Keep me in touch in you publish your slides later. > You mentioned n

Re: [Python-Dev] itertools predicates

2016-11-04 Thread Francisco Couzo
Well sorry about it, I didn't know about that PEP 8 line, disregard this thread then :) On Fri, Nov 4, 2016 at 2:29 PM, Raymond Hettinger < raymond.hettin...@gmail.com> wrote: > > > On Nov 3, 2016, at 3:51 PM, Steven D'Aprano wrote: > > > > Before there can be a solution, there first has to be a

Re: [Python-Dev] [Speed] Benchmarks: Comparison between Python 2.7 and Python 3.6 performance

2016-11-04 Thread Miquel Torres
Nice! For the record, I'll be giving a talk in PyCon Ireland about Codespeed. Would you mind me citing those tweets and screenshots, to highlight usage on speed.python.org? You mentioned new more reliable vs old results. How close are we to have an stable setup that gives us benchmarks numbers reg

Re: [Python-Dev] Parsing f-strings from PEP 498 -- Literal String Interpolation

2016-11-04 Thread Eric V. Smith
On 11/4/2016 2:03 PM, Fabio Zadrozny wrote: Using PyParser_ASTFromString is the easiest possible way to do this. Given a string, it returns an AST node. What could be simpler? ​I think that for implementation purposes, given the python infrastructure, it's fine, but for specification p

Re: [Python-Dev] Parsing f-strings from PEP 498 -- Literal String Interpolation

2016-11-04 Thread Fabio Zadrozny
On Fri, Nov 4, 2016 at 3:15 PM, Eric V. Smith wrote: > On 11/4/2016 10:50 AM, Fabio Zadrozny wrote: > >> In what way do you think the implementation isn't ready for a final >> release? >> >> >> Well, the cases listed in the docs​ >> (https://hg.python.org/cpython/file/default/Doc/referenc

Re: [Python-Dev] itertools predicates

2016-11-04 Thread Raymond Hettinger
> On Nov 3, 2016, at 3:51 PM, Steven D'Aprano wrote: > > Before there can be a solution, there first has to be a problem that > needs solving. "Lack of consistency" is not necessarily a problem. The > intertools functions are quite different, they do different things with > different APIs. Th

Re: [Python-Dev] Parsing f-strings from PEP 498 -- Literal String Interpolation

2016-11-04 Thread Eric V. Smith
On 11/4/2016 10:50 AM, Fabio Zadrozny wrote: In what way do you think the implementation isn't ready for a final release? Well, the cases listed in the docs​ (https://hg.python.org/cpython/file/default/Doc/reference/lexical_analysis.rst

[Python-Dev] Summary of Python tracker Issues

2016-11-04 Thread Python tracker
ACTIVITY SUMMARY (2016-10-28 - 2016-11-04) Python tracker at http://bugs.python.org/ To view or respond to any of the issues listed below, click on the issue. Do NOT respond to this message. Issues counts and deltas: open5547 (+23) closed 34821 (+41) total 40368 (+64) Open issues wit

Re: [Python-Dev] Benchmarks: Comparison between Python 2.7 and Python 3.6 performance

2016-11-04 Thread Victor Stinner
The nice thing with benchmarks is that you can always take a subset of numbers to prove something :-) Another subset where Python 3.6 is faster: "Python 3.6 is between 12% (1.14x) and 97% (32x) FASTER than Python 2.7 in the following benchmarks:" https://twitter.com/VictorStinner/status/7945252896

Re: [Python-Dev] Parsing f-strings from PEP 498 -- Literal String Interpolation

2016-11-04 Thread Fabio Zadrozny
Answers inline... On Fri, Nov 4, 2016 at 5:56 AM, Eric V. Smith wrote: > On 11/3/2016 3:06 PM, Fabio Zadrozny wrote: > >> Hi Python-Dev, >> >> I'm trying to get my head around on what's accepted in f-strings -- >> https://www.python.org/dev/peps/pep-0498/ seems very light on the >> details on wh

[Python-Dev] Benchmarks: Comparison between Python 2.7 and Python 3.6 performance

2016-11-04 Thread Victor Stinner
(Re-post without the two attached files of 100 KB each.) Hi, You may know that I'm working on benchmarks. I regenerated all benchmark results of speed.python.org using performance 0.3.2 (benchmark suite). I started to analyze results. All results are available online on the website: https://

Re: [Python-Dev] Parsing f-strings from PEP 498 -- Literal String Interpolation

2016-11-04 Thread Paul Moore
On 4 November 2016 at 08:36, Simon Cross wrote: > On Fri, Nov 4, 2016 at 9:56 AM, Eric V. Smith wrote: >> 2. The parser sees that it's an f-string, and breaks it into expression and >> text parts. > > I'm with Fabio here. It would be really nice to have a grammar > specified and documented for th

Re: [Python-Dev] Parsing f-strings from PEP 498 -- Literal String Interpolation

2016-11-04 Thread Simon Cross
On Fri, Nov 4, 2016 at 9:56 AM, Eric V. Smith wrote: > 2. The parser sees that it's an f-string, and breaks it into expression and > text parts. I'm with Fabio here. It would be really nice to have a grammar specified and documented for this step, even if it's not implemented that way. Otherwise

Re: [Python-Dev] Parsing f-strings from PEP 498 -- Literal String Interpolation

2016-11-04 Thread Eric V. Smith
On 11/3/2016 3:06 PM, Fabio Zadrozny wrote: Hi Python-Dev, I'm trying to get my head around on what's accepted in f-strings -- https://www.python.org/dev/peps/pep-0498/ seems very light on the details on what it does accept as an expression and how things should actually be parsed (and the curre