summaryrefslogtreecommitdiffstats
path: root/Modules/itertoolsmodule.c
Commit message (Collapse)AuthorAgeFilesLines
* For safety, replace a tuple entry before decreffing it.Raymond Hettinger2003-08-301-1/+3
|
* SF bug #793826: using itertools.izip to mutate tuplesRaymond Hettinger2003-08-291-2/+4
| | | | Avoid Armin Rigo's dastardly exercise in re-entrancy.
* Modified itertools.izip() to match the behavior of __builtin__.zip()Raymond Hettinger2003-08-081-6/+2
| | | | which can now take zero arguments.
* SF patch #770521: make itertools type declarations staticRaymond Hettinger2003-07-141-24/+24
| | | | (Contributed by Andrew I MacIntyre.)
* Minor updates:Raymond Hettinger2003-06-181-3/+13
| | | | | | * Updated comment on design of imap() * Added untraversed object in izip() structure * Replaced the pairwise() example with a more general window() example
* Add missing DECREF.Raymond Hettinger2003-06-171-1/+3
|
* PyType_GenericAlloc is inherited from object.Raymond Hettinger2003-05-231-12/+12
|
* Fixed dotted name assertion.Raymond Hettinger2003-05-221-2/+2
|
* * Added a substantial number of edge case and argument tests forRaymond Hettinger2003-05-031-0/+3
| | | | | | | the itertoolsmodule. * Taught itertools.repeat(obj, n) to treat negative repeat counts as zero. This behavior matches that for sequences and prevents infinite loops.
* The previous made the stop argument optional.Raymond Hettinger2003-05-021-2/+2
| | | | 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-13/+33
| | | | | * itertools.islice() stop argument did not perform as documented. * beefed-up test suite
* Fix docstring typoAndrew M. Kuchling2003-04-141-1/+1
|
* Renamed PyObject_GenericGetIter to PyObject_SelfIterRaymond Hettinger2003-03-171-12/+12
| | | | | | to more accurately describe what the function does. Suggested by Thomas Wouters.
* Created PyObject_GenericGetIter().Raymond Hettinger2003-03-171-96/+12
| | | | Factors out the common case of returning self.
* Several of the tools can make direct calls the inner iterators.Raymond Hettinger2003-03-011-9/+24
|
* User requested changes to the itertools module.Raymond Hettinger2003-02-231-52/+236
| | | | | Subsumed times() into repeat(). Added cycle() and chain().
* Remove unused variable.Guido van Rossum2003-02-091-1/+1
|
* C Code:Raymond Hettinger2003-02-091-124/+248
| | | | | | | | | | | | | | | * 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.
* * Eliminated tuple re-use in imap(). Doing it correctly made the codeRaymond Hettinger2003-02-071-62/+30
| | | | | too hard to read. * Simplified previous changes to izip() to make it easier to read.
* SF bug #681003: itertools issuesRaymond Hettinger2003-02-071-6/+84
| | | | | | | | | | | * 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()
* Move itertools module from the sandbox and into production.Raymond Hettinger2003-02-011-0/+1532