1. 26 May, 1998 9 commits
    • Guido van Rossum's avatar
      Tim's quicksort on May 25. · 9be62833
      Guido van Rossum authored
      9be62833
    • Guido van Rossum's avatar
      Add Tim's worst case scenario. · 16653cb2
      Guido van Rossum authored
      Revert to using whrandom so it will work with older versions of Python.
      16653cb2
    • Guido van Rossum's avatar
      Added some tests to make sure that long->int conversions near · 7462942b
      Guido van Rossum authored
      sys.maxint and near -sys.maxint-1 work correctly.
      7462942b
    • Guido van Rossum's avatar
      Subject: Buglet in PyLong_AsLong · f7531812
      Guido van Rossum authored
      From: "Tim Peters" <tim_one@email.msn.com>
      To: "Guido van Rossum" <guido@CNRI.Reston.VA.US>
      Date: Sat, 23 May 1998 21:45:53 -0400
      
      Guido, the overflow checking in PyLong_AsLong is off a little:
      
      1) If the C in use sign-extends right shifts on signed longs, there's a
      spurious overflow error when converting the most-negative int:
      
      Python 1.5.1 (#0, Apr 13 1998, 20:22:04) [MSC 32 bit (Intel)] on win32
      Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
      >>> x = -1L << 31
      >>> x
      -2147483648L
      >>> int(x)
      Traceback (innermost last):
        File "<stdin>", line 1, in ?
      OverflowError: long int too long to convert
      
      >
      > 2) If C does not sign-extend, some genuine overflows won't be caught.
      >
      > The attached should repair both, and, because I installed a new disk and a C
      > compiler today, it's even been compiled this time <wink>.
      >
      > Python 1.5.1 (#0, May 23 1998, 20:24:58) [MSC 32 bit (Intel)] on win32
      > Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
      > >>> x = -1L << 31
      > >>> x
      > -2147483648L
      > >>> int(x)
      > -2147483648
      > >>> int(-x)
      > Traceback (innermost last):
      >   File "<stdin>", line 1, in ?
      > OverflowError: long int too long to convert
      > >>> int(-x-1)
      > 2147483647
      > >>> int(x-1)
      > Traceback (innermost last):
      >   File "<stdin>", line 1, in ?
      > OverflowError: long int too long to convert
      
      
      end-casing-ly y'rs  - tim
      f7531812
    • Guido van Rossum's avatar
    • Guido van Rossum's avatar
      Moved VC++ 5.x files to ../PCbuild. · 9c1bc5b1
      Guido van Rossum authored
      9c1bc5b1
    • Guido van Rossum's avatar
      Moved VC++ 5.x stuff here. · 15b239f7
      Guido van Rossum authored
      15b239f7
    • Guido van Rossum's avatar
      Mark Hammond writes: · 1c096b72
      Guido van Rossum authored
      Also, here is a new version of import_nt.c, which allows you to register a
      Debug module in the registry.  While I was there I removed some of the
      ugliness - what was I thinking :-)
      1c096b72
    • Guido van Rossum's avatar
      Don't die if win32api doesn't exist. · 0f1e1fc3
      Guido van Rossum authored
      0f1e1fc3
  2. 22 May, 1998 20 commits
  3. 21 May, 1998 1 commit
  4. 20 May, 1998 8 commits
  5. 19 May, 1998 2 commits