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

2015-12-03 Thread Chris Angelico
On Fri, Dec 4, 2015 at 12:25 PM, Steven D'Aprano wrote: > I don't see any good reason for maintaining that there's just one > syntax, "display", which comes in two forms: a comma-separated set of > values, or a for-loop. The only thing they have in common (syntax-wise) > is that they both use [ ]

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

2015-12-03 Thread Steven D'Aprano
On Thu, Dec 03, 2015 at 09:25:53AM -0800, Andrew Barnert via Python-Dev wrote: > > On Dec 3, 2015, at 08:15, MRAB wrote: > > > >>> On 2015-12-03 15:09, Random832 wrote: > >>> On 2015-12-03, Laura Creighton wrote: > >>> Who came up with the word 'display' and what does it have going for > >>> it

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

2015-12-03 Thread Andrew Barnert via Python-Dev
> On Dec 3, 2015, at 08:15, MRAB wrote: > >>> On 2015-12-03 15:09, Random832 wrote: >>> On 2015-12-03, Laura Creighton wrote: >>> Who came up with the word 'display' and what does it have going for >>> it that I have missed? Right now I think its chief virtue is that >>> it is a meaningless nou

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

2015-12-03 Thread R. David Murray
On Thu, 03 Dec 2015 16:15:30 +, MRAB wrote: > On 2015-12-03 15:09, Random832 wrote: > > On 2015-12-03, Laura Creighton wrote: > >> Who came up with the word 'display' and what does it have going for > >> it that I have missed? Right now I think its chief virtue is that > >> it is a meaningle

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

2015-12-03 Thread MRAB
On 2015-12-03 15:09, Random832 wrote: On 2015-12-03, Laura Creighton wrote: Who came up with the word 'display' and what does it have going for it that I have missed? Right now I think its chief virtue is that it is a meaningless noun. (But not meaningless enough, as I associate displays with

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

2015-12-03 Thread Ryan Gonzalez
On December 3, 2015 10:09:56 AM CST, Ryan Gonzalez wrote: > > >On December 3, 2015 8:26:23 AM CST, Laura Creighton >wrote: >>In a message of Thu, 03 Dec 2015 13:37:17 +, Paul Moore writes: >>>On 3 December 2015 at 12:51, Laura Creighton wrote: Intentional or Oversight? >>> >>>Hard to

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

2015-12-03 Thread Laura Creighton
In a message of Thu, 03 Dec 2015 15:09:12 +, Random832 writes: >> 6.2.4 Constructing lists, sets and dictionaries -- explicitly or through >> the use of comprehensions > >I don't like the idea of calling it "explicit construction". >Explicit construction to me means the actual use of a ca

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

2015-12-03 Thread Random832
On 2015-12-03, Laura Creighton wrote: > Who came up with the word 'display' and what does it have going for > it that I have missed? Right now I think its chief virtue is that > it is a meaningless noun. (But not meaningless enough, as I > associate displays with output, not construction). In a

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

2015-12-03 Thread Laura Creighton
In a message of Thu, 03 Dec 2015 13:37:17 +, Paul Moore writes: >On 3 December 2015 at 12:51, Laura Creighton wrote: >> Intentional or Oversight? > >Hard to find :-) > >https://docs.python.org/3/reference/expressions.html#displays-for-lists-sets-and-dictionaries > >I went via "Atoms" in the ex

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

2015-12-03 Thread Paul Moore
On 3 December 2015 at 12:51, Laura Creighton wrote: > Intentional or Oversight? Hard to find :-) https://docs.python.org/3/reference/expressions.html#displays-for-lists-sets-and-dictionaries I went via "Atoms" in the expression section, then followed the links in the actual grammar spec. Paul