1. 04 May, 2008 2 commits
    • Mark Dickinson's avatar
      Blocked revisions 62684 via svnmerge · c0b6cc8a
      Mark Dickinson authored
      ........
        r62684 | mark.dickinson | 2008-05-03 22:05:06 -0400 (Sat, 03 May 2008) | 9 lines
      
        Some very minor changes to decimal.py in Python 2.6, aimed
        at reducing the size of the diff between the 2.x decimal.py
        and 3.x decimal.py and thereby making future merges easier:
      
        - replace one instnace of an old-style raise statement
        - define __div__ in terms of __truediv__ instead of the
          other way around
        - make wording match on an exception message
      ........
      c0b6cc8a
    • Mark Dickinson's avatar
      Revert changes in 62669, since they caused test failures. · 349a7853
      Mark Dickinson authored
      __floor__, __ceil__ and __round__ are still wrong,
      but they need to be replaced with something rather
      than just removed.
      349a7853
  2. 03 May, 2008 8 commits
  3. 02 May, 2008 1 commit
  4. 01 May, 2008 3 commits
  5. 30 Apr, 2008 8 commits
    • Mark Dickinson's avatar
      Make floating-point exception error messages slightly more verbose: in · a0de26c3
      Mark Dickinson authored
      particular, the error message now allows one to distinguish between a
      ValueError arising from a singularity (e.g. log(0.)), which would
      usually produce +-infinity in non-stop mode, and a ValueError resulting
      from an invalid input (e.g. sqrt(-1.)), which would normally produce a
      NaN in non-stop mode.
      a0de26c3
    • Thomas Heller's avatar
    • Georg Brandl's avatar
      Merged revisions 62602 via svnmerge from · f392057e
      Georg Brandl authored
      svn+ssh://pythondev@svn.python.org/python/trunk
      
      ........
        r62602 | georg.brandl | 2008-04-30 22:02:37 +0200 (Wed, 30 Apr 2008) | 2 lines
      
        #2727: clarify tp_iternext docs.
      ........
      f392057e
    • Georg Brandl's avatar
      Block backport of next(). · c71520eb
      Georg Brandl authored
      c71520eb
    • Georg Brandl's avatar
      Fix nits in builtin next(). · aaa6392a
      Georg Brandl authored
      aaa6392a
    • Thomas Heller's avatar
      Merged revisions... · b041fdaf
      Thomas Heller authored
      Merged revisions 60056-60071,60073-60127,60129-60261,60263-60284,60286-62589,62591-62594 via svnmerge from
      svn+ssh://pythondev@svn.python.org/python/branches/py3k-ctypes-pep3118
      
      ........
        r60059 | thomas.heller | 2008-01-18 22:17:05 +0100 (Fri, 18 Jan 2008) | 1 line
      
        Implement pep3118 format strings for SimpleCData types.
      ........
        r60108 | thomas.heller | 2008-01-19 22:56:12 +0100 (Sat, 19 Jan 2008) | 3 lines
      
        Always use explicit endian specifiers for simple types, and a bug fix
        too.  Add unittest.
      ........
        r60112 | thomas.heller | 2008-01-19 23:25:14 +0100 (Sat, 19 Jan 2008) | 2 lines
      
        Fully implement tp_asbuffer for pointer types.
      ........
        r60261 | thomas.heller | 2008-01-24 22:01:29 +0100 (Thu, 24 Jan 2008) | 4 lines
      
        Added shape and ndim field to StgDictObject.  Implemented pep3118
        format string, ndim, and shape for array types.  Added a
        buffer_info(type_or_object) for testing.
      ........
        r60278 | thomas.heller | 2008-01-25 11:53:33 +0100 (Fri, 25 Jan 2008) | 2 lines
      
        Implement pep3118 format strings for ctypes.Structure and ctypes.Union.
      ........
        r60288 | thomas.heller | 2008-01-25 17:58:30 +0100 (Fri, 25 Jan 2008) | 2 lines
      
        All ctypes types now use the same CData_GetBuffer function.
      ........
        r60289 | thomas.heller | 2008-01-25 19:59:45 +0100 (Fri, 25 Jan 2008) | 2 lines
      
        Fix format string for structures, and itemsize for arrays.
      ........
        r60290 | thomas.heller | 2008-01-25 20:09:03 +0100 (Fri, 25 Jan 2008) | 2 lines
      
        Implement to format string for function pointers.
      ........
        r60292 | thomas.heller | 2008-01-25 20:32:20 +0100 (Fri, 25 Jan 2008) | 3 lines
      
        Only structures with native packing implement the pep.  Unions, or
        packed structures do not.
      ........
        r60293 | thomas.heller | 2008-01-25 20:34:31 +0100 (Fri, 25 Jan 2008) | 2 lines
      
        Update the test.
      ........
        r60295 | thomas.heller | 2008-01-25 20:44:41 +0100 (Fri, 25 Jan 2008) | 2 lines
      
        Fixed a few XXX markers.
      ........
        r60298 | thomas.heller | 2008-01-25 21:11:08 +0100 (Fri, 25 Jan 2008) | 1 line
      
        Fix test for 64-bt platform.
      ........
        r60299 | thomas.heller | 2008-01-25 21:34:11 +0100 (Fri, 25 Jan 2008) | 2 lines
      
        Add test for the readonly bit.
      ........
        r60384 | thomas.heller | 2008-01-28 08:45:04 +0100 (Mon, 28 Jan 2008) | 4 lines
      
        Restructure the test so that it contains little endian format strings.
        On big endian machines, the format strings are converted by replacing
        '<' with '>'.
      ........
        r60385 | thomas.heller | 2008-01-28 08:58:46 +0100 (Mon, 28 Jan 2008) | 1 line
      
        Bugfix and test for explicit big and little endian types.
      ........
        r60428 | thomas.heller | 2008-01-29 22:00:37 +0100 (Tue, 29 Jan 2008) | 1 line
      
        Add comments to clarify the tests.
      ........
        r62589 | thomas.heller | 2008-04-30 13:49:46 +0200 (Wed, 30 Apr 2008) | 1 line
      
        Fix compiler warnings.
      ........
      b041fdaf
    • Mark Dickinson's avatar
      Add some temporary autoconf checks to try to figure out why test_math is · 6471f963
      Mark Dickinson authored
      failing on Debian/alpha.  (log(9.88e-324) gives an unexpected ValueError
      on that platform).  These checks will be removed again once the source
      of the problem is identified.
      
      I hope this is a reasonable way to approach the Debian/alpha buildbot
      failures; if there's a better way of debugging buildbot test failures
      then please let me know.
      6471f963
    • Eric Smith's avatar
      Merged revisions 62586 via svnmerge from · b2c7af82
      Eric Smith authored
      svn+ssh://pythondev@svn.python.org/python/trunk
      
      ........
        r62586 | eric.smith | 2008-04-29 21:09:30 -0400 (Tue, 29 Apr 2008) | 5 lines
      
        Issue 2526, float.__format__ 'n' specifier does not support thousands grouping.
      
        Implemented grouping, with tests.
        Cleaned up PyOS_ascii_formatd by breaking reformatting into smaller functions.
      ........
      b2c7af82
  6. 29 Apr, 2008 2 commits
  7. 28 Apr, 2008 1 commit
  8. 27 Apr, 2008 2 commits
    • Benjamin Peterson's avatar
      Blocked revisions 62536 via svnmerge · a288faef
      Benjamin Peterson authored
      ........
        r62536 | benjamin.peterson | 2008-04-27 13:40:21 -0500 (Sun, 27 Apr 2008) | 2 lines
      
        A little reformating of Py3k warnings
      ........
      a288faef
    • Benjamin Peterson's avatar
      Blocked revisions 62517-62518 via svnmerge · d321d99b
      Benjamin Peterson authored
      ........
        r62517 | benjamin.peterson | 2008-04-26 21:28:02 -0500 (Sat, 26 Apr 2008) | 2 lines
      
        Added PyErr_WarnPy3k function. (issue 2671) I will be converting current Py3k warnings to the use of this function soon.
      ........
        r62518 | benjamin.peterson | 2008-04-26 22:01:45 -0500 (Sat, 26 Apr 2008) | 2 lines
      
        Use PyErr_WarnPy3k throughout
      ........
      d321d99b
  9. 26 Apr, 2008 2 commits
  10. 25 Apr, 2008 3 commits
  11. 24 Apr, 2008 7 commits
  12. 22 Apr, 2008 1 commit
    • Trent Nelson's avatar
      Issue 2440: remove the guard around the handling of case 'n' in getargs.c's... · 3513358e
      Trent Nelson authored
      Issue 2440: remove the guard around the handling of case 'n' in getargs.c's convertsimple() such that we always treat it as an index type, regardless of whether or not sizeof(size_t) == sizeof(long).  Fix the test_args2.Signed_TestCase.test_n() such that it tests for adherence to PEP 357 (don't try and coerce objects that don't have nb_index slots but do have nb_int slots (i.e. floats) into indexes 'just because we can').  Three other commits are related to this one: r62269 and r62279, which were changes to PyNumber_Index (among other things) to check for nb_int slots when we lack nb_index slots -- and r62292, which is when I reverted these changes after various people pointed out that the test was in fact wrong, not the code.
      3513358e