1. 27 Apr, 2000 3 commits
  2. 26 Apr, 2000 13 commits
    • Jack Jansen's avatar
      Almost ready for 1.6a2. · bad9c767
      Jack Jansen authored
      bad9c767
    • Guido van Rossum's avatar
      Jack Jansen: · c410e929
      Guido van Rossum authored
      This patch is a workaround for Macintosh, where the GUSI I/O library
      (time, stat, etc) use the MacOS epoch of 1-Jan-1904 and the MSL C
      library (ctime, localtime, etc) uses the (apparently ANSI standard)
      epoch of 1-Jan-1900. Python programs see the MacOS epoch and we
      convert values when needed.
      c410e929
    • Jeremy Hylton's avatar
      potentially useless optimization · 9e392e24
      Jeremy Hylton authored
      The previous checkin (2.84) added a PyErr_Format call that made the
      cost of raising an AttributeError much more expensive.  In general
      this doesn't matter, except that checks for __init__ and
      __del__ methods, where exceptions are caught and cleared in C, also
      got much more expensive.
      
      The fix is to split instance_getattr1 into two calls:
      
      instance_getattr2 checks the instance and the class for the attribute
      and returns it or returns NULL on error.  It does not raise an
      exception.
      
      instance_getattr1 does rexec checks, then calls instance_getattr2.  It
      raises an exception if instance_getattr2 returns NULL.
      
      PyInstance_New and instance_dealloc now call instance_getattr2
      directly.
      9e392e24
    • Guido van Rossum's avatar
      Michael Hudson: · 50422b40
      Guido van Rossum authored
      This patch changes posixmodule.c:execv to
      
      a) check for zero length args (does this to execve, too), raising
         ValueError.
      
      b) raises more rational exceptions for various flavours of duff arguments.
         I *hate*
            TypeError: "illegal argument type for built-in operation"
         It has to be one of the most frustrating error messages ever.
      50422b40
    • Guido van Rossum's avatar
      Michael Hudson fixes a case where execv() is called (for a test) with · 868b50af
      Guido van Rossum authored
      an empty argument list -- another patch he's checking in will make
      this illegal (the first argument should always be the program name).
      868b50af
    • Fred Drake's avatar
    • Fred Drake's avatar
      64b72b6f
    • Fred Drake's avatar
      ref_module_index_helper(): Use "my" instead of "local". · 37cc0c0e
      Fred Drake authored
      get_rfc_url():  New function; returns the URL for a numbered IETF RFC.
      
      do_cmd_rfc():  Use get_rfc_url() instead of hard-coding in the HTML
                     formatting.
      
      do_cmd_seerfc():  New function.
      
      do_env_definitions():  Small change to avoid "local".
      37cc0c0e
    • Greg Ward's avatar
      Hacked things up a bit so that configuration variables are expanded · ff2d9b71
      Greg Ward authored
      in command-line options, and in two phases at that: first, we expand
      'install_base' and 'install_platbase', and then the other 'install_*'
      options.  This lets us do tricky stuff like
          install --prefix='/tmp$sys_prefix'
      ...oooh, neat.
      
      Simplified 'select_scheme()' -- it's no longer responsible for expanding
      config vars, tildes, etc.
      
      Define installation-specific config vars in 'self.config_vars', rather than
      in a local dictionary of one method.  Also factored '_expand_attrs()' out
      of 'expand_dirs()' and added 'expand_basedirs()'.
      
      Added a bunch of debugging output so I (and others) can judge the
      success of this crazy scheme through direct feedback.
      ff2d9b71
    • Greg Ward's avatar
      Harry Henry Gebel: import exception classes. · 6ce94b72
      Greg Ward authored
      6ce94b72
    • Greg Ward's avatar
    • Greg Ward's avatar
      839d532e
    • Greg Ward's avatar
      Harry Henry Gebel: · 1b8e1d4c
      Greg Ward authored
      Fix 'sdist.write_manifest()' to respect the value of dry_run.
      1b8e1d4c
  3. 25 Apr, 2000 12 commits
  4. 24 Apr, 2000 12 commits