1. 10 Ara, 2005 1 kayıt (commit)
    • Jeremy Hylton's avatar
      Add const to several API functions that take char *. · af68c874
      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 *.
      af68c874
  2. 24 Eyl, 2005 1 kayıt (commit)
  3. 26 Agu, 2005 1 kayıt (commit)
  4. 05 Ara, 2004 1 kayıt (commit)
  5. 17 Eki, 2004 2 kayıt (commit)
  6. 02 Eki, 2004 1 kayıt (commit)
  7. 28 Eyl, 2004 1 kayıt (commit)
  8. 01 Eyl, 2004 1 kayıt (commit)
  9. 15 Tem, 2004 1 kayıt (commit)
  10. 08 May, 2004 1 kayıt (commit)
  11. 13 Nis, 2004 1 kayıt (commit)
  12. 08 Nis, 2004 1 kayıt (commit)
  13. 17 Mar, 2004 1 kayıt (commit)
  14. 10 Şub, 2004 2 kayıt (commit)
  15. 06 Ara, 2003 1 kayıt (commit)
    • Raymond Hettinger's avatar
      Implement itertools.groupby() · d25c1c63
      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).
      d25c1c63
  16. 12 Kas, 2003 1 kayıt (commit)
    • Raymond Hettinger's avatar
      Improve the implementation of itertools.tee(). · ad983e79
      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.
      ad983e79
  17. 28 Eki, 2003 1 kayıt (commit)
  18. 26 Eki, 2003 1 kayıt (commit)
  19. 25 Eki, 2003 1 kayıt (commit)
    • Raymond Hettinger's avatar
      Improvements to coding for itertools.tee(): · 4514369f
      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.
      4514369f
  20. 24 Eki, 2003 1 kayıt (commit)
    • Raymond Hettinger's avatar
      Added itertools.tee() · 6a5b0277
      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.
      6a5b0277
  21. 30 Agu, 2003 1 kayıt (commit)
  22. 29 Agu, 2003 1 kayıt (commit)
  23. 08 Agu, 2003 1 kayıt (commit)
  24. 14 Tem, 2003 1 kayıt (commit)
  25. 18 Haz, 2003 1 kayıt (commit)
    • Raymond Hettinger's avatar
      Minor updates: · befa37dd
      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
      befa37dd
  26. 17 Haz, 2003 1 kayıt (commit)
  27. 23 May, 2003 1 kayıt (commit)
  28. 22 May, 2003 1 kayıt (commit)
  29. 03 May, 2003 1 kayıt (commit)
  30. 02 May, 2003 2 kayıt (commit)
  31. 14 Nis, 2003 1 kayıt (commit)
  32. 17 Mar, 2003 2 kayıt (commit)
  33. 01 Mar, 2003 1 kayıt (commit)
  34. 23 Şub, 2003 1 kayıt (commit)
  35. 09 Şub, 2003 2 kayıt (commit)
    • Guido van Rossum's avatar
      Remove unused variable. · d58f3fce
      Guido van Rossum yazdı
      d58f3fce
    • Raymond Hettinger's avatar
      C Code: · 60eca933
      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.
      60eca933