iterators (was: python-dev summary)

Erno Kuusela erno-news at erno.iki.fi
Fri Feb 16 10:55:00 CET 2001


In article <96ipv7$hug$2 at nntp9.atl.mindspring.net>, "Andrew Dalke"
<dalke at acm.org> writes:

| Grant Griffin:
|| However...
|| 
|| I regret Python's increasing loss of status as "executable
|| pseudo-code".  This proposal, as well as 2.0's "list comprehensions",
|| seem to be making Python harder for the uninitiated to read.  (To be
|| fair, though, as a "moderately-initiated" Pythoneer, I've recently
|| warmed up to list comprehensions.)
|| [more comments removed]

| I admit to a "Me too!" here.

me three!

actually, the first time i saw the proposal for

for key:value in dict:
    ...

i thought it was a joke. ok, it's not obscure, but i
don't see the point either.

list comprehensions also look pretty obscure to me (compared to the
rest of python's syntax), and don't do a lot that you can't do with
map/filter now that we have lexical scoping.

  -- erno



More information about the Python-list mailing list