1. 11 Mar, 2002 3 kayıt (commit)
    • Michael W. Hudson's avatar
      backport akuchling's checkin of · ade05ed7
      Michael W. Hudson yazdı
          revision 1.6 of libxmlrpclib.tex
      
      [Bug #486527] Note that the caller has to ensure there are no control
          characters in strings being passed via XML-RPC.
      Fix some typos.
      
      2.2.1 bugfix candidate.
      ade05ed7
    • Michael W. Hudson's avatar
      I presume most of the fixes currently hitting the tree should go into · 7742c3d4
      Michael W. Hudson yazdı
      2.2.1, but it would be nice if people remembered to comment on their
      fixes' applicability!
      
      backport akuchling's checkin of
          revision 1.26 of webchecker.py
      
      [Bug #512799] urllib.splittype() returns a 2-tuple.  (Reported by seb bacon)
      7742c3d4
    • Michael W. Hudson's avatar
      backport jhylton's checkin of · 8cdebb2e
      Michael W. Hudson yazdı
          revision 2.33 of cStringIO.c
      
      Fix SF bug #526518
      
      The doc string for cStringIO suggested that str() of a StringIO object
      was equivalent to getvalue().  This was never true, so repair the doc
      string.  (doctest would have helped here.)
      
      Bug fix candidate for any past versions.
      8cdebb2e
  2. 10 Mar, 2002 2 kayıt (commit)
    • Jack Jansen's avatar
      Backport of 1.22: · 63558c18
      Jack Jansen yazdı
      Use waste included with CW in stead of separate package.
      
      (But a truer log message would have been "updated to current version of waste",
      as in MachoPython we use a normal standalone separate Waste distribution).
      63558c18
    • Jack Jansen's avatar
      Backport of 1.9 (missed last time around): · 1ea301fd
      Jack Jansen yazdı
      Changes by Donovan Preston (and a few minor ones by me) to make IDE run under
      MachoPython. Mainly making sure we don't call routines that don't exist
      and representing pathnames in a os.separator-neutral format.
      1ea301fd
  3. 08 Mar, 2002 7 kayıt (commit)
    • Fred Drake's avatar
      Add more explanation of how data_files is used (esp. where the files end up · d72eb611
      Fred Drake yazdı
      in the installation and how that location is determined).
      d72eb611
    • Michael W. Hudson's avatar
      backport jackjansen's checkin of · d2fa75d8
      Michael W. Hudson yazdı
          revision 1.294 of configure.in
          revision 1.285 of configure
      
      When testing for availability of pthreads without special compiler options
      or libraries also look for thread_detach. SGI has thread_create in libc
      but complete pthread support only in -lpthread. Fixes #522393.
      
      2.2.1 candidate.Killed by signal 2.
      d2fa75d8
    • Michael W. Hudson's avatar
      backport montanaro's checkin of · fcfa313f
      Michael W. Hudson yazdı
          revision 1.18 of BaseHTTPServer.py
      
      add Content-Type header to error responses
      this closes patch 502080
      fcfa313f
    • Michael W. Hudson's avatar
      backport montanaro's checkin of · 65a95473
      Michael W. Hudson yazdı
          revision 1.58 of pydoc.py
      
      add repr_str as alias for repr_string in both HTMLRepr and TextRepr classes
      - reflects the change in type("").__name__ between 2.1 and 2.2.  The
      __name__ field is used to find a method to call for particular types.
      65a95473
    • Michael W. Hudson's avatar
      backport tim_one's checkin of · 85717c76
      Michael W. Hudson yazdı
          revision 2.38 of mmapmodule.c
      
      SF bug 515943:  searching for data with \0 in mmap.
      mmap_find_method():  this obtained the string to find via s#, but it
      ignored its length, acting as if it were \0-terminated instead.
      
      Someone please run on Linux too (the extended test_mmap works on Windows).
      
      Bugfix candidate.
      85717c76
    • Michael W. Hudson's avatar
      backport tim_one's checkin of · db175266
      Michael W. Hudson yazdı
          revision 1.20 of test_mmap.py
      
      SF bug 515943:  searching for data with \0 in mmap.
      mmap_find_method():  this obtained the string to find via s#, but it
      ignored its length, acting as if it were \0-terminated instead.
      
      Someone please run on Linux too (the extended test_mmap works on Windows).
      
      Bugfix candidate.
      db175266
    • Fred Drake's avatar
      "Shortcut" should be "short-circuit". · b74a9623
      Fred Drake yazdı
      This closes SF bug #526277.
      b74a9623
  4. 07 Mar, 2002 7 kayıt (commit)
    • Michael W. Hudson's avatar
      backport my checkin of · a374b6f4
      Michael W. Hudson yazdı
          revision 1.6 of structseq.c
      
      Guido pointed out that I was missing a couple decrefs.
      a374b6f4
    • Michael W. Hudson's avatar
      After some thinking, I decided to move all of this across onto · aa3fd6f3
      Michael W. Hudson yazdı
      the branch.  I don't think it can break code, so the only risk
      is introducing new bugs.  In that vein, can I ask -checkins readers
      who have time to carefully look this over, check my refcounts &c?
      TIA.
      
      backport my checkin of
          revision 1.5 of structseq.c
      
      Apply (my) patch:
      
      [ 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.
      aa3fd6f3
    • Michael W. Hudson's avatar
      backport my checkin of · 38983bc5
      Michael W. Hudson yazdı
          revision 1.14 of pickletester.py
      
      Special support for pickling os.stat and os.stat_vfs results portably
      (the types come from different modules on different platforms).
      
      Added tests for pickling these types.
      
      May be a bugfix candidate.
      38983bc5
    • Michael W. Hudson's avatar
      backport my checkin of · 2b85b374
      Michael W. Hudson yazdı
          revision 1.52 of os.py
      
      revision 1.52
      date: 2002/03/06 17:11:17;  author: mwh;  state: Exp;  lines: +20 -0
      Special support for pickling os.stat and os.stat_vfs results portably
      (the types come from different modules on different platforms).
      
      Added tests for pickling these types.
      
      May be a bugfix candidate.
      2b85b374
    • Michael W. Hudson's avatar
      backport my checkin of · 77771c31
      Michael W. Hudson yazdı
          revision 1.3 of test_structseq.py
      
      Test for
      
      [ 526039 ] devious code can crash structseqs
      
      Bugfix candidate.
      
      I haven't actually fixed this on the branch yet.  Will soon.
      77771c31
    • Michael W. Hudson's avatar
      Regenerate. · e7cd99d5
      Michael W. Hudson yazdı
      e7cd99d5
    • Michael W. Hudson's avatar
      backport my checkin of · 6dcabf31
      Michael W. Hudson yazdı
          revision 1.84 of setup.py
          revision 1.293 of configure.in
      
      Apply Jack's patch attached to
      
      [ 508779 ] Disable flat namespace on MacOS X
      
      I presume you wanted this on the trunk too, Jack?
      
      2.2.1 candidate.
      6dcabf31
  5. 06 Mar, 2002 4 kayıt (commit)
  6. 05 Mar, 2002 17 kayıt (commit)
    • Michael W. Hudson's avatar
      backport loewis' checkin of · 9fffe6bb
      Michael W. Hudson yazdı
          revision 1.24 of codecs.py
      
      Set default value for readlines.sizehint to None. Change needed for 2.2.1
      as well.
      9fffe6bb
    • Michael W. Hudson's avatar
      backport tim_one's checkin of · 325573ce
      Michael W. Hudson yazdı
          revision 1.114 of longobject.c
      
      _PyLong_Copy():  was creating a copy of the absolute value, but should
      copy the sign too.  Added a test to test_descr to ensure that it does.
      
      Bugfix candidate.
      325573ce
    • Michael W. Hudson's avatar
      Backport the bits of Guido's fix for · c4562a89
      Michael W. Hudson yazdı
      SF patch 514641 (Naofumi Honda) - Negative ob_size of LongObjects
      
      that Tim didn't later back out.
      c4562a89
    • Michael W. Hudson's avatar
      backport tim_one's checkin of · d7894ba1
      Michael W. Hudson yazdı
          revision 1.116 of test_descr.py
      
      _PyLong_Copy():  was creating a copy of the absolute value, but should
      copy the sign too.  Added a test to test_descr to ensure that it does.
      
      Bugfix candidate.
      d7894ba1
    • Michael W. Hudson's avatar
      backport gvanrossum's checkin of · 72500922
      Michael W. Hudson yazdı
          revision 1.163 of ACKS
      72500922
    • Michael W. Hudson's avatar
      backport gvanrossum's checkin of · 8b34e614
      Michael W. Hudson yazdı
          revision 1.115 of test_descr.py
      
      SF patch 514641 (Naofumi Honda) - Negative ob_size of LongObjects
      
      Due to the bizarre definition of _PyLong_Copy(), creating an instance
      of a subclass of long with a negative value could cause core dumps
      later on.  Unfortunately it looks like the behavior of _PyLong_Copy()
      is quite intentional, so the fix is more work than feels comfortable.
      
      This fix is almost, but not quite, the code that Naofumi Honda added;
      in addition, I added a test case.
      
      
      
      I haven't quite worked out how to port the fix yet, but the test cases
      can go straight over.
      8b34e614
    • Michael W. Hudson's avatar
      backport tim_one's checkin of · 7a4b55dd
      Michael W. Hudson yazdı
          revision 2.5 of pymem.h
          revision 2.44 of pyport.h
      
      Whether platform malloc(0) returns NULL has nothing to do with whether
      platform realloc(p, 0) returns NULL, so MALLOC_ZERO_RETURNS_NULL can
      be correctly undefined yet realloc(p, 0) can return NULL anyway.
      
      Prevent realloc(p, 0) doing free(p) and returning NULL via a different
      hack.  Would probably be better to get rid of MALLOC_ZERO_RETURNS_NULL
      entirely.
      
      Bugfix candidate.
      7a4b55dd
    • Michael W. Hudson's avatar
      backport tim_one's checkin of · fc7af770
      Michael W. Hudson yazdı
          revision 2.164 of object.c
      
      Whether platform malloc(0) returns NULL has nothing to do with whether
      platform realloc(p, 0) returns NULL, so MALLOC_ZERO_RETURNS_NULL can
      be correctly undefined yet realloc(p, 0) can return NULL anyway.
      
      Prevent realloc(p, 0) doing free(p) and returning NULL via a different
      hack.  Would probably be better to get rid of MALLOC_ZERO_RETURNS_NULL
      entirely.
      
      Bugfix candidate.
      fc7af770
    • Michael W. Hudson's avatar
      backport gvanrossum's checkin of · dd6186d4
      Michael W. Hudson yazdı
          revision 1.162 of ACKS
      
      SF patch 517245 by Marc Recht.
      
      Support GMP version >= 2.
      
      Bugfix candidate.
      dd6186d4
    • Michael W. Hudson's avatar
      backport gvanrossum's checkin of · 45e7de40
      Michael W. Hudson yazdı
          revision 2.40 of mpzmodule.c
      
      SF patch 517245 by Marc Recht.
      
      Support GMP version >= 2.
      
      Bugfix candidate.
      45e7de40
    • Michael W. Hudson's avatar
      backport my checkin of · b4541fd6
      Michael W. Hudson yazdı
          revision 1.13 of pickletester.py
      
      A fix & test for
      
      [ 496873 ] structseqs unpicklable
      
      by adding a __reduce__ method to structseqs.
      
      Will also commit this to the 2.2.1 branch momentarily.
      b4541fd6
    • Michael W. Hudson's avatar
      backport my checkin of · 5660b8e3
      Michael W. Hudson yazdı
          revision 1.4 of structseq.c
      
      A fix & test for
      
      [ 496873 ] structseqs unpicklable
      
      by adding a __reduce__ method to structseqs.
      
      Will also commit this to the 2.2.1 branch momentarily.
      5660b8e3
    • Michael W. Hudson's avatar
      backport bwarsaw's checkin of · cedf2a4e
      Michael W. Hudson yazdı
          revision 1.34 of mailbox.py
      
      Added PortableUnixMailbox to the __all__ variable, and in the __main__
      section use this class instead of UnixMailbox as per the comments in
      the latter's class.
      
      Bug fix candidate for 2.2.1.
      cedf2a4e
    • Michael W. Hudson's avatar
      backport gvanrossum's checkin of · 234bb740
      Michael W. Hudson yazdı
          revision 1.24 of copy.py
      
      SF patch 518765 (Derek Harland): Bug in copy.py when used through
      rexec.
      
      When using a restricted environment, imports of copy will fail with an
      AttributeError when trying to access types.CodeType.
      
      Bugfix candidate (all the way back to 1.5.3, but at least 2.1.3 and
      2.2.1).
      234bb740
    • Michael W. Hudson's avatar
      backport gvanrossum's checkin of · c10d570d
      Michael W. Hudson yazdı
          revision 1.161 of ACKS
      
      SF patch 518765 (Derek Harland): Bug in copy.py when used through
      rexec.
      
      When using a restricted environment, imports of copy will fail with an
      AttributeError when trying to access types.CodeType.
      
      Bugfix candidate (all the way back to 1.5.3, but at least 2.1.3 and
      2.2.1).
      c10d570d
    • Michael W. Hudson's avatar
      backport tim_one's checkin of · f51017d5
      Michael W. Hudson yazdı
          revision 2.22 of thread_nt.h
      
      SF patch  522961: Leak in Python/thread_nt.h, from Gerald S. Williams.
      A file-static "threads" dict mapped thread IDs to Windows handles, but
      was never referenced, and entries never got removed.  This gets rid of
      the YAGNI-dict entirely.
      Bugfix candidate.
      f51017d5
    • Michael W. Hudson's avatar
      backport gvanrossum's checkin of · effe724c
      Michael W. Hudson yazdı
          revision 1.76 of Makefile.pre.in
      
      SF patch #524005 by Paul Eggert.
      
      Use posixly correct sort args.
      
      Bugfix candidate.
      effe724c