1. 14 Agu, 2006 1 kayıt (commit)
  2. 22 Tem, 2006 1 kayıt (commit)
  3. 10 Tem, 2006 1 kayıt (commit)
  4. 12 Haz, 2006 1 kayıt (commit)
  5. 27 Şub, 2006 1 kayıt (commit)
  6. 18 Şub, 2006 2 kayıt (commit)
  7. 15 Şub, 2006 1 kayıt (commit)
  8. 19 Ock, 2006 1 kayıt (commit)
  9. 17 Ock, 2006 1 kayıt (commit)
  10. 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
  11. 03 Eyl, 2005 1 kayıt (commit)
  12. 21 Agu, 2005 1 kayıt (commit)
  13. 03 Haz, 2005 1 kayıt (commit)
  14. 01 Kas, 2004 1 kayıt (commit)
  15. 14 Şub, 2004 1 kayıt (commit)
  16. 07 Şub, 2004 1 kayıt (commit)
  17. 01 Tem, 2003 1 kayıt (commit)
  18. 03 May, 2003 1 kayıt (commit)
  19. 29 Nis, 2003 1 kayıt (commit)
  20. 27 Nis, 2003 1 kayıt (commit)
  21. 29 Mar, 2003 1 kayıt (commit)
  22. 11 Şub, 2003 1 kayıt (commit)
    • Gustavo Niemeyer's avatar
      Unparenting BZ2File, as discussed in SF patch #661796. · a33d0aa6
      Gustavo Niemeyer yazdı
      * Modules/bz2module.c
        (BZ2FileObject): Now the structure includes a pointer to a file object,
         instead of "inheriting" one. Also, some members were copied from the
         PyFileObject structure to avoid dealing with the internals of that
         structure from outside fileobject.c.
      
        (Util_GetLine,Util_DropReadAhead,Util_ReadAhead,Util_ReadAheadGetLineSkip,
         BZ2File_write,BZ2File_writelines,BZ2File_init,BZ2File_dealloc,
         BZ2Comp_dealloc,BZ2Decomp_dealloc):
         	These functions were adapted to the change above.
      
        (BZ2File_seek,BZ2File_close): Use PyObject_CallMethod instead of
         getting the function attribute locally.
      
        (BZ2File_notsup): Removed, since it's not necessary anymore to overload
         truncate(), and readinto() with dummy functions.
      
        (BZ2File_methods): Added xreadlines() as an alias to BZ2File_getiter,
         and removed truncate() and readinto().
      
        (BZ2File_get_newlines,BZ2File_get_closed,BZ2File_get_mode,BZ2File_get_name,
         BZ2File_getset):
         	Implemented getters for "newlines", "mode", and "name".
      
        (BZ2File_members): Implemented "softspace" member.
      
        (BZ2File_init): Reworked to create a file instance instead of initializing
         itself as a file subclass. Also, pass "name" object untouched to the
         file constructor, and use PyObject_CallFunction instead of building the
         argument tuple locally.
      
        (BZ2File_Type): Set tp_new to PyType_GenericNew, tp_members to
         BZ2File_members, and tp_getset to BZ2File_getset.
      
        (initbz2): Do not set BZ2File_Type.tp_base nor BZ2File_Type.tp_new.
      
      
      * Doc/lib/libbz2.tex
        Do not mention that BZ2File inherits from the file type.
      a33d0aa6
  23. 06 Ock, 2003 1 kayıt (commit)
    • Jason Tishler's avatar
      Patch #661760: Cygwin auto-import module patch · fb8595df
      Jason Tishler yazdı
      The attached patch enables shared extension
      modules to build cleanly under Cygwin without
      moving the static initialization of certain function
      pointers (i.e., ones exported from the Python
      DLL core) to a module initialization function.
      
      Additionally, this patch fixes the modules that
      have been changed in the past to accommodate
      Cygwin.
      fb8595df
  24. 05 Ara, 2002 1 kayıt (commit)
  25. 23 Kas, 2002 1 kayıt (commit)
  26. 09 Kas, 2002 7 kayıt (commit)
  27. 08 Kas, 2002 1 kayıt (commit)
  28. 05 Kas, 2002 3 kayıt (commit)
    • Gustavo Niemeyer's avatar
      * bzmodule.c · 7d7930bb
      Gustavo Niemeyer yazdı
        More fixes of XDECREF'd values not initialized.
      7d7930bb
    • Neal Norwitz's avatar
      Fix SF #633935, test_bz2 fails · 18142c0c
      Neal Norwitz yazdı
      Needed to init ret since it was Py_XDECREF()d on error.
      All regressions pass in debug build for me.
      18142c0c
    • Gustavo Niemeyer's avatar
      Patch implementing bz2 module. · f8ca8364
      Gustavo Niemeyer yazdı
      * setup.py
        (PyBuildExt.detect_modules): Included bz2 module detection.
      
      * Modules/bz2module.c
      * Lib/test/test_bz2.py
      * Doc/lib/libbz2.tex
        Included files implementing, testing, and documenting bz2 module.
      
      * Doc/Makefile.deps
      * Doc/lib/lib.tex
        Include references to libbz2.tex.
      
      * Misc/NEWS
        (Library): Mention distutils' c++ linkage patch, and new bz2 module.
      f8ca8364