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. 01 Şub, 2003 1 kayıt (commit)
  3. 18 Ara, 2002 1 kayıt (commit)
  4. 16 Eki, 2002 2 kayıt (commit)
  5. 12 Nis, 2002 1 kayıt (commit)
  6. 22 Mar, 2002 1 kayıt (commit)
  7. 07 Mar, 2002 1 kayıt (commit)
  8. 06 Mar, 2002 1 kayıt (commit)
    • Michael W. Hudson's avatar
      Apply (my) patch: · ce358e30
      Michael W. Hudson yazdı
      [ 526072 ] pickling os.stat results round II
      
      structseq's constructors can now take "invisible" fields in a dict.
      Gave the constructors better error messages.
      their __reduce__ method puts these fields in a dict.
      
      (this is all in aid of getting os.stat_result's to pickle portably)
      
      Also fixes
      
      [ 526039 ] devious code can crash structseqs
      
      Thought needed about how much of this counts as a bugfix.  Certainly
      #526039 needs to be fixed.
      ce358e30
  9. 05 Mar, 2002 1 kayıt (commit)
    • Michael W. Hudson's avatar
      A fix & test for · 7bb466a1
      Michael W. Hudson yazdı
      [ 496873 ] structseqs unpicklable
      
      by adding a __reduce__ method to structseqs.
      
      Will also commit this to the 2.2.1 branch momentarily.
      7bb466a1
  10. 28 Kas, 2001 1 kayıt (commit)
  11. 30 Eki, 2001 1 kayıt (commit)
  12. 18 Eki, 2001 1 kayıt (commit)