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