On 4/30/04 6:11 PM -0400 Barry Warsaw <barry at python.org> wrote: >> Not all? When would [listcomp] ever not be replaceable by list(gencomp)? > > I dunno. I happen to like [listcomp] syntax over list(genexpr). Oh, me too (and I'm getting a little irritated with writing dict([...]) so often instead of having a proper dictcomp syntax) but semantically I think they are the same. -- David Eppstein http://www.ics.uci.edu/~eppstein/ Univ. of California, Irvine, School of Information & Computer Science
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