[issue39755] Change example of itertools.product

2020-02-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks for the suggestion, but I will decline. The existing wording communicates the intended mental relationship between the product() and nested for-loop. IMO, the proposed change obfuscates that main point. The details of how product works are

[issue39755] Change example of itertools.product

2020-02-25 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39755] Change example of itertools.product

2020-02-25 Thread Mark Bell
New submission from Mark Bell : The documentation for itertools.product at: https://docs.python.org/3/library/itertools.html#itertools.product currently says that: For example, product(A, B) returns the same as ((x,y) for x in A for y in B) While this is broadly correct, since product