1. 27 Agu, 2001 6 kayıt (commit)
  2. 25 Agu, 2001 3 kayıt (commit)
  3. 24 Agu, 2001 26 kayıt (commit)
  4. 23 Agu, 2001 5 kayıt (commit)
    • Tim Peters's avatar
      Add a test for the new // operator too. · a3653095
      Tim Peters yazdı
      a3653095
    • Tim Peters's avatar
      SF bug [#454456] int overflow code needs tests. · 26c7fa35
      Tim Peters yazdı
      Added tests for boundary cases in magical PEP 237 int->long auto-overflow,
      but nothing here addresses the rest of the bug report so left it open.
      26c7fa35
    • Tim Peters's avatar
      float_pow: Put *all* of the burden on the libm pow in normal · 96685bfb
      Tim Peters yazdı
      cases.
      powu:  Deleted.
      
      This started with a nonsensical error msg:
      
      >>> x = -1.
      >>> import sys
      >>> x**(-sys.maxint-1L)
      Traceback (most recent call last):
        File "<stdin>", line 1, in ?
      ValueError: negative number cannot be raised to a fractional power
      >>>
      
      The special-casing in float_pow was simply wrong in this case (there's
      not even anything peculiar about these inputs), and I don't see any point
      to it in *any* case:  a decent libm pow should have worst-case error under
      1 ULP, so in particular should deliver the exact result whenever the exact
      result is representable (else its error is at least 1 ULP).  Thus our
      special fiddling for integral values "shouldn't" buy anything in accuracy,
      and, to the contrary, repeated multiplication is less accurate than a
      decent pow when the true result isn't exactly representable.  So just
      letting pow() do its job here (we may not be able to trust libm x-platform
      in exceptional cases, but these are normal cases).
      96685bfb
    • Guido van Rossum's avatar
      Add new built-in type 'getset' (PyGetSet_Type). · 29a62dd6
      Guido van Rossum yazdı
      This implements the 'getset' class from test_binop.py.
      29a62dd6
    • Guido van Rossum's avatar