1. 31 Aug, 2004 3 commits
    • Martin v. Löwis's avatar
      Add patch for Tix 8.1.4. · 89a0b7d9
      Martin v. Löwis authored
      89a0b7d9
    • Tim Peters's avatar
      HardwareRandom: Go back to multiplying by 2**-BPF instead of using · 7c2a85b2
      Tim Peters authored
      ldexp.  Both methods are exact, and return the same results.  Turns out
      multiplication is a few (but just a few) percent faster on my box.
      They're both significantly faster than using struct with a Q format
      to convert bytes to a 64-bit long (struct.unpack() appears to lose due
      to the tuple creation/teardown overhead), and calling _hexlify is
      significantly faster than doing bytes.encode('hex').  So we appear to
      have hit a local minimum (wrt speed) here.
      7c2a85b2
    • Raymond Hettinger's avatar
      Take advantage of the math library's ldexp for assembling a float by · 3fa19d7f
      Raymond Hettinger authored
      components without division and without roundoff error for properly
      sized mantissas (i.e. on systems with 53 or more mantissa bits per
      float).  Eliminates the previous implementation's rounding bias as
      aptly demonstrated by Tim Peters.
      3fa19d7f
  2. 30 Aug, 2004 22 commits
  3. 29 Aug, 2004 11 commits
  4. 28 Aug, 2004 3 commits
  5. 27 Aug, 2004 1 commit
    • Tim Peters's avatar
      PyUnicode_Join(): Bozo Alert. While this is chugging along, it may · 91879ab8
      Tim Peters authored
      need to convert str objects from the iterable to unicode.  So, if
      someone set the system default encoding to something nasty enough,
      the conversion process could mutate the input iterable as a side
      effect, and PySequence_Fast doesn't hide that from us if the input was
      a list.  IOW, can't assume the size of PySequence_Fast's result is
      invariant across PyUnicode_FromObject() calls.
      91879ab8