195 Commits (bc6830c9486ed7d48d5ac2ea56f0d8309872abbf)

Author SHA1 Message Date
Raymond Hettinger 08ff6822cc Handle the repeat keyword argument for itertools.product(). 19 years ago
Raymond Hettinger b4cbc98c39 Add alternate constructor for itertools.chain(). 19 years ago
Raymond Hettinger 05bf6338b8 Have itertools.chain() consume its inputs lazily instead of building a tuple of iterators at the outset. 19 years ago
Christian Heimes 380f7f22fa Merged revisions 61038,61042-61045,61047,61050,61053,61055-61056,61061-61062,61066,61068,61070,61081-61095 via svnmerge from 19 years ago
Christian Heimes cdddf18768 The empty tuple is usually a singleton with a much higher refcnt than 1 19 years ago
Raymond Hettinger 3bd771263d One too many decrefs. 19 years ago
Raymond Hettinger 93e804da9c Add itertools.combinations(). 19 years ago
Christian Heimes 836baa53d8 Merged revisions 61038,61042-61045,61047,61050,61053,61055-61056,61061-61064,61066-61080 via svnmerge from 19 years ago
Facundo Batista b1d70e2252 Coerced PyBool_Type to be able to compare it. 19 years ago
Raymond Hettinger 9d63837e9b Make sure the itertools filter functions give the same performance for func=bool as func=None. 19 years ago
Christian Heimes 90c3d9b995 Merged revisions 60481,60485,60489-60492,60494-60496,60498-60499,60501-60503,60505-60506,60508-60509,60523-60524,60532,60543,60545,60547-60548,60552,60554,60556-60559,60561-60562,60569,60571-60572,60574,60576-60583,60585-60586,60589,60591,60594-60595,60597-60598,60600-60601,60606-60612,60615,60617,60619-60621,60623-60625,60627-60629,60631,60633,60635,60647,60650,60652,60654,60656,60658-60659,60664-60666,60668-60670,60672,60676,60678,60680-60683,60685-60686,60688,60690,60692-60694,60697-60700,60705-60706,60708,60711,60714,60720,60724-60730,60732,60736,60742,60744,60746,60748,60750-60751,60753,60756-60757,60759-60761,60763-60764,60766,60769-60770,60774-60784,60787-60789,60793,60796,60799-60809,60812-60813,60815-60821,60823-60826,60828-60829,60831-60834,60836,60838-60839,60846-60849,60852-60854,60856-60859,60861-60870,60874-60875,60880-60881,60886,60888-60890,60892,60894-60898,60900,60902-60906,60908,60911-60917,60919-60920,60922,60926,60929-60931,60933-60935,60937,60939-60941,60943-60954,60959-60961,60963-60969,60971-60976 via svnmerge from 19 years ago
Raymond Hettinger 532316dfa6 Add more comments 19 years ago
Raymond Hettinger 73d7963242 Improve the implementation of itertools.product() 19 years ago
Christian Heimes c3f30c4337 Merged revisions 60481,60485,60489-60492,60494-60496,60498-60499,60501-60503,60505-60506,60508-60509,60523-60524,60532,60543,60545,60547-60548,60552,60554,60556-60559,60561-60562,60569,60571-60572,60574,60576-60583,60585-60586,60589,60591,60594-60595,60597-60598,60600-60601,60606-60612,60615,60617,60619-60621,60623-60625,60627-60629,60631,60633,60635,60647,60650,60652,60654,60656,60658-60659,60664-60666,60668-60670,60672,60676,60678,60680-60683,60685-60686,60688,60690,60692-60694,60697-60700,60705-60706,60708,60711,60714,60720,60724-60730,60732,60736,60742,60744,60746,60748,60750-60751,60753,60756-60757,60759-60761,60763-60764,60766,60769-60770,60774-60784,60787-60789,60793,60796,60799-60809,60812-60813,60815-60821,60823-60826,60828-60829,60831-60834,60836,60838-60839,60846-60849,60852-60854,60856-60859,60861-60870,60874-60875,60880-60881,60886,60888-60890,60892,60894-60898,60900-60931,60933-60958 via svnmerge from 19 years ago
Raymond Hettinger 50986cc45b First draft for itertools.product(). Docs and other updates forthcoming. 19 years ago
Raymond Hettinger 1dfde1ddc0 Replace map(None, *iterables) with zip(*iterables). 19 years ago
Christian Heimes 679db4aa99 Merged revisions 59985-60000,60002,60005-60007,60009-60042 via svnmerge from 19 years ago
Raymond Hettinger 473170908e Make starmap() match its pure python definition and accept any itertable input (not just tuples). 19 years ago
Christian Heimes 90aa7646af #1629: Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and Py_REFCNT. 19 years ago
Christian Heimes e93237dfcc #1629: Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and Py_REFCNT. Macros for b/w compatibility are available. 19 years ago
Christian Heimes 217cfd1c86 Cleanup: Replaced most PyInt_ aliases with PyLong_ and disabled the aliases in intobject.h 19 years ago
Guido van Rossum 8ce8a784bd Merged revisions 58221-58741 via svnmerge from 19 years ago
Raymond Hettinger 50e90e265f itertools.count() no longer limited to sys.maxint. 19 years ago
Martin v. Löwis 9f2e346911 Merged revisions 56467-56482 via svnmerge from 19 years ago
Martin v. Löwis 6819210b9e PEP 3123: Provide forward compatibility with Python 3.0, while keeping 19 years ago
Walter Dörwald 7569dfe11d Add a format specifier %R to PyUnicode_FromFormat(), which embeds 19 years ago
Walter Dörwald 1ab8330827 Add functions PyUnicode_Append() and PyUnicode_AppendAndDel() that mirror 19 years ago
Guido van Rossum 360e4b8fb1 Merged revisions 55325-55327 via svnmerge from 19 years ago
Kristján Valur Jónsson f4601d874f Fix two problems that emerged when the testsuite was run with an x64 build: PyLong_FromSSize_t incorrectly assumed an unsigned object, and itertools.count() had the wrong upper limit for the iterator. 19 years ago
Kristján Valur Jónsson f030394de3 Fix problems in x64 build that were discovered by the testsuite: 19 years ago
Georg Brandl a18af4e7a2 PEP 3114: rename .next() to .__next__() and add next() builtin. 19 years ago
Thomas Wouters cf297e46b8 Merged revisions 53623-53858 via svnmerge from 20 years ago
Raymond Hettinger 1b6ca54c44 Remove filler struct item and fix leak. 20 years ago
Raymond Hettinger d36862cf78 Add itertools.izip_longest(). 20 years ago
Raymond Hettinger 6d121f168c Do not let overflows in enumerate() and count() pass silently. 20 years ago
Raymond Hettinger 9f0e1ea964 Do not let overflows in enumerate() and count() pass silently. 20 years ago
Thomas Wouters b213704f3c Merged revisions 53451-53537 via svnmerge from 20 years ago
Georg Brandl 8e932e7d68 Bug #1486663: don't reject keyword arguments for subclasses of builtin 20 years ago
Georg Brandl b84c13792d Bug #1486663: don't reject keyword arguments for subclasses of builtin 20 years ago
Thomas Wouters 89f507fe8c Four months of trunk changes (including a few releases...) 20 years ago
Jack Diederich 187e64806f backport of r51950 20 years ago
Jack Diederich 36234e8f66 * regression bug, count_next was coercing a Py_ssize_t to an unsigned Py_size_t 20 years ago
Neal Norwitz 7ae5f29465 Backport fix for SF bug #1550714, itertools.tee raises SystemError 20 years ago
Neal Norwitz 69e8897505 Bug #1550714: fix SystemError from itertools.tee on negative value for n. 20 years ago
Thomas Wouters 0e3f591aee Merged revisions 46753-51188 via svnmerge from 20 years ago
Neal Norwitz 9029b5f289 nextlink can be NULL if teedataobject_new fails, so use XINCREF. 20 years ago
Thomas Wouters 477c8d5e70 Much-needed merge (using svnmerge.py this time) of trunk changes into p3yk. 20 years ago
Neal Norwitz 2f3136b8f0 Fix compiler warning (and whitespace) on Mac OS 10.4. (A lot of this code looked duplicated, I wonder if a utility function could help reduce the duplication here.) 20 years ago
Jack Diederich 6c433a91d5 use Py_ssize_t in places that may need it 20 years ago
Thomas Wouters 49fd7fa443 Merge p3yk branch with the trunk up to revision 45595. This breaks a fair 20 years ago