1. 08 Oct, 2001 4 commits
    • Jeremy Hylton's avatar
      Oops: local var is f not file. · 5332d256
      Jeremy Hylton authored
      5332d256
    • 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