Benjamin Peterson
5c8da86f3a
convert usage of fail* to assert*
2009-06-30 22:57:08 +00:00
Raymond Hettinger
aa681c7b99
Fix keyword arguments for itertools.count().
...
Step arg without a start arg was ignored.
2009-02-21 07:17:22 +00:00
Raymond Hettinger
f9bce83e71
Add some cross-references to the docs. Simplify the python code equivalent for izip(). Supply an optional argument for the nth() recipe.
2009-02-19 05:34:35 +00:00
Raymond Hettinger
182edaefb5
Add keyword arg support to itertools.repeat().
2009-02-19 02:38:25 +00:00
Raymond Hettinger
2e2909f584
Add keyword arg support to itertools.compress().
2009-02-19 02:15:14 +00:00
Raymond Hettinger
b21d8109af
Add GC support to count() objects. Backport candidate.
2009-02-16 20:39:12 +00:00
Raymond Hettinger
a4038038c6
Add keyword argument support to itertools.count().
2009-02-14 00:25:51 +00:00
Raymond Hettinger
dbe3bfbb30
One more test.
2009-02-12 12:43:01 +00:00
Raymond Hettinger
aa04461260
Add an extra testcase.
2009-02-12 12:04:26 +00:00
Raymond Hettinger
31c769ca89
Issue 5032: added a step argument to itertools.count() and allowed non-integer arguments.
2009-02-12 05:39:46 +00:00
Raymond Hettinger
d507afdc81
Minor doc fixups.
2009-02-04 10:52:32 +00:00
Raymond Hettinger
560f9a8a90
Add more tests for the powerset() recipe.
2009-01-27 13:26:35 +00:00
Raymond Hettinger
2f6c2e03a8
More exhaustive combinatoric checks.
2009-01-27 10:36:14 +00:00
Raymond Hettinger
f93f3032c6
Stronger tests for combinatoric relationships.
2009-01-27 09:52:35 +00:00
Raymond Hettinger
2976aaa396
Add tests to verify combinatoric relationships.
2009-01-27 09:33:06 +00:00
Raymond Hettinger
d081abc8be
Promote combinations_with_replacement() from a recipe to a regular itertool.
2009-01-27 02:58:49 +00:00
Raymond Hettinger
68d919e4d6
Improved itertools recipe for generating powerset().
2009-01-25 21:31:47 +00:00
Raymond Hettinger
2bcb8e9b0d
Promote compress() from a recipe to being a regular itertool.
2009-01-25 21:04:14 +00:00
Raymond Hettinger
5b913e31a1
Forward port r68394 for issue 4816.
2009-01-08 06:39:04 +00:00
Raymond Hettinger
44e1581df3
Issue #4615 . Document how to use itertools for de-duping.
2009-01-02 21:26:45 +00:00
Raymond Hettinger
f080e6d7e0
Alter recipe to show how to call izip_longest() with
...
both a keyword argument and star arguments.
2008-07-31 01:19:50 +00:00
Raymond Hettinger
efdf706a9f
Neaten-up the itertools recipes.
2008-07-30 07:27:30 +00:00
Raymond Hettinger
f1f46f0350
Clean-up itertools docs and recipes.
2008-07-19 23:58:47 +00:00
Raymond Hettinger
39e0eb766f
Fix compress() recipe in docs to use itertools.
2008-07-19 23:21:57 +00:00
Raymond Hettinger
3369167089
Add recipe to the itertools docs.
2008-07-19 00:43:00 +00:00
Raymond Hettinger
e70bb8d6f2
Simplify demo code.
2008-03-23 00:55:46 +00:00
Raymond Hettinger
e8b4b60555
Add recipe to docs.
2008-03-11 00:19:07 +00:00
Raymond Hettinger
38fb9bee6c
Tweak recipes and tests
2008-03-07 01:33:20 +00:00
Raymond Hettinger
a1ca94a102
Issue 2246: itertools grouper object did not participate in GC (should be backported).
2008-03-06 22:51:36 +00:00
Raymond Hettinger
ad47fa141c
More tests.
2008-03-06 20:52:01 +00:00
Raymond Hettinger
66f91ea966
C implementation of itertools.permutations().
2008-03-05 20:59:58 +00:00
Raymond Hettinger
d553d856e7
Beef-up docs and tests for itertools. Fix-up end-case for product().
2008-03-04 04:17:08 +00:00
Raymond Hettinger
08ff6822cc
Handle the repeat keyword argument for itertools.product().
2008-02-29 02:21:48 +00:00
Raymond Hettinger
b4cbc98c39
Add alternate constructor for itertools.chain().
2008-02-28 22:46:41 +00:00
Raymond Hettinger
05bf6338b8
Have itertools.chain() consume its inputs lazily instead of building a tuple of iterators at the outset.
2008-02-28 22:30:42 +00:00
Raymond Hettinger
2ab0552b5e
Larger test range
2008-02-27 01:08:30 +00:00
Raymond Hettinger
93e804da9c
Add itertools.combinations().
2008-02-26 23:40:50 +00:00
Raymond Hettinger
9d63837e9b
Make sure the itertools filter functions give the same performance for func=bool as func=None.
2008-02-25 22:42:32 +00:00
Raymond Hettinger
73d7963242
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).
2008-02-23 02:20:41 +00:00
Raymond Hettinger
50986cc45b
First draft for itertools.product(). Docs and other updates forthcoming.
2008-02-22 03:16:42 +00:00
Raymond Hettinger
473170908e
Make starmap() match its pure python definition and accept any itertable input (not just tuples).
2008-01-17 03:02:14 +00:00
Raymond Hettinger
3a0de08d54
Fix test of count.__repr__() to ignore the 'L' if the count is a long
2007-10-12 17:53:11 +00:00
Raymond Hettinger
50e90e265f
itertools.count() no longer limited to sys.maxint.
2007-10-04 00:20:27 +00:00
Kristján Valur Jónsson
170eee9d6a
Fix those parts in the testsuite that assumed that sys.maxint would cause overflow on x64. Now the testsuite is well behaved on that platform.
2007-05-03 20:09:56 +00:00
Tim Peters
ea5962f86e
Whitespace normalization.
2007-03-12 18:07:52 +00:00
Raymond Hettinger
d36862cf78
Add itertools.izip_longest().
2007-02-21 05:20:38 +00:00
Raymond Hettinger
6d121f168c
Do not let overflows in enumerate() and count() pass silently.
2007-02-08 00:07:32 +00:00
Georg Brandl
b84c13792d
Bug #1486663 : don't reject keyword arguments for subclasses of builtin
...
types.
2007-01-21 10:28:43 +00:00
Jack Diederich
36234e8f66
* regression bug, count_next was coercing a Py_ssize_t to an unsigned Py_size_t
...
which breaks negative counts
* added test for negative numbers
will backport to 2.5.1
2006-09-21 17:50:26 +00:00
Neal Norwitz
69e8897505
Bug #1550714 : fix SystemError from itertools.tee on negative value for n.
...
Needs backport to 2.5.1 and earlier.
2006-09-02 02:58:13 +00:00