1. 05 Sep, 2006 2 commits
    • Tim Peters's avatar
      Whitespace normalization. · dd5e7b9a
      Tim Peters authored
      dd5e7b9a
    • Tim Peters's avatar
      "Conceptual" merge of rev 51711 from the 2.5 branch. · c10c9d0d
      Tim Peters authored
      i_divmod():  As discussed on Python-Dev, changed the overflow
      checking to live happily with recent gcc optimizations that
      assume signed integer arithmetic never overflows.
      
      This differs from the corresponding change on the 2.5 and 2.4
      branches, using a less obscure approach, but one that /may/
      tickle platform idiocies in their definitions of LONG_MIN.
      The 2.4 + 2.5 change avoided introducing a dependence on
      LONG_MIN, at the cost of substantially goofier code.
      c10c9d0d
  2. 04 Sep, 2006 1 commit
  3. 03 Sep, 2006 3 commits
  4. 02 Sep, 2006 8 commits
  5. 01 Sep, 2006 2 commits
  6. 31 Aug, 2006 6 commits
  7. 29 Aug, 2006 2 commits
  8. 26 Aug, 2006 1 commit
  9. 25 Aug, 2006 9 commits
  10. 24 Aug, 2006 1 commit
  11. 23 Aug, 2006 5 commits
    • Alex Martelli's avatar
      Reverting the patch that tried to fix the issue whereby x**2 raises · 348dc880
      Alex Martelli authored
      OverflowError while x*x succeeds and produces infinity; apparently
      these inconsistencies cannot be fixed across ``all'' platforms and
      there's a widespread feeling that therefore ``every'' platform
      should keep suffering forevermore.  Ah well.
      348dc880
    • Jeremy Hylton's avatar
      Replace dead code with an assert. · 39c532c0
      Jeremy Hylton authored
      Now that COMMENT tokens are reliably followed by NL or NEWLINE,
      there is never a need to add extra newlines in untokenize.
      39c532c0
    • Jeremy Hylton's avatar
      Bug fixes large and small for tokenize. · 76467ba6
      Jeremy Hylton authored
      Small: Always generate a NL or NEWLINE token following
             a COMMENT token.  The old code did not generate an NL token if
             the comment was on a line by itself.
      
      Large: The output of untokenize() will now match the
             input exactly if it is passed the full token sequence.  The
             old, crufty output is still generated if a limited input
             sequence is provided, where limited means that it does not
             include position information for tokens.
      
      Remaining bug: There is no CONTINUATION token (\) so there is no way
      for untokenize() to handle such code.
      
      Also, expanded the number of doctests in hopes of eventually removing
      the old-style tests that compare against a golden file.
      
      Bug fix candidate for Python 2.5.1. (Sigh.)
      76467ba6
    • Alex Martelli's avatar
      x**2 should about equal x*x (including for a float x such that the result is · 20362a82
      Alex Martelli authored
      inf) but didn't; added a test to test_float to verify that, and ignored the
      ERANGE value for errno in the pow operation to make the new test pass (with
      help from Marilyn Davis at the Google Python Sprint -- thanks!).
      20362a82
    • Jeremy Hylton's avatar
      29bef0bb