1. 21 May, 2001 3 commits
  2. 20 May, 2001 2 commits
  3. 19 May, 2001 9 commits
  4. 18 May, 2001 8 commits
  5. 17 May, 2001 9 commits
  6. 16 May, 2001 1 commit
  7. 15 May, 2001 8 commits
    • Jack Jansen's avatar
      Bah, somehow the macroman<->iso-latin-1 translation got lost during the merge.... · 7a13cb48
      Jack Jansen authored
      Bah, somehow the macroman<->iso-latin-1 translation got lost during the merge. Checking in one fixed file to make sure MacCVS Pro isn't the problem. If it isn't a flurry of checkins will follow tomorrow. If it is... well...
      7a13cb48
    • Tim Peters's avatar
      Speed tuple comparisons in two ways: · dd646a0d
      Tim Peters authored
      1. Omit the early-out EQ/NE "lengths different?" test.  Was unable to find
         any real code where it triggered, but it always costs.  The same is not
         true of list richcmps, where different-size lists appeared to get
         compared about half the time.
      2. Because tuples are immutable, there's no need to refetch the lengths of
         both tuples from memory again on each loop trip.
      
      BUG ALERT:  The tuple (and list) richcmp algorithm is arguably wrong,
      because it won't believe there's any difference unless Py_EQ returns false
      for some corresponding elements:
      
      >>> class C:
      ...     def __lt__(x, y): return 1
      ...     __eq__ = __lt__
      ...
      >>> C() < C()
      1
      >>> (C(),) < (C(),)
      0
      >>>
      
      That doesn't make sense -- provided you believe the defn. of C makes sense.
      dd646a0d
    • Marc-André Lemburg's avatar
      3c830574
    • Tim Peters's avatar
      Just changed "x,y" to "x, y" everywhere (i.e., inserted horizontal space · 3fbd4623
      Tim Peters authored
      after commas that didn't have any).
      3fbd4623
    • Guido van Rossum's avatar
      Add quoted-printable codec · fe0f94da
      Guido van Rossum authored
      fe0f94da
    • Fred Drake's avatar
      Beef up the unicode() description a bit, based on material from AMK's · dbe75521
      Fred Drake authored
      "What's New in Python ..." documents.
      dbe75521
    • Fred Drake's avatar
      abspath(): Fix inconsistent indentation. · 80d26df1
      Fred Drake authored
      80d26df1
    • Marc-André Lemburg's avatar
      This patch changes the way the string .encode() method works slightly · 164fe558
      Marc-André Lemburg authored
      and introduces a new method .decode().
      
      The major change is that strg.encode() will no longer try to convert
      Unicode returns from the codec into a string, but instead pass along
      the Unicode object as-is. The same is now true for all other codec
      return types. The underlying C APIs were changed accordingly.
      
      Note that even though this does have the potential of breaking
      existing code, the chances are low since conversion from Unicode
      previously took place using the default encoding which is normally
      set to ASCII rendering this auto-conversion mechanism useless for
      most Unicode encodings.
      
      The good news is that you can now use .encode() and .decode() with
      much greater ease and that the door was opened for better accessibility
      of the builtin codecs.
      
      As demonstration of the new feature, the patch includes a few new
      codecs which allow string to string encoding and decoding (rot13,
      hex, zip, uu, base64).
      
      Written by Marc-Andre Lemburg. Copyright assigned to the PSF.
      164fe558