1. 28 Jun, 2002 3 commits
  2. 27 Jun, 2002 5 commits
  3. 25 Jun, 2002 10 commits
  4. 24 Jun, 2002 1 commit
    • Jeremy Hylton's avatar
      Be more cautious open creating a file when the old one doesn't exist. · ad85dfb9
      Jeremy Hylton authored
      Workaround for bug in Python versions upto and including 2.1.3.  If
      the interpreter was builtin without large file support but the
      platform had it, os.path.exists() would return false for large files.
      The fix is to try to open the file first, and decide whether to create
      a new file based on errno.
      
      (Only the two of the last three chunks of the diff affect this
      behavior.)
      
      Also cleanup imports and add some whitespace between arguments to func
      calls.
      ad85dfb9
  5. 23 Jun, 2002 3 commits
  6. 22 Jun, 2002 1 commit
  7. 21 Jun, 2002 3 commits
  8. 20 Jun, 2002 3 commits
    • Jeremy Hylton's avatar
      8cc397b5
    • 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
  9. 19 Jun, 2002 2 commits
  10. 18 Jun, 2002 6 commits
  11. 17 Jun, 2002 3 commits
    • Tim Peters's avatar
    • Tim Peters's avatar
      firstBucketOffset(), lastBucketOffset(): removed these functions. Their · 49592586
      Tim Peters authored
      purpose wasn't clear, and the few places that bothered to call them seemed
      to be trying to cater to empty buckets.  But empty buckets aren't legitimate
      in a BTree (or, if they are, lots of BTree code is broken).
      
      BTreeItems struct:  finished figuring out what's in this, and documented it.
      
      BTreeItems_seek():  rewrote and simplified, to avoid use of the now-
      removed XYZBucketOffset() functions.  Repaired places where bucket access
      time wasn't getting updated.  There are still insecurities in its use of
      PreviousBucket() (for another day).
      
      BTreeItems_slice():  now that I know what it is <wink>, create an empty
      slice in the intended way.
      
      NewBTreeItems():  documented its calling sequence, and added code to
      protect against a NULL highbucket argument.
      
      BTree_maxminKey():  no longer calls the XYZBucketOffset() functions.
      49592586
    • Tim Peters's avatar
      _BTree_set(): This is BTree_grow's only caller, and BTree_grow() can leave · 81a354c7
      Tim Peters authored
      a BTree in an invalid state.  Normally, _BTree_set() repairs this before
      return, but in case of error may not.  Now it does.
      81a354c7