This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Implement __len__() for itertools.combinations
Type: enhancement Stage: resolved
Components: Library (Lib) Versions: Python 3.9
process
Status: closed Resolution: duplicate
Dependencies: Superseder: Add __len__ to map, everything in itertools
View: 24849
Assigned To: Nosy List: boris, corona10, mark.dickinson, rhettinger
Priority: normal Keywords:

Created on 2020-02-05 11:20 by boris, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (2)
msg361421 - (view) Author: Борис Верховский (boris) * Date: 2020-02-05 11:20
and the other objects that have a straightforward formula for the number of elements they will generate.
msg361430 - (view) Author: Mark Dickinson (mark.dickinson) * (Python committer) Date: 2020-02-05 13:56
This is essentially a duplicate of #27678 and #24849 (and there may be others).

Note that the math module now has `prod`, `comb` and `perm`, which match the lengths of the full `product`, `combinations` and `permutations` itertools functions.
History
Date User Action Args
2022-04-11 14:59:26adminsetgithub: 83739
2020-02-05 20:22:46mark.dickinsonsetsuperseder: Add __len__ to map, everything in itertools
2020-02-05 14:53:44rhettingersetstatus: open -> closed
resolution: duplicate
stage: resolved
2020-02-05 13:56:12mark.dickinsonsetnosy: + mark.dickinson
messages: + msg361430
2020-02-05 13:22:59corona10setnosy: + corona10
2020-02-05 13:14:03xtreaksetnosy: + rhettinger
2020-02-05 11:20:39boriscreate