From: "Oren Tirosh" <oren-py-d@hishome.net> > [f(x, y) for x in X for y in Y] > > is equivalent to: > > [f(x, y) for x, y in cartesian(X, Y)] Is the order guaranteed to be the same? Will each work the same for a non-restartable iterator, say a file object (equivalently put, does the second one read Y once or many times)? Would Descartes object to his name being used thusly? Raymond Hettinger
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