Re: [Python-Dev] Third milestone of FAT Python

2015-12-04 Thread Victor Stinner
2015-12-04 20:16 GMT+01:00 MRAB : > On 2015-12-04 12:49, Victor Stinner wrote: > [snip] > > I don't think that's constant folding, but constant _propagation_. > > Constant folding is when, say, "1 + 2" replaced by "2". Oh, you're right. I update the documentation. To avoid confusion, I just implem

Re: [Python-Dev] Python Language Reference has no mention of list comÃprehensions

2015-12-04 Thread Eric Fahlgren
David R. Murray wrote: > I think the intuitive notion of "literal" is "the value is literally what is > written > here". Which is a redundant statement; 'as written' is, after all, what > literally > means when used correctly :). That makes it a language-agnostic concept if > I'm > correct.

Re: [Python-Dev] Third milestone of FAT Python

2015-12-04 Thread MRAB
On 2015-12-04 19:22, Isaac Morland wrote: On Fri, 4 Dec 2015, MRAB wrote: > Constant folding is when, say, "1 + 2" replaced by "2". Isn't that called backspacing? ;-) Oops! I meant "1 + 1", of course. Or "3". Either would work. :-) ___ Python-Dev m

Re: [Python-Dev] Third milestone of FAT Python

2015-12-04 Thread Isaac Morland
On Fri, 4 Dec 2015, MRAB wrote: Constant folding is when, say, "1 + 2" replaced by "2". Isn't that called backspacing? ;-) Isaac Morland CSCF Web Guru DC 2619, x36650 WWW Software Specialist ___ Python-Dev mailing list Python-Dev@

Re: [Python-Dev] Third milestone of FAT Python

2015-12-04 Thread MRAB
On 2015-12-04 12:49, Victor Stinner wrote: [snip] Constant folding This optimization propagates constant values of variables. Example: def func() x = 1 y = x return y Constant folding: def func() x = 1 y = 1 ret

Re: [Python-Dev] Python Language Reference has no mention of list comÃprehensions

2015-12-04 Thread Andrew Barnert via Python-Dev
On Dec 4, 2015, at 00:38, Nick Coghlan wrote: > > On 4 December 2015 at 12:48, Andrew Barnert via Python-Dev > wrote: >> On Dec 3, 2015, at 17:25, Steven D'Aprano wrote: On Thu, Dec 03, 2015 at 09:25:53AM -0800, Andrew Barnert via Python-Dev wrote: I've seen people saying that b

[Python-Dev] Summary of Python tracker Issues

2015-12-04 Thread Python tracker
ACTIVITY SUMMARY (2015-11-27 - 2015-12-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: open5289 (+26) closed 32266 (+28) total 37555 (+54) Open issues wit

Re: [Python-Dev] Python Language Reference has no mention of list comÃprehensions

2015-12-04 Thread R. David Murray
On Fri, 04 Dec 2015 18:38:03 +1000, Nick Coghlan wrote: > Summarising that idea: > > * literals: any of the dedicated expressions that produce an instance > of a builtin type > * constant literal: literals that produce a constant object that can > be cached in the bytecode > * dynamic literal: li

[Python-Dev] Third milestone of FAT Python

2015-12-04 Thread Victor Stinner
Hi, I implemented 3 new optimizations in FAT Python: loop unrolling, constant folding and copy builtin functions to constants. In the previous thread, Terry Reedy asked me if the test suite is complete enough to ensure that FAT Python doesn't break the Python semantic. I can now say that the secon

Re: [Python-Dev] Python Language Reference has no mention of list comÃprehensions

2015-12-04 Thread Nick Coghlan
On 4 December 2015 at 12:48, Andrew Barnert via Python-Dev wrote: > On Dec 3, 2015, at 17:25, Steven D'Aprano wrote: >> On Thu, Dec 03, 2015 at 09:25:53AM -0800, Andrew Barnert via Python-Dev >> wrote: >>> I've seen people saying that before, but I don't know where they get >>> that. It's certai