On Sat, Aug 12, 2000 at 11:29:14PM +0000, Finn Bock wrote: > [Thomas Wouters] > > >[(x, y) for y in something for x in somewhere if y in x] > > > >The parentheses around the leftmost expression are mandatory. It's currently > >implemented something like this: > > > >L = [] > >__x__ = [].append > >for y in something: > > for x in somewhere: > > if y in x: > > __x__((x, y)) > >del __x__ > > Thank you for the fine example. At least I now think that know what the > feature is about. > Maybe that example should get in the docs for list comprehensions. Trent -- Trent Mick TrentM@ActiveState.com
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