1. 18 Ock, 2001 1 kayıt (commit)
    • Guido van Rossum's avatar
      Use rich comparisons to fulfill an old wish: complex numbers now raise · be4cbb16
      Guido van Rossum yazdı
      exceptions when compared using <, <=, > or >=.
      
      NOTE: This is a tentative change: this means that cmp() involving
      complex numbers will raise an exception when the numbers differ, and
      that in turn means that e.g. dictionaries and certain other compounds
      (e.g. UserLists) containing complex numbers can't be compared either.
      So we'll have to decide whether this is acceptable.  The alpha test
      cycle is a good time to keep an eye on this!
      be4cbb16
  2. 26 Eyl, 2000 1 kayıt (commit)
  3. 01 Eyl, 2000 1 kayıt (commit)
  4. 15 Agu, 2000 1 kayıt (commit)
    • Tim Peters's avatar
      Fix for http://sourceforge.net/bugs/?func=detailbug&bug_id=111866&group_id=5470. · 39dce293
      Tim Peters yazdı
      This was a misleading bug -- the true "bug" was that hash(x) gave an error
      return when x is an infinity.  Fixed that.  Added new Py_IS_INFINITY macro to
      pyport.h.  Rearranged code to reduce growing duplication in hashing of float and
      complex numbers, pushing Trent's earlier stab at that to a logical conclusion.
      Fixed exceedingly rare bug where hashing of floats could return -1 even if there
      wasn't an error (didn't waste time trying to construct a test case, it was simply
      obvious from the code that it *could* happen).  Improved complex hash so that
      hash(complex(x, y)) doesn't systematically equal hash(complex(y, x)) anymore.
      39dce293
  5. 31 Tem, 2000 1 kayıt (commit)
  6. 09 Tem, 2000 1 kayıt (commit)
  7. 30 Haz, 2000 2 kayıt (commit)
  8. 29 Haz, 2000 1 kayıt (commit)
    • Fred Drake's avatar
      This patch addresses two main issues: (1) There exist some non-fatal · 13634cf7
      Fred Drake yazdı
      errors in some of the hash algorithms. For exmaple, in float_hash and
      complex_hash a certain part of the value is not included in the hash
      calculation. See Tim's, Guido's, and my discussion of this on
      python-dev in May under the title "fix float_hash and complex_hash for
      64-bit *nix"
      
      (2) The hash algorithms that use pointers (e.g. func_hash, code_hash)
      are universally not correct on Win64 (they assume that sizeof(long) ==
      sizeof(void*))
      
      As well, this patch significantly cleans up the hash code. It adds the
      two function _Py_HashDouble and _PyHash_VoidPtr that the various
      hashing routine are changed to use.
      
      These help maintain the hash function invariant: (a==b) =>
      (hash(a)==hash(b))) I have added Lib/test/test_hash.py and
      Lib/test/output/test_hash to test this for some cases.
      13634cf7
  9. 03 May, 2000 1 kayıt (commit)
    • Guido van Rossum's avatar
      Vladimir Marangozov's long-awaited malloc restructuring. · b18618da
      Guido van Rossum yazdı
      For more comments, read the patches@python.org archives.
      For documentation read the comments in mymalloc.h and objimpl.h.
      
      (This is not exactly what Vladimir posted to the patches list; I've
      made a few changes, and Vladimir sent me a fix in private email for a
      problem that only occurs in debug mode.  I'm also holding back on his
      change to main.c, which seems unnecessary to me.)
      b18618da
  10. 29 Şub, 2000 1 kayıt (commit)
  11. 20 Ock, 2000 1 kayıt (commit)
  12. 25 Ock, 1999 1 kayıt (commit)
  13. 07 May, 1998 1 kayıt (commit)
  14. 20 May, 1997 1 kayıt (commit)
  15. 02 May, 1997 1 kayıt (commit)
  16. 09 Nis, 1997 1 kayıt (commit)
  17. 01 Nis, 1997 1 kayıt (commit)
  18. 14 Mar, 1997 1 kayıt (commit)
  19. 14 Şub, 1997 1 kayıt (commit)
  20. 11 Ock, 1997 1 kayıt (commit)
  21. 05 Ara, 1996 1 kayıt (commit)
  22. 12 Eyl, 1996 2 kayıt (commit)
  23. 11 Eyl, 1996 2 kayıt (commit)
  24. 19 Agu, 1996 1 kayıt (commit)
  25. 21 Tem, 1996 1 kayıt (commit)
  26. 24 May, 1996 1 kayıt (commit)
  27. 25 Ock, 1996 2 kayıt (commit)
  28. 12 Ock, 1996 2 kayıt (commit)