Commit Graph

111 Commits

Author SHA1 Message Date
Raymond Hettinger
9b4197ba53 Handle step values other than one. 2009-11-30 21:13:52 +00:00
Raymond Hettinger
e09f45a2e3 Issue 7410: deepcopy of itertools.count resets the count 2009-11-30 19:44:40 +00:00
Raymond Hettinger
9eac119ba8 Fix docstrings for itertools combinatoric functions. 2009-11-19 01:22:04 +00:00
Raymond Hettinger
fa7dadd339 Fix exception handling in itertools.izip_longest(). 2009-11-01 20:45:16 +00:00
Raymond Hettinger
0115e098da Issue 6305: Clarify error message for large arguments to itertools.islice(). 2009-06-23 21:32:28 +00:00
Benjamin Peterson
873389dbd8 fix compiler warnings 2009-02-21 23:09:33 +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
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
Benjamin Peterson
a7b0c12152 PyList_Append() can fail 2009-02-16 21:23:04 +00:00
Benjamin Peterson
062a7c3675 fix compiler warnings 2009-02-16 21:07:52 +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
66373ab888 Fix spaces/tabs in example. 2009-02-12 10:16:19 +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
94034ea584 Issue 5171: itertools.product docstring missing 'repeat' argument 2009-02-09 18:39:41 +00:00
Raymond Hettinger
e76816b146 Fix typo. 2009-01-29 03:43:44 +00:00
Raymond Hettinger
36d816b0ab Update itertools.__doc__ to include all tools. 2009-01-29 03:21:42 +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
2bcb8e9b0d Promote compress() from a recipe to being a regular itertool. 2009-01-25 21:04:14 +00:00
Amaury Forgeot d'Arc
a40d573664 #3720: Interpreter crashes when an evil iterator removes its own next function.
Now the slot is filled with a function that always raises.

Will not backport: extensions compiled with 2.6.x would not run on 2.6.0.
2009-01-12 23:36:55 +00:00
Raymond Hettinger
5b913e31a1 Forward port r68394 for issue 4816. 2009-01-08 06:39:04 +00:00
Georg Brandl
8550d69a84 #2536: fix itertools.permutations and itertools.combinations docstrings. 2008-06-10 12:46:39 +00:00
Gregory P. Smith
dd96db63f6 This reverts r63675 based on the discussion in this thread:
http://mail.python.org/pipermail/python-dev/2008-June/079988.html

Python 2.6 should stick with PyString_* in its codebase.  The PyBytes_* names
in the spirit of 3.0 are available via a #define only.  See the email thread.
2008-06-09 04:58:54 +00:00
Christian Heimes
593daf545b Renamed PyString to PyBytes 2008-05-26 12:51:38 +00:00