1. 20 Jun, 2002 2 commits
    • Tim Peters's avatar
      43b9dad7
    • Tim Peters's avatar
      BTree_length_or_nonzero(): Sped this. In the nonzero case, · ec72bdca
      Tim Peters authored
      a BTree is empty if and only if its firstbucket pointer is
      NULL, so there's no need to keep checking nonzero inside the
      loop.  Also, the pointers here are all local, so there's no
      need to incref and decref them -- the apparent necessity was
      just an artifact of using the bucket assignment macros.  So
      stopped using those macros, and the need for incref/decref
      operations went away too.
      
      PyVar_AssignB(), ASSIGNB(), ASSIGNBC():  Turned out these
      are no longer used anywhere anymore, so removed them.
      
      PER_UNUSE():  New macro to capture the endlessly repeated
      PER_ALLOW_DEACTIVATION + PER_ACCESSED pair.  As the comment
      says, so sue me <wink>.
      
      Bucket_deleteNextBucket():  Documented & simplified.
      ec72bdca
  2. 19 Jun, 2002 2 commits
  3. 18 Jun, 2002 6 commits
  4. 17 Jun, 2002 9 commits
  5. 14 Jun, 2002 6 commits
  6. 13 Jun, 2002 11 commits
  7. 12 Jun, 2002 4 commits
    • Tim Peters's avatar
      Recorded some exploitable invariants. · 6c211f2c
      Tim Peters authored
      6c211f2c
    • Tim Peters's avatar
      New testPathologicalRangeSearch(). The nasty part of this test is · 9ce95b20
      Tim Peters authored
      commented out for now, because it fails.  I'm working on a fix.  The
      problem was found by eyeballing the range-test implementation.  If you
      delete a key from a BTree that just happens to be the first key in a
      bucket, then a later high-end range search giving that specific key as
      the endpoint claims that no keys are in the range, and whether or not
      that's actually true.
      9ce95b20
    • Tim Peters's avatar
      BTree_getstate(): Documented what it returns. · 7cefcd47
      Tim Peters authored
      7cefcd47
    • Shane Hathaway's avatar
      It's really not safe for unit test modules to change sys.path. Doing · 2a74054a
      Shane Hathaway authored
      so makes the full suite brittle.  Cleaned out all the places where unit
      tests change sys.path.  (Use the PYTHONPATH environment variable instead.)
      
      Also brought SearchIndex tests up to date, which I didn't really need to do
      since SearchIndex is deprecated, but I did it as part of figuring out the
      failed Interface tests, so I might as well check in my work. ;-)  One of the
      test modules in SearchIndex forgets to define a global named "Dummy",
      actually, so all the tests were failing before this checkin anyway.
      2a74054a