1. 08 Jan, 2001 1 commit
    • Tim Peters's avatar
      Fiddled ms_getline_hack after talking w/ Guido: made clearer that the · 15b83852
      Tim Peters authored
      code duplication is to let us get away without a realloc whenever possible;
      boosted the init buf size (the cutoff at which we *can* get away without
      a realloc) from 100 to 200 so that more files can enjoy this boost; and
      allowed other threads to run in all cases.  The last two cost something,
      but not significantly:  in my fat test case, less than a 1% slowdown total.
      Since my test case has a great many short lines, that's probably the worst
      slowdown, too.  While the logic barely changed, there were lots of edits.
      This also gets rid of the reference to fp->_cnt, so the last platform
      assumption being made here is that fgets doesn't overwrite bytes
      capriciously (== beyond the terminating null byte it must write).
      15b83852
  2. 07 Jan, 2001 4 commits
  3. 06 Jan, 2001 2 commits
    • Marc-André Lemburg's avatar
      This patch adds a new feature to the builtin charmap codec: · 1109db44
      Marc-André Lemburg authored
      the mapping dictionaries can now contain 1-n mappings, meaning
      that character ordinals may be mapped to strings or Unicode object,
      e.g. 0x0078 ('x') -> u"abc", causing the ordinal to be replaced by
      the complete string or Unicode object instead of just one character.
      
      Another feature introduced by the patch is that of mapping oridnals to
      the emtpy string. This allows removing characters.
      
      The patch is different from patch #103100 in that it does not cause a
      performance hit for the normal use case of 1-1 mappings.
      
      Written by Marc-Andre Lemburg, copyright assigned to Guido van Rossum.
      1109db44
    • Marc-André Lemburg's avatar
      This patch adds a new feature to the builtin charmap codec: · ec233e58
      Marc-André Lemburg authored
      The mapping dictionaries can now contain 1-n mappings, meaning
      that character ordinals may be mapped to strings or Unicode object,
      e.g. 0x0078 ('x') -> u"abc", causing the ordinal to be replaced by
      the complete string or Unicode object instead of just one character.
      
      Another feature introduced by the patch is that of mapping oridnals to
      the emtpy string. This allows removing characters.
      
      The patch is different from patch #103100 in that it does not cause a
      performance hit for the normal use case of 1-1 mappings.
      
      Written by Marc-Andre Lemburg, copyright assigned to Guido van Rossum.
      ec233e58
  4. 05 Jan, 2001 9 commits
  5. 04 Jan, 2001 24 commits