1. 08 Oct, 2001 3 commits
    • Jeremy Hylton's avatar
    • Jeremy Hylton's avatar
      Clean-ups and speed-ups to the default log implementation. · fd97a65e
      Jeremy Hylton authored
      This change includes a minor change to semantics for
      reinitialization().
      
      There are three chief performance-related changes:
      
          - Do not check whether logging is enabled in the actual log call.
            Instead check enviroment variables when the module is imported
            and whenever an explicit initialize() call is made.
      
            This might seem like it limits the user's ability to turn
            logging on and off, but I don't believe it does.  Logging is
            controlled by environment variables.  Once the Python script is
            working, the environment variables won't change.
      
            This change makes the case of no logging fast, instead of slow.
      
          - Each log call goes through a method on the stupid_log_write()
            object instead of through __call__().  It's much faster to call
            a method than an instance.
      
          - Use "print >> file" rather than "file.write()".  It appears to
            be a bit faster.
      
      Replaced _set_stupid_dest() with _set_log_dest().
      fd97a65e
    • Jeremy Hylton's avatar
      Some minimal tests · e114fa06
      Jeremy Hylton authored
      e114fa06
  2. 05 Oct, 2001 11 commits
  3. 04 Oct, 2001 11 commits
  4. 03 Oct, 2001 3 commits
  5. 02 Oct, 2001 5 commits
  6. 28 Sep, 2001 6 commits
  7. 26 Sep, 2001 1 commit
    • Jeremy Hylton's avatar
      Be more specific about exception begin caugh in test_merge(). · d6669eca
      Jeremy Hylton authored
      The only exceptions that an _p_resolveConflict() method should raise
      are ConflictError and ValueError.  If it raises a different exception,
      then it has failed.
      
      In general, a unittest should not use a bare except clause, because
      they almost always mask failures.  If the test really means to catch
      all exceptions, it's best to make a comment to that effect.
      d6669eca