A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2003-October/038868.html below:

[Python-Dev] accumulator display syntax

[Python-Dev] accumulator display syntax [Python-Dev] accumulator display syntaxGuido van Rossum guido at python.org
Fri Oct 17 13:15:21 EDT 2003
> But, indexing does stretch quite
> far in the current Python syntax and semantics (in Python's
> *pragmatics* you're supposed to use it far more restrainedly).

Which is why I didn't like the 'sum[x for x in S]' notation much.
Let's look for an in-line generator notation instead.  I like

  sum((yield x for x in S))

but perhaps we can make this work:

  sum(x for x in S)

(Somebody posted a whole bunch of alternatives that were mostly
picking random delimiters; it didn't look like the right approach.)

--Guido van Rossum (home page: http://www.python.org/~guido/)

More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4