On Thu, 16 Oct 2003, Alex Martelli wrote: >I think we could extend indexing to mean something different when >the [ ] contain a 'for', just like we extended list display to mean >something different (list comprehension) when the [ ] contain a >'for'. Syntax such as: > > Top(10)[ humor(joke) for joke in jokes ] > >does not suggest a list is _returned_, just like foo[23] doesn't. But it does immediately suggest iter[humor(joke) for joke in jokes] as the format for iterator comprehensions. Is that good or bad ? /Paul
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