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
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
>
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.
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
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
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
On 03.12.2015 17:09, 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
Laura Creighton writes:
> Am I missing something important about the 'display' language?
A display is a constructor that looks like a literal but isn't. It is
syntactically like the printed output, but may contain expressions to
be evaluated at runtime as well as compile-time constant
On 03.12.2015 18:30, Laura Creighton wrote:
> What I would like is if it were a lot easier for a person who just
> saw a list comprehension for the very first time, and was told what it
> is, to have a much, much easier time finding it in the Reference Manual.
Such a person should more likely be
On 3 December 2015 at 14:26, Laura Creighton wrote:
> Am I missing something important about the 'display' language?
It's a term that's used in the lisp and/or functional programming
communities, I believe. And I think I recollect that something similar
is used in (mathematical)
I borrowed 'display' from the formal definition of ABC. It's still used in
the quick reference: http://homepages.cwi.nl/~steven/abc/qr.html#EXPRESSIONS
. I hadn't heard it before and didn't think to research its heritage. I
like it for list/set/dict displays since it's rather a stretch to call
What I would like is if it were a lot easier for a person who just
saw a list comprehension for the very first time, and was told what it
is, to have a much, much easier time finding it in the Reference Manual.
Would a section on comprehensions in general, defining what a comprehension
is be
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
> 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
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
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
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
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
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 find :-)
>>
On 03.12.2015 19:27, Laura Creighton wrote:
> So how do we get search to work so that people in the Language
> Reference who type in 'List Comprehension' get a hit?
It seems that the search index is broken for at least a few
documentation file releases:
ok:
So how do we get search to work so that people in the Language
Reference who type in 'List Comprehension' get a hit?
Laura
___
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
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
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
On 12/3/2015 5:56 PM, Chris Angelico wrote:
You come across something syntactic that begins by opening a square
bracket, and you know that its semantics are: "construct a new list".
That's what's common here.
What goes*inside* those brackets can be one of two things:
1) A (possibly empty)
On 2015-12-04 01:56, Chris Angelico wrote:
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
On 2015-12-04 01:25, Steven D'Aprano wrote:
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:
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:
>>> On Dec 3, 2015, at 08:15, MRAB wrote:
>>>
> On 2015-12-03 15:09, Random832 wrote:
> On 2015-12-03,
27 matches
Mail list logo