[Python-Dev] product()
Guido van Rossum
guido at python.org
Thu Oct 23 10:56:27 EDT 2003
More information about the Python-Dev mailing list
Thu Oct 23 10:56:27 EDT 2003
- Previous message: [Python-Dev] product()
- Next message: [Python-Dev] product()
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> In a crazy, I-haven't-yet-had-my-coffee-yet desperate attempt at > resurrecting PEP 274, what if we made dict (and maybe tuple) > accumulator functions too? There's nothing magical about accumulator functions; they're just functions taking an iterable. We have tons of these today, and tuple() and dict() are among them. Once the syntax works, dict((k,k) for k,k in "hello") will with without changes to dict. --Guido van Rossum (home page: http://www.python.org/~guido/)
- Previous message: [Python-Dev] product()
- Next message: [Python-Dev] product()
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list