commit | 73d796324242dc2164a0b5943bd08d6252a28651 | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <python@rcn.com> | Sat Feb 23 02:20:41 2008 +0000 |
committer | Raymond Hettinger <python@rcn.com> | Sat Feb 23 02:20:41 2008 +0000 |
tree | 3c1770c2ea596e727e3c69604033016d02ea1574 | |
parent | c5705a823bb200b48417677f8ef3ca6833ace4bb [diff] |
Improve the implementation of itertools.product() * Fix-up issues pointed-out by Neal Norwitz. * Add extensive comments. * The lz->result variable is now a tuple instead of a list. * Use fast macro getitem/setitem calls so most code is in-line. * Re-use the result tuple if available (modify in-place instead of copy).