• Raymond Hettinger's avatar
    Improve the implementation of itertools.product() · 73d79632
    Raymond Hettinger yazdı
    * 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).
    73d79632
test_itertools.py 38.3 KB