1. 30 Apr, 2008 4 commits
    • Georg Brandl's avatar
      Fix nits in builtin next(). · c17cc357
      Georg Brandl authored
      c17cc357
    • Thomas Heller's avatar
      Merged revisions... · 686c0df2
      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.
      ........
      686c0df2
    • Mark Dickinson's avatar
      Add some temporary autoconf checks to try to figure out why test_math is · 195b1125
      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.
      195b1125
    • Eric Smith's avatar
      Merged revisions 62586 via svnmerge from · f602afd3
      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.
      ........
      f602afd3
  2. 29 Apr, 2008 2 commits
  3. 28 Apr, 2008 1 commit
  4. 27 Apr, 2008 2 commits
    • Benjamin Peterson's avatar
      Blocked revisions 62536 via svnmerge · e6af0e62
      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
      ........
      e6af0e62
    • Benjamin Peterson's avatar
      Blocked revisions 62517-62518 via svnmerge · 0eed0254
      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
      ........
      0eed0254
  5. 26 Apr, 2008 2 commits
  6. 25 Apr, 2008 3 commits
  7. 24 Apr, 2008 7 commits
  8. 22 Apr, 2008 1 commit
    • Trent Nelson's avatar
      Issue 2440: remove the guard around the handling of case 'n' in getargs.c's... · b17ba96d
      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.
      b17ba96d
  9. 21 Apr, 2008 4 commits
  10. 20 Apr, 2008 1 commit
    • Christian Heimes's avatar
      Merged revisions... · c4f30b63
      Christian Heimes authored
      Merged revisions 62386-62387,62389-62393,62396,62400-62402,62407,62409-62410,62412-62414,62418-62419 via svnmerge from
      svn+ssh://pythondev@svn.python.org/python/trunk
      
      ........
        r62386 | christian.heimes | 2008-04-19 04:23:57 +0200 (Sat, 19 Apr 2008) | 2 lines
      
        Added kill, terminate and send_signal to subprocess.Popen
        The bits and pieces for the Windows side were already in place. The POSIX side is trivial (as usual) and uses os.kill().
      ........
        r62387 | georg.brandl | 2008-04-19 10:23:59 +0200 (Sat, 19 Apr 2008) | 2 lines
      
        Fix-up docs for revision 62386.
      ........
        r62389 | georg.brandl | 2008-04-19 18:57:43 +0200 (Sat, 19 Apr 2008) | 2 lines
      
        #2369: clarify that copyfile() doesn't take a target directory.
      ........
        r62390 | georg.brandl | 2008-04-19 18:58:28 +0200 (Sat, 19 Apr 2008) | 2 lines
      
        #2634: clarify meaning of env parameter to spawn/exec*e.
      ........
        r62391 | georg.brandl | 2008-04-19 18:58:49 +0200 (Sat, 19 Apr 2008) | 2 lines
      
        #2633: clarify meaning of env parameter.
      ........
        r62392 | georg.brandl | 2008-04-19 18:59:16 +0200 (Sat, 19 Apr 2008) | 2 lines
      
        #2631: clarify IMPORT_NAME semantics.
      ........
        r62393 | georg.brandl | 2008-04-19 19:00:14 +0200 (Sat, 19 Apr 2008) | 2 lines
      
        :func: et al. should *not* include the parens.
      ........
        r62396 | mark.dickinson | 2008-04-19 20:51:48 +0200 (Sat, 19 Apr 2008) | 5 lines
      
        Additional tests for math.pow, and extra special-case
        handling code in math.pow, in the hope of making all
        tests pass on the alpha Tru64 buildbot.
      ........
        r62400 | mark.dickinson | 2008-04-19 21:41:52 +0200 (Sat, 19 Apr 2008) | 3 lines
      
        Additional special-case handling for math.pow.
        Windows/VS2008 doesn't like (-1)**(+-inf).
      ........
        r62401 | benjamin.peterson | 2008-04-19 21:47:34 +0200 (Sat, 19 Apr 2008) | 2 lines
      
        Complete documentation for errors argument of io's open and TextIOWrapper
      ........
        r62402 | mark.dickinson | 2008-04-19 22:31:16 +0200 (Sat, 19 Apr 2008) | 2 lines
      
        Document updates to math and cmath modules.
      ........
        r62407 | georg.brandl | 2008-04-19 23:28:38 +0200 (Sat, 19 Apr 2008) | 2 lines
      
        Update template for newest Sphinx.
      ........
        r62409 | mark.dickinson | 2008-04-19 23:35:35 +0200 (Sat, 19 Apr 2008) | 5 lines
      
        Correct documentation for math.pow;
        0**nan is nan, not 0.  (But nan**0 and 1**nan are 1.)
      
        Also fix minor typo: 'quite NaN' -> 'quiet NaN'
      ........
        r62410 | mark.dickinson | 2008-04-19 23:49:22 +0200 (Sat, 19 Apr 2008) | 4 lines
      
        Move asinh documentation to the proper place.
        Remove meaningless 'in radians' from inverse
        hyperbolic functions.
      ........
        r62412 | mark.dickinson | 2008-04-20 03:22:30 +0200 (Sun, 20 Apr 2008) | 5 lines
      
        Report additional diagnostic information in
        test_math, to help track down debian-alpha
        buildbot failure.
      ........
        r62413 | mark.dickinson | 2008-04-20 03:39:24 +0200 (Sun, 20 Apr 2008) | 3 lines
      
        FreeBSD doesn't follow C99 for modf(inf); so add explicit
        special-value handling to math.modf code.
      ........
        r62414 | mark.dickinson | 2008-04-20 06:13:13 +0200 (Sun, 20 Apr 2008) | 5 lines
      
        Yet more explicit special case handling to make
        math.pow behave on alpha Tru64.  All IEEE 754
        special values are now handled directly; only
        the finite**finite case is handled by libm.
      ........
        r62418 | mark.dickinson | 2008-04-20 18:13:17 +0200 (Sun, 20 Apr 2008) | 7 lines
      
        Issue 2662: Initialize special value tables dynamically (i.e. when
        cmath module is loaded) instead of statically. This fixes compile-time
        problems on platforms where HUGE_VAL is an extern variable rather than
        a constant.
      
        Thanks Hirokazu Yamamoto for the patch.
      ........
        r62419 | andrew.kuchling | 2008-04-20 18:54:02 +0200 (Sun, 20 Apr 2008) | 1 line
      
        Move description of math module changes; various edits to description of cmath changes
      ........
      c4f30b63
  11. 19 Apr, 2008 6 commits
    • Georg Brandl's avatar
      Remove duplicated reduce() entry. · 0a7b8544
      Georg Brandl authored
      0a7b8544
    • Benjamin Peterson's avatar
      219ee7be
    • Benjamin Peterson's avatar
      Blocked revisions 62398 via svnmerge · 1be2eb29
      Benjamin Peterson authored
      ........
        r62398 | benjamin.peterson | 2008-04-19 14:34:05 -0500 (Sat, 19 Apr 2008) | 2 lines
      
        Copy io documentation back from py3k branch so changes can be merged into it.
      ........
      1be2eb29
    • Benjamin Peterson's avatar
      the io module was added in 2.6 (I know not really, but the end user isn't... · d6744fb5
      Benjamin Peterson authored
      the io module was added in 2.6 (I know not really, but the end user isn't going to care about backporting.)
      d6744fb5
    • Christian Heimes's avatar
      Merged revisions... · acbfa758
      Christian Heimes authored
      Merged revisions 62350-62355,62358-62359,62364-62365,62370,62372-62375,62378-62379,62381 via svnmerge from
      svn+ssh://pythondev@svn.python.org/python/trunk
      
      ........
        r62350 | nick.coghlan | 2008-04-15 12:25:31 +0200 (Tue, 15 Apr 2008) | 1 line
      
        Issue 2439: add pkgutils.get_data() as a convenience wrapper for the PEP 302 get_data() API (contributed by Paul Moore)
      ........
        r62351 | nick.coghlan | 2008-04-15 12:28:14 +0200 (Tue, 15 Apr 2008) | 1 line
      
        Add test file missing from rev 62350
      ........
        r62352 | benjamin.peterson | 2008-04-15 13:58:46 +0200 (Tue, 15 Apr 2008) | 2 lines
      
        Add myself to Doc/ACKS.txt
      ........
        r62353 | andrew.kuchling | 2008-04-15 15:10:07 +0200 (Tue, 15 Apr 2008) | 6 lines
      
        Add *,**,@ to index, as suggested by
        http://farmdev.com/thoughts/24/what-does-the-def-star-variable-or-def-asterisk-parameter-syntax-do-in-python-/
      
        The right entry type to use isn't clear; operator seems wrong, because *,**,@
        aren't being used in expressions here.  I put them as 'statement'; 'syntax'
        might be better.
      ........
        r62354 | andrew.kuchling | 2008-04-15 15:10:41 +0200 (Tue, 15 Apr 2008) | 1 line
      
        Typo fix
      ........
        r62355 | mark.dickinson | 2008-04-15 22:51:18 +0200 (Tue, 15 Apr 2008) | 3 lines
      
        Fix for possible signed overflow:  the behaviour of -LONG_MIN is
        undefined in ANSI C.
      ........
        r62358 | jeroen.ruigrok | 2008-04-16 14:47:01 +0200 (Wed, 16 Apr 2008) | 2 lines
      
        Reformat to 80 columns prior to adding documentation.
      ........
        r62359 | jeroen.ruigrok | 2008-04-16 14:57:43 +0200 (Wed, 16 Apr 2008) | 2 lines
      
        Add details about the return value for mmap.flush().
      ........
        r62364 | raymond.hettinger | 2008-04-17 12:48:31 +0200 (Thu, 17 Apr 2008) | 1 line
      
        Issue 2648: Add leading zero to money format recipe in the docs.
      ........
        r62365 | jeroen.ruigrok | 2008-04-17 14:39:45 +0200 (Thu, 17 Apr 2008) | 2 lines
      
        Be consistent in the use of read-only.
      ........
        r62370 | andrew.kuchling | 2008-04-17 22:44:06 +0200 (Thu, 17 Apr 2008) | 1 line
      
        Typo fixes
      ........
        r62372 | andrew.kuchling | 2008-04-18 04:40:47 +0200 (Fri, 18 Apr 2008) | 1 line
      
        Use correct parameter name
      ........
        r62373 | andrew.kuchling | 2008-04-18 18:53:09 +0200 (Fri, 18 Apr 2008) | 1 line
      
        #2654: fix typo
      ........
        r62374 | andrew.kuchling | 2008-04-18 20:28:23 +0200 (Fri, 18 Apr 2008) | 4 lines
      
        Remove personal note from Jim Roskind; it no longer applies, and the
        e-mail address is for a previous employer.
      
        Can we move the big long copyright statement into a sidebar or something?
      ........
        r62375 | andrew.kuchling | 2008-04-18 20:39:55 +0200 (Fri, 18 Apr 2008) | 1 line
      
        Rewrite introductory section, and remove old section.  (It was already commented-out, but why keep it?)
      ........
        r62378 | skip.montanaro | 2008-04-18 22:35:46 +0200 (Fri, 18 Apr 2008) | 1 line
      
        resolve issue 2014
      ........
        r62379 | benjamin.peterson | 2008-04-18 22:45:33 +0200 (Fri, 18 Apr 2008) | 2 lines
      
        Fix indentation in sysmodule.c
      ........
        r62381 | amaury.forgeotdarc | 2008-04-19 01:31:33 +0200 (Sat, 19 Apr 2008) | 3 lines
      
        Some tests did not pass on repeated calls (regrtest -R::)
        Perform additional cleanup, mostly deleting from sys.modules, or clearing the warnings registry.
      ........
      acbfa758
    • Christian Heimes's avatar
      Merged revisions 62380,62382-62383 via svnmerge from · 836e5e1b
      Christian Heimes authored
      svn+ssh://pythondev@svn.python.org/python/trunk
      
      ........
        r62380 | christian.heimes | 2008-04-19 01:13:07 +0200 (Sat, 19 Apr 2008) | 3 lines
      
        I finally got the time to update and merge Mark's and my trunk-math branch. The patch is collaborated work of Mark Dickinson and me. It was mostly done a few months ago. The patch fixes a lot of loose ends and edge cases related to operations with NaN, INF, very small values and complex math.
      
        The patch also adds acosh, asinh, atanh, log1p and copysign to all platforms. Finally it fixes differences between platforms like different results or exceptions for edge cases. Have fun :)
      ........
        r62382 | christian.heimes | 2008-04-19 01:40:40 +0200 (Sat, 19 Apr 2008) | 2 lines
      
        Added new files to Windows project files
        More Windows related fixes are coming soon
      ........
        r62383 | christian.heimes | 2008-04-19 01:49:11 +0200 (Sat, 19 Apr 2008) | 1 line
      
        Stupid me. Py_RETURN_NAN should actually return something ...
      ........
      836e5e1b
  12. 17 Apr, 2008 1 commit
  13. 15 Apr, 2008 2 commits
    • Mark Dickinson's avatar
      PyLong_FromSsize_t was incorrect when sizeof(size_t) > sizeof(long); · 9c86336d
      Mark Dickinson authored
      rewrite it so that it doesn't care about relative sizes of size_t,
      long and long long.
      
      The rewrite is modeled on PyLong_FromLong, instead of using
      PyLong_FromByteArray;  this makes the algorithm simpler and
      more direct, and possibly also slightly faster.
      9c86336d
    • Neal Norwitz's avatar
      Merged revisions... · 51015d57
      Neal Norwitz authored
      Merged revisions 61440-61441,61443,61445-61448,61451-61452,61455-61457,61459-61464,61466-61467,61469-61470,61476-61477,61479,61481-61482,61485,61487,61490,61493-61494,61497,61499-61502,61505-61506,61508,61511-61514,61519,61521-61522,61530-61531,61533-61537,61541-61555,61557-61558,61561-61562,61566-61569,61572-61574,61578-61579,61583-61584,61588-61589,61592,61594,61598-61601,61603-61604,61607-61612,61617,61619-61620,61624,61626,61628-61630,61635-61638,61640-61643,61645,61648,61653-61655,61659-61662,61664,61666,61668-61671,61673,61675,61679-61680,61682,61685-61686,61689-61695,61697-61699,61701-61703,61706,61710,61713,61717,61723,61726-61730,61736,61738,61740,61742,61745-61752,61754-61760,61762-61764,61768,61770-61772,61774-61775,61784-61787,61789-61792,61794-61795,61797-61806,61808-61809,61811-61812,61814-61819,61824,61826-61833,61835-61840,61843-61845,61848,61850,61854-61862,61865-61866,61868,61872-61873,61876-61877,61883-61888,61890-61891,61893-61899,61901-61903,61905-61912,61914,61917,61920-61921,61927,61930,61932-61934,61939,61941-61942,61944-61951,61955,61960-61963,61980,61982-61983,61991,61994-61996,62001-62003,62008-62010,62016-62017,62022,62024,62027,62031-62034,62041,62045-62046,62055-62058,62060-62066,62068-62074,62076-62079,62081-62083,62086-62089,62092-62094,62098,62101,62104,62106-62109,62115-62122,62124-62125,62128,62130,62132,62134-62135,62137,62139-62140,62144,62146,62151,62155,62157,62162-62166,62171-62172,62175-62176,62178,62181-62186,62188-62192,62196,62200-62203,62206,62211-62213,62215-62218,62222,62224-62226,62228,62232,62236,62240-62245,62248,62250-62254,62256-62258,62262,62264-62265,62267-62270,62272-62276,62280-62288,62291-62292,62299-62301,62307,62312,62316-62318,62322-62331,62333-62337,62339-62344,62346-62348 via svnmerge from
      svn+ssh://pythondev@svn.python.org/python/trunk
      
      ........
        r62323 | brett.cannon | 2008-04-13 10:09:43 -0700 (Sun, 13 Apr 2008) | 3 lines
      
        Add an explicit check for output in a test to try to diagnose a failure on
        Windows.
      ........
        r62324 | brett.cannon | 2008-04-13 10:41:31 -0700 (Sun, 13 Apr 2008) | 3 lines
      
        Fix spliting on colons on Windows machines with a file path by limiting the
        number of splits.
      ........
        r62329 | benjamin.peterson | 2008-04-13 13:35:56 -0700 (Sun, 13 Apr 2008) | 2 lines
      
        #2627 Let it be known what pgen generates
      ........
        r62330 | benjamin.peterson | 2008-04-13 13:40:03 -0700 (Sun, 13 Apr 2008) | 2 lines
      
        Added an ignore file for Bazaar #2510
      ........
        r62331 | georg.brandl | 2008-04-13 13:50:29 -0700 (Sun, 13 Apr 2008) | 2 lines
      
        Improve -X error message.
      ........
        r62334 | andrew.kuchling | 2008-04-13 15:39:12 -0700 (Sun, 13 Apr 2008) | 1 line
      
        Add example
      ........
        r62340 | amaury.forgeotdarc | 2008-04-14 12:55:40 -0700 (Mon, 14 Apr 2008) | 2 lines
      
        Update project files for all Windows supported compilers
      ........
        r62341 | amaury.forgeotdarc | 2008-04-14 13:07:48 -0700 (Mon, 14 Apr 2008) | 6 lines
      
        Correct a refleak found by "regrtest.py -R:: test_structmembers"
      
        Some other minor updates in _warnings.c:
        - make a function static
        - rename a shadowing local variable
      ........
        r62347 | andrew.kuchling | 2008-04-14 19:24:15 -0700 (Mon, 14 Apr 2008) | 1 line
      
        Various items; begin writing the SSL section
      ........
        r62348 | neal.norwitz | 2008-04-14 20:46:21 -0700 (Mon, 14 Apr 2008) | 1 line
      
        Prevent namespace pollution, add static for internal functions
      ........
      51015d57
  14. 14 Apr, 2008 4 commits