- 10 Ara, 2005 1 kayıt (commit)
-
-
Jeremy Hylton yazdı
In C++, it's an error to pass a string literal to a char* function without a const_cast(). Rather than require every C++ extension module to put a cast around string literals, fix the API to state the const-ness. I focused on parts of the API where people usually pass literals: PyArg_ParseTuple() and friends, Py_BuildValue(), PyMethodDef, the type slots, etc. Predictably, there were a large set of functions that needed to be fixed as a result of these changes. The most pervasive change was to make the keyword args list passed to PyArg_ParseTupleAndKewords() to be a const char *kwlist[]. One cast was required as a result of the changes: A type object mallocs the memory for its tp_doc slot and later frees it. PyTypeObject says that tp_doc is const char *; but if the type was created by type_new(), we know it is safe to cast to char *.
-
- 24 Eyl, 2005 1 kayıt (commit)
-
-
Raymond Hettinger yazdı
-
- 26 Agu, 2005 1 kayıt (commit)
-
-
Georg Brandl yazdı
(fixes bug #1119418)
-
- 05 Ara, 2004 1 kayıt (commit)
-
-
Raymond Hettinger yazdı
-
- 17 Eki, 2004 2 kayıt (commit)
-
-
Fred Drake yazdı
-
Raymond Hettinger yazdı
-
- 02 Eki, 2004 1 kayıt (commit)
-
-
Raymond Hettinger yazdı
-
- 28 Eyl, 2004 1 kayıt (commit)
-
-
Raymond Hettinger yazdı
* Have groupby() be careful about decreffing structure members.
-
- 01 Eyl, 2004 1 kayıt (commit)
-
-
Raymond Hettinger yazdı
(Contributed by Dima Dorfman)
-
- 15 Tem, 2004 1 kayıt (commit)
-
-
Raymond Hettinger yazdı
-
- 08 May, 2004 1 kayıt (commit)
-
-
Raymond Hettinger yazdı
Both cycle() and chain() were handling exceptions only when switching input sources. The patch makes the handle more immediate. Will backport.
-
- 13 Nis, 2004 1 kayıt (commit)
-
-
Brett Cannon yazdı
instead of %d .
-
- 08 Nis, 2004 1 kayıt (commit)
-
-
Raymond Hettinger yazdı
-
- 17 Mar, 2004 1 kayıt (commit)
-
-
Raymond Hettinger yazdı
ifilterfalse().
-
- 10 Şub, 2004 2 kayıt (commit)
-
-
Skip Montanaro yazdı
-
Raymond Hettinger yazdı
-
- 06 Ara, 2003 1 kayıt (commit)
-
-
Raymond Hettinger yazdı
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).
-
- 12 Kas, 2003 1 kayıt (commit)
-
-
Raymond Hettinger yazdı
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.
-
- 28 Eki, 2003 1 kayıt (commit)
-
-
Raymond Hettinger yazdı
-
- 26 Eki, 2003 1 kayıt (commit)
-
-
Raymond Hettinger yazdı
* 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
-
- 25 Eki, 2003 1 kayıt (commit)
-
-
Raymond Hettinger yazdı
* Add error checking code to PyList_Append() call. * Replace PyObject_CallMethod(to->outbasket, "pop", NULL) with equivalent in-line code. Inlining is important here because the search for the pop method will occur for every element returned by the iterator. * Make tee's dealloc() a little smarter. If the trailing iterator is being deallocated, then the queue data is no longer needed and can be freed.
-
- 24 Eki, 2003 1 kayıt (commit)
-
-
Raymond Hettinger yazdı
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.
-
- 30 Agu, 2003 1 kayıt (commit)
-
-
Raymond Hettinger yazdı
-
- 29 Agu, 2003 1 kayıt (commit)
-
-
Raymond Hettinger yazdı
Avoid Armin Rigo's dastardly exercise in re-entrancy.
-
- 08 Agu, 2003 1 kayıt (commit)
-
-
Raymond Hettinger yazdı
which can now take zero arguments.
-
- 14 Tem, 2003 1 kayıt (commit)
-
-
Raymond Hettinger yazdı
(Contributed by Andrew I MacIntyre.)
-
- 18 Haz, 2003 1 kayıt (commit)
-
-
Raymond Hettinger yazdı
* Updated comment on design of imap() * Added untraversed object in izip() structure * Replaced the pairwise() example with a more general window() example
-
- 17 Haz, 2003 1 kayıt (commit)
-
-
Raymond Hettinger yazdı
-
- 23 May, 2003 1 kayıt (commit)
-
-
Raymond Hettinger yazdı
-
- 22 May, 2003 1 kayıt (commit)
-
-
Raymond Hettinger yazdı
-
- 03 May, 2003 1 kayıt (commit)
-
-
Raymond Hettinger yazdı
the itertoolsmodule. * Taught itertools.repeat(obj, n) to treat negative repeat counts as zero. This behavior matches that for sequences and prevents infinite loops.
-
- 02 May, 2003 2 kayıt (commit)
-
-
Raymond Hettinger yazdı
It is better to be explicit and just allow stop to be None.
-
Raymond Hettinger yazdı
* itertools.islice() stop argument did not perform as documented. * beefed-up test suite
-
- 14 Nis, 2003 1 kayıt (commit)
-
-
Andrew M. Kuchling yazdı
-
- 17 Mar, 2003 2 kayıt (commit)
-
-
Raymond Hettinger yazdı
to more accurately describe what the function does. Suggested by Thomas Wouters.
-
Raymond Hettinger yazdı
Factors out the common case of returning self.
-
- 01 Mar, 2003 1 kayıt (commit)
-
-
Raymond Hettinger yazdı
-
- 23 Şub, 2003 1 kayıt (commit)
-
-
Raymond Hettinger yazdı
Subsumed times() into repeat(). Added cycle() and chain().
-
- 09 Şub, 2003 2 kayıt (commit)
-
-
Guido van Rossum yazdı
-
Raymond Hettinger yazdı
* 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.
-