summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_itertools.py
Commit message (Collapse)AuthorAgeFilesLines
...
* Test ability to handle various type of iterators.Raymond Hettinger2003-05-291-4/+188
|
* Minor cleanups.Raymond Hettinger2003-05-161-5/+1
|
* * Added a substantial number of edge case and argument tests forRaymond Hettinger2003-05-031-15/+76
| | | | | | | the itertoolsmodule. * Taught itertools.repeat(obj, n) to treat negative repeat counts as zero. This behavior matches that for sequences and prevents infinite loops.
* Add StopIteration tests.Raymond Hettinger2003-05-021-7/+27
| | | | Simplify test_main().
* The previous made the stop argument optional.Raymond Hettinger2003-05-021-1/+1
| | | | It is better to be explicit and just allow stop to be None.
* SF bug #730685: itertools.islice stop argument is not optionalRaymond Hettinger2003-05-021-3/+71
| | | | | * itertools.islice() stop argument did not perform as documented. * beefed-up test suite
* Combine the functionality of test_support.run_unittest()Walter Dörwald2003-05-011-3/+1
| | | | | | | | | | and test_support.run_classtests() into run_unittest() and use it wherever possible. Also don't use "from test.test_support import ...", but "from test import test_support" in a few spots. From SF patch #662807.
* User requested changes to the itertools module.Raymond Hettinger2003-02-231-11/+12
| | | | | Subsumed times() into repeat(). Added cycle() and chain().
* C Code:Raymond Hettinger2003-02-091-3/+22
| | | | | | | | | | | | | | | * Removed the ifilter flag wart by splitting it into two simpler functions. * Fixed comment tabbing in C code. * Factored module start-up code into a loop. Documentation: * Re-wrote introduction. * Addede examples for quantifiers. * Simplified python equivalent for islice(). * Documented split of ifilter(). Sets.py: * Replace old ifilter() usage with new.
* SF bug #681003: itertools issuesRaymond Hettinger2003-02-071-0/+3
| | | | | | | | | | | * Fixed typo in exception message for times() * Filled in missing times_traverse() * Document reasons that imap() did not adopt a None fill-in feature * Document that count(sys.maxint) will wrap-around on overflow * Add overflow test to islice() * Check that starmap()'s argument returns a tuple * Verify that imap()'s tuple re-use is safe * Make a similar tuple re-use (with safety check) for izip()
* Neaten ref count test.Raymond Hettinger2003-02-011-1/+1
|
* Move itertools module from the sandbox and into production.Raymond Hettinger2003-02-011-0/+158