1. 20 Jan, 2003 6 commits
    • Guido van Rossum's avatar
      More cleanup and refactoring: · e72a3179
      Guido van Rossum authored
      - Get rid of _lock() and _unlock(); _lock() is inlined, and so is
        _unlock(), after factoring out some common code at the end of
        tpc_begin() and tpc_end().
      
      - In the refactored _unlock() code, only call self.timeout.end() if
        self.locked was actually set.
      
      In the TimeoutThread class:
      
      - Add some comments.
      
      - Add some assertions.
      
      - Get rid of the stop() method; we're a daemon thread so we'll be
        killed anyway; close_server() is only used from the test suite.
      
      - Switch from using a lock + an event to a condition variable.  Be
        religious about doing stuff only while holding the lock.
      
      - Inline the timeout() function; it shouldn't reacquire the lock
        anyway.
      
      --Guido & Jeremy
      e72a3179
    • Barry Warsaw's avatar
      FileIterator.next(): Break out of the while-loop by raising IndexError · 8333c5a5
      Barry Warsaw authored
      earlier in the loop.  Basically, once we've got a tid from the
      transaction record, we check it against our stop tid, and we check the
      status looking for a 'c' flag.
      8333c5a5
    • Barry Warsaw's avatar
      checkIterationIntraTransaction(): A test for doing iteration while in · 3e8d3d7d
      Barry Warsaw authored
      the middle of a transaction.  This test isn't totally helpful in its
      own right, but run it with logging and you'll see the bogus warning
      (before the fix is applied).
      3e8d3d7d
    • Florent Guillaume's avatar
      Merge from 2.0 branch: · 544b9a97
      Florent Guillaume authored
      Fixed to correctly munge sys.path.
      544b9a97
    • Guido van Rossum's avatar
      Change all #! lines to read "#!python". This seems to be the only way · 8f5d0913
      Guido van Rossum authored
      that we can get distutils install to munge the #! line to insert the
      proper Python executable file name.  (/usr/local/bin/python would work
      too, but may not be the Python version that you intended to use, so
      IMO it's better to require that you use an explicit Python interpreter
      when invoking the scripts before they are installed.
      8f5d0913
    • Fred Drake's avatar
      Clarify a comment. · fd5b63c5
      Fred Drake authored
      fd5b63c5
  2. 18 Jan, 2003 2 commits
  3. 17 Jan, 2003 22 commits
  4. 16 Jan, 2003 9 commits
  5. 15 Jan, 2003 1 commit