[Python-Dev] accumulator display syntax
Guido van Rossum
guido at python.org
Tue Oct 21 19:42:20 EDT 2003
More information about the Python-Dev mailing list
Tue Oct 21 19:42:20 EDT 2003
- Previous message: [Python-Dev] accumulator display syntax
- Next message: [Python-Dev] Re: accumulator display syntax
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> FWIW, that's enough to switch my vote for generator expressions from > -0 to +0. Thanks for the support! I value your judgement. > If they work this way then there is essentially no extra > complexity in the language. It's important to look at things from > the perspective of a new Python programmer, I think. > > Another nice thing is that we have tuple and dict comprehensions > for free: > > tuple(x for x in S) > dict((k, v) for k, v in S) > Set(x for x in S) Yes, this is nice. > Aside from the bit of syntactic sugar, everything is nice an > regular. Exactly. We should thank Peter Norvig for starting this discussion! --Guido van Rossum (home page: http://www.python.org/~guido/)
- Previous message: [Python-Dev] accumulator display syntax
- Next message: [Python-Dev] Re: accumulator display syntax
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list