1. 01 May, 2000 8 commits
    • Guido van Rossum's avatar
      Eric Raymond: · eb4e11ae
      Guido van Rossum authored
      Added and documented the capability for shlex to handle lexical-level
      inclusion and a stack of input sources.  Also, the input stream member
      is now documented, and the constructor takes an optional source-filename.
      The class provides facilities to generate error messages that track
      file and line number.
      
      [GvR: I changed the __main__ code so that it actually stops at EOF, as
      Eric surely intended -- however it returned '' instead of the None he
      was testing for.]
      eb4e11ae
    • Guido van Rossum's avatar
      Marc-Andre Lemburg: · b16d197d
      Guido van Rossum authored
      Added Py_UnicodeFlag for use by the -U command line option.
      b16d197d
    • Guido van Rossum's avatar
      Marc-Andre Lemburg: · fdc8bdb6
      Guido van Rossum authored
      Support for the new -U command line option option:
      with the option enabled the Python compiler
      interprets all "..." strings as u"..." (same with r"..." and
      ur"...").
      fdc8bdb6
    • Guido van Rossum's avatar
      Marc-Andre Lemburg: · c15a9a1f
      Guido van Rossum authored
      Added -U command line option.
      
      With the option enabled the Python compiler interprets all "..."
      strings as u"..." (same with r"..." and ur"...").
      c15a9a1f
    • Guido van Rossum's avatar
      Robin Becker: The following patch seems to fix a module case bug in · 22b65a8e
      Guido van Rossum authored
      1.6a2 caused by wrong return values in routine allcaps83.  [GvR: I
      also changed the case for end-s>8 to return 0.]
      22b65a8e
    • Barry Warsaw's avatar
      Document the new additional signature for utime(). In addition to the · 93a8eacd
      Barry Warsaw authored
      previous functionality utime(path, (atime, mtime)), now allowed is
      utime(path, None) which sets the file's times to the current time.
      93a8eacd
    • Guido van Rossum's avatar
      Marc-Andre Lemburg: · d58c26fe
      Guido van Rossum authored
      The two methods .readline() and .readlines() in StreamReaderWriter
      didn't define the self argument. Found by Tom Emerson.
      d58c26fe
    • Barry Warsaw's avatar
      posix_utime(): Allow the second argument to be None, which invokes the · 3cef856d
      Barry Warsaw authored
      utime(path, NULL) call, setting the atime and mtime of the file to the
      current time.  The previous signature utime(path, (atime, mtime)) is
      of course still allowed.
      3cef856d
  2. 28 Apr, 2000 14 commits
  3. 27 Apr, 2000 12 commits
  4. 26 Apr, 2000 6 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