diff options
| author | Raymond Hettinger <python@rcn.com> | 2009-04-18 23:58:45 (GMT) |
|---|---|---|
| committer | Raymond Hettinger <python@rcn.com> | 2009-04-18 23:58:45 (GMT) |
| commit | fd2405415bb8adc656abcccae350f879647ab729 (patch) | |
| tree | 7772e457c4ce68adc1a0e8e3aec1e66b06d8b2d4 | |
| parent | 4585ca9428fbe8cae40566d8642c855b0d24a780 (diff) | |
| download | cpython-fd2405415bb8adc656abcccae350f879647ab729.zip cpython-fd2405415bb8adc656abcccae350f879647ab729.tar.gz cpython-fd2405415bb8adc656abcccae350f879647ab729.tar.bz2 | |
Remove duplicate recipe.
| -rw-r--r-- | Doc/library/itertools.rst | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/Doc/library/itertools.rst b/Doc/library/itertools.rst index 1861df4..5b0574a 100644 --- a/Doc/library/itertools.rst +++ b/Doc/library/itertools.rst @@ -702,11 +702,6 @@ which incur interpreter overhead. pending -= 1 nexts = cycle(islice(nexts, pending)) - def powerset(iterable): - "powerset([1,2,3]) --> () (1,) (2,) (3,) (1,2) (1,3) (2,3) (1,2,3)" - s = list(iterable) - return chain.from_iterable(combinations(s, r) for r in range(len(s)+1)) - def compress(data, selectors): "compress('ABCDEF', [1,0,1,0,1,1]) --> A C E F" return (d for d, s in izip(data, selectors) if s) |
