1. 06 Jun, 2001 2 commits
  2. 05 Jun, 2001 5 commits
  3. 04 Jun, 2001 5 commits
  4. 03 Jun, 2001 5 commits
  5. 02 Jun, 2001 6 commits
  6. 01 Jun, 2001 1 commit
  7. 31 May, 2001 2 commits
  8. 30 May, 2001 3 commits
  9. 29 May, 2001 11 commits
    • Tim Peters's avatar
      This division test was too stringent in its accuracy expectations for · 0b76d3a8
      Tim Peters authored
      random inputs:  if you ran the test 100 times, you could expect it to
      report a bogus failure.  So loosened its expectations.
      Also changed the way failing tests are printed, so that when run under
      regrtest.py we get enough info to reproduce the failure.
      0b76d3a8
    • Tim Peters's avatar
      BadDictKey test: The output file expected "raising error" to be printed · 9a828d3c
      Tim Peters authored
      exactly once.  But the test code can't know that, as the number of times
      __cmp__ is called depends on internal details of the dict implementation.
      This is especially nasty because the __hash__ method returns the address
      of the class object, so the hash codes seen by the dict can vary across
      runs, causing the dict to use a different probe order across runs.  I
      just happened to see this test fail about 1 run in 7 today, but only
      under a release build and when passing -O to Python.  So, changed the test
      to be predictable across runs.
      9a828d3c
    • Fred Drake's avatar
      New solution to the "Someone stuck a colon in that filename!" problem: · 9a374186
      Fred Drake authored
      Allow colons in the labels used for internal references, but do not
      expose them when generating filename.
      9a374186
    • Fred Drake's avatar
      Users of PySequence_GET_FAST() should get the length of the sequence using · 96a2a800
      Fred Drake authored
      PySequence_Size(), not PyObject_Size(): the later considers the mapping
      methods as well as the sequence methods, which is not needed here.  Either
      should be equally fast in this case, but PySequence_Size() offers a better
      conceptual match.
      96a2a800
    • Fred Drake's avatar
      readlink() description: Added note that the return value may be either · dc9e7e42
      Fred Drake authored
          absolute or relative.
      
      remove(), rename() descriptions:  Give more information about the cross-
          platform behavior of these functions, so single-platform developers
          can be aware of the potential issues when writing portable code.
      
      This closes SF patch #426598.
      dc9e7e42
    • Jeremy Hylton's avatar
      Change cascaded if stmts to switch stmt in vgetargs1(). · 25916bdc
      Jeremy Hylton authored
      In the default branch, keep three ifs that are used if level == 0, the
      most common case.  Note that first if here is a slight optimization
      for the 'O' format.
      
      Second part of SF patch 426072.
      25916bdc
    • Jeremy Hylton's avatar
      Internal refactoring of convertsimple() and friends. · 1cb7aa3e
      Jeremy Hylton authored
      Note that lots of code was re-indented.
      
      Replace two-step of convertsimple() and convertsimple1() with
      convertsimple() and helper converterr(), which is called to format
      error messages when convertsimple() fails.  The old code did all the
      real work in convertsimple1(), but deferred error message formatting
      to conversimple().  The result was paying the price of a second
      function call on every call just to format error messages in the
      failure cases.
      
      Factor out of the buffer-handling code in convertsimple() and package
      it as convertbuffer().
      
      Add two macros to ease readability of Unicode coversions,
      UNICODE_DEFAULT_ENCODING() and CONV_UNICODE, an error string.
      
      The convertsimple() routine had awful indentation problems, primarily
      because there were two tabs between the case line and the body of the
      case statements.  This patch reformats the entire function to have a
      single tab between case line and case body, which makes the code
      easier to read (and consistent with ceval).  The introduction of
      converterr() exacerbated the problem and prompted this fix.
      
      Also, eliminate non-standard whitespace after opening paren and before
      closing paren in a few if statements.
      
      (This checkin is part of SF patch 426072.)
      1cb7aa3e
    • Jeremy Hylton's avatar
      fix bogus indentation · 9cea41c1
      Jeremy Hylton authored
      9cea41c1
    • Fred Drake's avatar
      runtest(): When generating output, if the result is a single line with the · e51fe8d0
      Fred Drake authored
          name of the test, only write the output file if it already exists (and
          tell the user to consider removing it).  This avoids the generation of
          unnecessary turds.
      e51fe8d0
    • Fred Drake's avatar
    • Jeremy Hylton's avatar
      bea3947f