1. 29 Jun, 2000 37 commits
  2. 28 Jun, 2000 3 commits
    • Guido van Rossum's avatar
      Vladimir Marangozov: · 5e08cb8e
      Guido van Rossum authored
      This patch fixes a problem on AIX with the signed int case code in
      getargs.c, after Trent Mick's intervention about MIN/MAX overflow
      checks. The AIX compiler/optimizer generates bogus code with the
      default flags "-g -O" causing test_builtin to fail: int("10", 16) <>
      16L. Swapping the two checks in the signed int code makes the problem
      go away.
      
      Also, make the error messages fit in 80 char lines in the
      source.
      5e08cb8e
    • Guido van Rossum's avatar
      Vladimir Marangozov: · d7823f26
      Guido van Rossum authored
      Avoid calling the dealloc function, previously triggered with
      DECREF(inst).  This caused a segfault in PyDict_GetItem, called with a
      NULL dict, whenever inst->in_dict fails under low-memory conditions.
      d7823f26
    • Guido van Rossum's avatar
      Urmpf. Quality control on this patch lapsed a bit. :-( · 98626cd7
      Guido van Rossum authored
      The depth field was never decremented inside w_object(), and it was
      never initialized in PyMarshal_WriteObjectToFile().
      
      This caused imports from .pyc files to fil mysteriously when the .pyc
      file was written by the broken code -- w_object() would bail out
      early, but PyMarshal_WriteObjectToFile() doesn't check the error or
      return an error code, and apparently the marshalling code doesn't call
      PyErr_Check() either.  (That's a separate patch if I feel like it.)
      98626cd7