| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Fix test of count.__repr__() to ignore the 'L' if the count is a long | Raymond Hettinger | 2007-10-12 | 1 | -1/+4 |
| | | |||||
| * | itertools.count() no longer limited to sys.maxint. | Raymond Hettinger | 2007-10-04 | 1 | -1/+6 |
| | | |||||
| * | Fix those parts in the testsuite that assumed that sys.maxint would cause ↵ | Kristján Valur Jónsson | 2007-05-03 | 1 | -2/+4 |
| | | | | | overflow on x64. Now the testsuite is well behaved on that platform. | ||||
| * | Whitespace normalization. | Tim Peters | 2007-03-12 | 1 | -4/+4 |
| | | |||||
| * | Add itertools.izip_longest(). | Raymond Hettinger | 2007-02-21 | 1 | -0/+54 |
| | | |||||
| * | Do not let overflows in enumerate() and count() pass silently. | Raymond Hettinger | 2007-02-08 | 1 | -2/+1 |
| | | |||||
| * | Bug #1486663: don't reject keyword arguments for subclasses of builtin | Georg Brandl | 2007-01-21 | 1 | -1/+17 |
| | | | | | types. | ||||
| * | * regression bug, count_next was coercing a Py_ssize_t to an unsigned Py_size_t | Jack Diederich | 2006-09-21 | 1 | -0/+4 |
| | | | | | | | which breaks negative counts * added test for negative numbers will backport to 2.5.1 | ||||
| * | Bug #1550714: fix SystemError from itertools.tee on negative value for n. | Neal Norwitz | 2006-09-02 | 1 | -0/+1 |
| | | | | | Needs backport to 2.5.1 and earlier. | ||||
| * | ("Forward-port" of r46506) | Armin Rigo | 2006-05-28 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | Remove various dependencies on dictionary order in the standard library tests, and one (clearly an oversight, potentially critical) in the standard library itself - base64.py. Remaining open issues: * test_extcall is an output test, messy to make robust * tarfile.py has a potential bug here, but I'm not familiar enough with this code. Filed in as SF bug #1496501. * urllib2.HTTPPasswordMgr() returns a random result if there is more than one matching root path. I'm asking python-dev for clarification... | ||||
| * | Convert iterator __len__() methods to a private API. | Raymond Hettinger | 2005-09-24 | 1 | -0/+1 |
| | | |||||
| * | SF patch #1171417: bug fix for islice() in docs | Raymond Hettinger | 2005-03-27 | 1 | -0/+5 |
| | | |||||
| * | Revised the itertools quantifier recipes to match the performance of the | Raymond Hettinger | 2005-03-11 | 1 | -8/+8 |
| | | | | | new builtins. | ||||
| * | Added optional None arguments to itertools.islice(). | Raymond Hettinger | 2004-12-05 | 1 | -0/+2 |
| | | |||||
| * | Fix and test weak referencing of itertools.tee objects. | Raymond Hettinger | 2004-10-17 | 1 | -0/+8 |
| | | |||||
| * | Improve test coverage. | Raymond Hettinger | 2004-09-29 | 1 | -0/+16 |
| | | |||||
| * | * Increase test coverage. | Raymond Hettinger | 2004-09-28 | 1 | -0/+29 |
| | | | | | * Have groupby() be careful about decreffing structure members. | ||||
| * | Use floor division operator. | Raymond Hettinger | 2004-09-27 | 1 | -1/+1 |
| | | |||||
| * | Improve three recipes in the itertools docs. | Raymond Hettinger | 2004-09-23 | 1 | -3/+9 |
| | | |||||
| * | test_sf_950057's gen1() used an assert statement, which caused the test | Tim Peters | 2004-07-18 | 1 | -1/+1 |
| | | | | | to fail when running with -O. Changed to raise AssertionError instead. | ||||
| * | SF #950057: itertools.chain doesn't "process" exceptions as they occur | Raymond Hettinger | 2004-05-08 | 1 | -0/+30 |
| | | | | | | | | Both cycle() and chain() were handling exceptions only when switching input sources. The patch makes the handle more immediate. Will backport. | ||||
| * | Give itertools.repeat() a length method. | Raymond Hettinger | 2004-02-10 | 1 | -1/+7 |
| | | |||||
| * | Add a Guido inspired example for groupby(). | Raymond Hettinger | 2004-01-20 | 1 | -0/+14 |
| | | |||||
| * | Guido grants a Christmas wish: | Raymond Hettinger | 2003-12-17 | 1 | -5/+5 |
| | | | | | sorted() becomes a regular function instead of a classmethod. | ||||
| * | Implement itertools.groupby() | Raymond Hettinger | 2003-12-06 | 1 | -1/+107 |
| | | | | | | | | Original idea by Guido van Rossum. Idea for skipable inner iterators by Raymond Hettinger. Idea for argument order and identity function default by Alex Martelli. Implementation by Hye-Shik Chang (with tweaks by Raymond Hettinger). | ||||
| * | Improve the implementation of itertools.tee(). | Raymond Hettinger | 2003-11-12 | 1 | -24/+31 |
| | | | | | | | | | | | | Formerly, underlying queue was implemented in terms of two lists. The new queue is a series of singly-linked fixed length lists. The new implementation runs much faster, supports multi-way tees, and allows tees of tees without additional memory costs. The root ideas for this structure were contributed by Andrew Koenig and Guido van Rossum. | ||||
| * | Replace the window() example with pairwise() which demonstrates tee(). | Raymond Hettinger | 2003-10-26 | 1 | -13/+10 |
| | | |||||
| * | Minor improvements to itertools.tee(): | Raymond Hettinger | 2003-10-26 | 1 | -0/+12 |
| | | | | | | | * tee object is no longer subclassable * independent iterators renamed to "itertools.tee_iterator" * fixed doc string typo and added entry in the module doc string | ||||
| * | Added itertools.tee() | Raymond Hettinger | 2003-10-24 | 1 | -61/+130 |
| | | | | | | | It works like the pure python verion except: * it stops storing data after of the iterators gets deallocated * the data queue is implemented with two stacks instead of one dictionary. | ||||
| * | Adopt Christian Stork's suggested argument order for the logic quantifiers. | Raymond Hettinger | 2003-10-05 | 1 | -11/+11 |
| | | | | | Adopt Jeremy Fincher's suggested function name, "any", instead of "some". | ||||
| * | Simplify doctest of tee(). | Raymond Hettinger | 2003-09-13 | 1 | -6/+2 |
| | | |||||
| * | Add an example to address a common question of how to split iterators. | Raymond Hettinger | 2003-09-08 | 1 | -4/+30 |
| | | |||||
| * | SF bug #793826: using itertools.izip to mutate tuples | Raymond Hettinger | 2003-08-29 | 1 | -1/+32 |
| | | | | | Avoid Armin Rigo's dastardly exercise in re-entrancy. | ||||
| * | Modified itertools.izip() to match the behavior of __builtin__.zip() | Raymond Hettinger | 2003-08-08 | 1 | -1/+6 |
| | | | | | which can now take zero arguments. | ||||
| * | Re-sync doc tests with the doc updates. | Raymond Hettinger | 2003-08-08 | 1 | -3/+7 |
| | | |||||
| * | More tests | Raymond Hettinger | 2003-06-29 | 1 | -3/+59 |
| | | | | | | * Test with infinite inputs (using take() on the output) * Test whether GC can find and eliminate cycles. | ||||
| * | Add take() to examples. Tighten the islice() example | Raymond Hettinger | 2003-06-28 | 1 | -1/+7 |
| | | |||||
| * | Minor updates: | Raymond Hettinger | 2003-06-18 | 1 | -5/+14 |
| | | | | | | | * Updated comment on design of imap() * Added untraversed object in izip() structure * Replaced the pairwise() example with a more general window() example | ||||
| * | Test ability to handle various type of iterators. | Raymond Hettinger | 2003-05-29 | 1 | -4/+188 |
| | | |||||
| * | Minor cleanups. | Raymond Hettinger | 2003-05-16 | 1 | -5/+1 |
| | | |||||
| * | * Added a substantial number of edge case and argument tests for | Raymond Hettinger | 2003-05-03 | 1 | -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 Hettinger | 2003-05-02 | 1 | -7/+27 |
| | | | | | Simplify test_main(). | ||||
| * | The previous made the stop argument optional. | Raymond Hettinger | 2003-05-02 | 1 | -1/+1 |
| | | | | | It is better to be explicit and just allow stop to be None. | ||||
| * | SF bug #730685: itertools.islice stop argument is not optional | Raymond Hettinger | 2003-05-02 | 1 | -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örwald | 2003-05-01 | 1 | -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 Hettinger | 2003-02-23 | 1 | -11/+12 |
| | | | | | | Subsumed times() into repeat(). Added cycle() and chain(). | ||||
| * | C Code: | Raymond Hettinger | 2003-02-09 | 1 | -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 issues | Raymond Hettinger | 2003-02-07 | 1 | -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 Hettinger | 2003-02-01 | 1 | -1/+1 |
| | | |||||
| * | Move itertools module from the sandbox and into production. | Raymond Hettinger | 2003-02-01 | 1 | -0/+158 |
