1. 02 Jul, 2002 1 commit
  2. 28 Jun, 2002 3 commits
  3. 27 Jun, 2002 5 commits
  4. 25 Jun, 2002 10 commits
  5. 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
  6. 23 Jun, 2002 3 commits
  7. 22 Jun, 2002 1 commit
  8. 21 Jun, 2002 3 commits
  9. 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
  10. 19 Jun, 2002 2 commits
  11. 18 Jun, 2002 6 commits
  12. 17 Jun, 2002 2 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