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.... · 5a4718e1
      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...
      5a4718e1
    • Tim Peters's avatar
      Speed tuple comparisons in two ways: · d7ed3bf5
      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.
      d7ed3bf5
    • Marc-André Lemburg's avatar
      fab96cc2
    • Tim Peters's avatar
      Just changed "x,y" to "x, y" everywhere (i.e., inserted horizontal space · 30324a73
      Tim Peters authored
      after commas that didn't have any).
      30324a73
    • Guido van Rossum's avatar
      Add quoted-printable codec · acfdf156
      Guido van Rossum authored
      acfdf156
    • Fred Drake's avatar
      Beef up the unicode() description a bit, based on material from AMK's · c0dac1a5
      Fred Drake authored
      "What's New in Python ..." documents.
      c0dac1a5
    • Fred Drake's avatar
      abspath(): Fix inconsistent indentation. · da05e977
      Fred Drake authored
      da05e977
    • Marc-André Lemburg's avatar
      This patch changes the way the string .encode() method works slightly · 2d920419
      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.
      2d920419