1. 20 Jan, 2003 6 commits
    • Guido van Rossum's avatar
      More cleanup and refactoring: · 80019c1c
      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
      80019c1c
    • Barry Warsaw's avatar
      FileIterator.next(): Break out of the while-loop by raising IndexError · 275483db
      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.
      275483db
    • Barry Warsaw's avatar
      checkIterationIntraTransaction(): A test for doing iteration while in · 12ed6eee
      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).
      12ed6eee
    • Florent Guillaume's avatar
      Merge from 2.0 branch: · d8862fa7
      Florent Guillaume authored
      Fixed to correctly munge sys.path.
      d8862fa7
    • Guido van Rossum's avatar
      Change all #! lines to read "#!python". This seems to be the only way · d7339514
      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.
      d7339514
    • Fred Drake's avatar
      Clarify a comment. · 1529b2b4
      Fred Drake authored
      1529b2b4
  2. 18 Jan, 2003 2 commits
  3. 17 Jan, 2003 22 commits
  4. 16 Jan, 2003 9 commits
  5. 15 Jan, 2003 1 commit