Commit graph

48682 commits

Author SHA1 Message Date
Mark Dickinson
055a3fbe3e Internal refactoring in struct.pack: make all integer conversions go through get_pylong. 2010-04-03 15:26:31 +00:00
Ezio Melotti
4ca2bd2aa3 Blocked revisions 79600 via svnmerge
................
  r79600 | ezio.melotti | 2010-04-02 16:56:40 +0300 (Fri, 02 Apr 2010) | 15 lines

  Merged revisions 79540-79541 via svnmerge from
  svn+ssh://pythondev@svn.python.org/python/trunk

  Add -Wd to the flags used to run the tests (-3 is not necessary here).

  ........
    r79540 | ezio.melotti | 2010-04-01 01:18:09 +0300 (Thu, 01 Apr 2010) | 1 line

    Add -Wd and -3 to the flags used to run the tests.
  ........
    r79541 | ezio.melotti | 2010-04-01 01:43:31 +0300 (Thu, 01 Apr 2010) | 1 line

    Add -Wd and -3 to the flags used to run the tests on Windows.
  ........
................
2010-04-03 15:24:05 +00:00
Mark Dickinson
0bb191831b Blocked revisions 79683 via svnmerge
........
  r79683 | mark.dickinson | 2010-04-03 16:07:40 +0100 (Sat, 03 Apr 2010) | 1 line

  Clean up integer tests in test_struct, and bring them more in line with the trunk tests.
........
2010-04-03 15:08:07 +00:00
Mark Dickinson
b9f751ad91 Clean up integer tests in test_struct, and bring them more in line with the trunk tests. 2010-04-03 15:07:40 +00:00
Ezio Melotti
2e95857111 Blocked revisions 79681 via svnmerge
................
  r79681 | ezio.melotti | 2010-04-03 17:59:49 +0300 (Sat, 03 Apr 2010) | 9 lines

  Merged revisions 79678 via svnmerge from
  svn+ssh://pythondev@svn.python.org/python/trunk

  ........
    r79678 | ezio.melotti | 2010-04-03 17:51:00 +0300 (Sat, 03 Apr 2010) | 1 line

    Use more specific assert* methods in test_decimal.
  ........
................
2010-04-03 15:01:46 +00:00
Ezio Melotti
6607d51160 Merged revisions 79678 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r79678 | ezio.melotti | 2010-04-03 17:51:00 +0300 (Sat, 03 Apr 2010) | 1 line

  Use more specific assert* methods in test_decimal.
........
2010-04-03 14:59:49 +00:00
Mark Dickinson
b32b301bda Blocked revisions 79676 via svnmerge
........
  r79676 | mark.dickinson | 2010-04-03 15:24:58 +0100 (Sat, 03 Apr 2010) | 1 line

  Remove unused define.
........
2010-04-03 14:25:25 +00:00
Mark Dickinson
77e2b67971 Remove unused define. 2010-04-03 14:24:58 +00:00
Mark Dickinson
62dfc8b3fa Blocked revisions 79670 via svnmerge
................
  r79670 | mark.dickinson | 2010-04-03 12:18:52 +0100 (Sat, 03 Apr 2010) | 9 lines

  Merged revisions 79629 via svnmerge from
  svn+ssh://pythondev@svn.python.org/python/trunk

  ........
    r79629 | mark.dickinson | 2010-04-02 23:27:36 +0100 (Fri, 02 Apr 2010) | 2 lines

    Issue #8294:  Allow float and Decimal arguments in Fraction constructor.
  ........
................
2010-04-03 11:19:18 +00:00
Mark Dickinson
98127c3716 Merged revisions 79629 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r79629 | mark.dickinson | 2010-04-02 23:27:36 +0100 (Fri, 02 Apr 2010) | 2 lines

  Issue #8294:  Allow float and Decimal arguments in Fraction constructor.
........
2010-04-03 11:18:52 +00:00
Mark Dickinson
aa80e47fdc Blocked revisions 79668 via svnmerge
................
  r79668 | mark.dickinson | 2010-04-03 12:08:14 +0100 (Sat, 03 Apr 2010) | 26 lines

  Merged revisions 79583,79588-79589 via svnmerge from
  svn+ssh://pythondev@svn.python.org/python/trunk

  ........
    r79583 | mark.dickinson | 2010-04-02 09:53:22 +0100 (Fri, 02 Apr 2010) | 7 lines

    Issue #2531: Make float-to-decimal comparisons return correct results.

    Float to decimal comparison operations now return a result based on
    the numeric values of the operands.  Decimal.__hash__ has also been
    fixed so that Decimal and float values that compare equal have equal
    hash value.
  ........
    r79588 | mark.dickinson | 2010-04-02 11:17:07 +0100 (Fri, 02 Apr 2010) | 2 lines

    Issue #7279:  Make comparisons involving a Decimal sNaN signal InvalidOperation.
  ........
    r79589 | mark.dickinson | 2010-04-02 11:35:12 +0100 (Fri, 02 Apr 2010) | 6 lines

    Issue #7279:  Make Decimal('nan') hashable.  Decimal('snan') remains unhashable.

    Also rewrite the Decimal __hash__ method so that it doesn't rely on
    float('inf') being valid: float('inf') could raise an exception on
    platforms not using IEEE 754 arithmetic.
  ........
................
2010-04-03 11:08:48 +00:00
Mark Dickinson
ac256ab284 Merged revisions 79583,79588-79589 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r79583 | mark.dickinson | 2010-04-02 09:53:22 +0100 (Fri, 02 Apr 2010) | 7 lines

  Issue #2531: Make float-to-decimal comparisons return correct results.

  Float to decimal comparison operations now return a result based on
  the numeric values of the operands.  Decimal.__hash__ has also been
  fixed so that Decimal and float values that compare equal have equal
  hash value.
........
  r79588 | mark.dickinson | 2010-04-02 11:17:07 +0100 (Fri, 02 Apr 2010) | 2 lines

  Issue #7279:  Make comparisons involving a Decimal sNaN signal InvalidOperation.
........
  r79589 | mark.dickinson | 2010-04-02 11:35:12 +0100 (Fri, 02 Apr 2010) | 6 lines

  Issue #7279:  Make Decimal('nan') hashable.  Decimal('snan') remains unhashable.

  Also rewrite the Decimal __hash__ method so that it doesn't rely on
  float('inf') being valid: float('inf') could raise an exception on
  platforms not using IEEE 754 arithmetic.
........
2010-04-03 11:08:14 +00:00
Mark Dickinson
f53b1e2f77 Merged revisions 79665 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

................
  r79665 | mark.dickinson | 2010-04-03 11:49:56 +0100 (Sat, 03 Apr 2010) | 20 lines

  Merged revisions 79661 via svnmerge from
  svn+ssh://pythondev@svn.python.org/python/trunk

  ........
    r79661 | mark.dickinson | 2010-04-03 11:27:05 +0100 (Sat, 03 Apr 2010) | 14 lines

    Fix a couple of issues with the test_structmembersType class in _testcapimodule

     - rename to _test_structmembersType to avoid the class being automatically
       called by test_capi

     - allow space for trailing NUL in inplace_member field of all_structmembers

     - use T_STRING_INPLACE instead of T_INPLACE_STRING as keyword argument
       to _test_structmembersType initializer

     - don't attempt to initialize inplace_member field if T_STRING_INPLACE
       argument wasn't supplied.
  ........
................
2010-04-03 10:59:11 +00:00
Mark Dickinson
5fc16b469e Merged revisions 79661 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r79661 | mark.dickinson | 2010-04-03 11:27:05 +0100 (Sat, 03 Apr 2010) | 14 lines

  Fix a couple of issues with the test_structmembersType class in _testcapimodule

   - rename to _test_structmembersType to avoid the class being automatically
     called by test_capi

   - allow space for trailing NUL in inplace_member field of all_structmembers

   - use T_STRING_INPLACE instead of T_INPLACE_STRING as keyword argument
     to _test_structmembersType initializer

   - don't attempt to initialize inplace_member field if T_STRING_INPLACE
     argument wasn't supplied.
........
2010-04-03 10:49:56 +00:00
Raymond Hettinger
9c01e441bb Add a subtract() method to collections.Counter() 2010-04-03 10:32:58 +00:00
Tarek Ziadé
8e16b7e46f Blocked revisions 79657 via svnmerge
................
  r79657 | tarek.ziade | 2010-04-03 10:46:49 +0200 (Sat, 03 Apr 2010) | 9 lines

  Merged revisions 79652 via svnmerge from
  svn+ssh://pythondev@svn.python.org/python/trunk

  ........
    r79652 | tarek.ziade | 2010-04-03 10:37:59 +0200 (Sat, 03 Apr 2010) | 1 line

    Issue #1222585: Added LDCXXSHARED for C++ support
  ........
................
2010-04-03 08:48:27 +00:00
Tarek Ziadé
135c1a4940 Blocked revisions 79621 via svnmerge
................
  r79621 | tarek.ziade | 2010-04-02 23:24:55 +0200 (Fri, 02 Apr 2010) | 9 lines

  Merged revisions 79618 via svnmerge from
  svn+ssh://pythondev@svn.python.org/python/trunk

  ........
    r79618 | tarek.ziade | 2010-04-02 23:14:04 +0200 (Fri, 02 Apr 2010) | 1 line

    removed the local copy of xxmodule, and skip only test_build_ext when xxmodule is not found, not the whole unittest
  ........
................
2010-04-03 08:48:00 +00:00
Tarek Ziadé
03d788dc4d Merged revisions 79652 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r79652 | tarek.ziade | 2010-04-03 10:37:59 +0200 (Sat, 03 Apr 2010) | 1 line

  Issue #1222585: Added LDCXXSHARED for C++ support
........
2010-04-03 08:46:49 +00:00
Victor Stinner
1826c48d94 Blocked revisions 79654 via svnmerge
........
  r79654 | victor.stinner | 2010-04-03 10:40:16 +0200 (sam., 03 avril 2010) | 5 lines

  Issue #8227: Fix C API documentation, argument parsing

   * 'z', 'z#', 'z*' does also accept Unicode
   * unify types name: replace "string or Unicode objet" by "string or Unicode"
........
2010-04-03 08:43:28 +00:00
Benjamin Peterson
bde0c9db80 Merged revisions 79645 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

................
  r79645 | benjamin.peterson | 2010-04-02 20:40:24 -0500 (Fri, 02 Apr 2010) | 13 lines

  Merged revisions 79642,79644 via svnmerge from
  svn+ssh://pythondev@svn.python.org/python/trunk

  ........
    r79642 | benjamin.peterson | 2010-04-02 20:08:34 -0500 (Fri, 02 Apr 2010) | 1 line

    split out large test function
  ........
    r79644 | benjamin.peterson | 2010-04-02 20:28:57 -0500 (Fri, 02 Apr 2010) | 1 line

    give TypeError when trying to set T_STRING_INPLACE
  ........
................
2010-04-03 01:46:38 +00:00
Benjamin Peterson
80d8fd85a9 Merged revisions 79642,79644 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r79642 | benjamin.peterson | 2010-04-02 20:08:34 -0500 (Fri, 02 Apr 2010) | 1 line

  split out large test function
........
  r79644 | benjamin.peterson | 2010-04-02 20:28:57 -0500 (Fri, 02 Apr 2010) | 1 line

  give TypeError when trying to set T_STRING_INPLACE
........
2010-04-03 01:40:24 +00:00
Benjamin Peterson
a811c16a26 Blocked revisions 79636,79639 via svnmerge
........
  r79636 | benjamin.peterson | 2010-04-02 18:59:41 -0500 (Fri, 02 Apr 2010) | 4 lines

  always check _PyString_Resize for error

  also normalize how this error is checked
........
  r79639 | benjamin.peterson | 2010-04-02 19:57:33 -0500 (Fri, 02 Apr 2010) | 1 line

  more _PyString_Resize error checking
........
2010-04-03 01:02:00 +00:00
Florent Xicluna
05609eff8a Merged revision 79605 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r79605 | antoine.pitrou | 2010-04-02 19:12:12 +0200 (ven, 02 avr 2010) | 3 lines

  Furniture is not very reliable these days (buildbot failures).
........
2010-04-03 00:45:27 +00:00
Brian Curtin
48953cd335 Change test_support to support. Fixes a failing test on Windows. 2010-04-02 22:38:52 +00:00
Ezio Melotti
71fb7ca282 Blocked revisions 79582 via svnmerge
........
  r79582 | georg.brandl | 2010-04-02 11:51:31 +0300 (Fri, 02 Apr 2010) | 1 line

  Fix typo in unicode character name.
........
2010-04-02 22:15:23 +00:00
Tarek Ziadé
d35a2427a1 Merged revisions 79618 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r79618 | tarek.ziade | 2010-04-02 23:14:04 +0200 (Fri, 02 Apr 2010) | 1 line

  removed the local copy of xxmodule, and skip only test_build_ext when xxmodule is not found, not the whole unittest
........
2010-04-02 21:24:55 +00:00
Georg Brandl
cb445ef9ca #8288: fix next -> __next__. 2010-04-02 20:12:42 +00:00
Florent Xicluna
dc6f2d02d9 An oversight in previous merge, r79610: test_doctest is sensible to the line numbering. 2010-04-02 19:25:32 +00:00
Raymond Hettinger
7b0d3c6d4b Add nice docstrings to namedtuples. 2010-04-02 18:54:02 +00:00
Florent Xicluna
41fe615539 (partially)
Merged revisions 79534,79537,79539,79558,79606 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r79534 | florent.xicluna | 2010-03-31 23:21:54 +0200 (mer, 31 mar 2010) | 2 lines

  Fix test for xml.etree when using a non-ascii path.  And use check_warnings instead of catch_warnings.
........
  r79537 | florent.xicluna | 2010-03-31 23:40:32 +0200 (mer, 31 mar 2010) | 2 lines

  Fix typo
........
  r79539 | florent.xicluna | 2010-04-01 00:01:03 +0200 (jeu, 01 avr 2010) | 2 lines

  Replace catch_warnings with check_warnings when it makes sense.  Use assertRaises context manager to simplify some tests.
........
  r79558 | florent.xicluna | 2010-04-01 20:17:09 +0200 (jeu, 01 avr 2010) | 2 lines

  #7092: Fix some -3 warnings, and fix Lib/platform.py when the path contains a double-quote.
........
  r79606 | florent.xicluna | 2010-04-02 19:26:42 +0200 (ven, 02 avr 2010) | 2 lines

  Backport some robotparser test and skip the test if the external resource is not available.
........
2010-04-02 18:52:12 +00:00
Antoine Pitrou
1bfd0cc5d4 Furniture is not very reliable these days (buildbot failures). 2010-04-02 17:12:12 +00:00
Andrew M. Kuchling
0a62823d81 Merged revisions 79603 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r79603 | andrew.kuchling | 2010-04-02 12:59:16 -0400 (Fri, 02 Apr 2010) | 1 line

  #4440: modernize a use of filter(), making it compatible with 3.x
........
2010-04-02 17:02:57 +00:00
Raymond Hettinger
9679859890 Issue 8257: Decimal constructor to accept float argument. 2010-04-02 16:58:27 +00:00
Ezio Melotti
63b4355c75 Merged revisions 79540-79541 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

Add -Wd to the flags used to run the tests (-3 is not necessary here).

........
  r79540 | ezio.melotti | 2010-04-01 01:18:09 +0300 (Thu, 01 Apr 2010) | 1 line

  Add -Wd and -3 to the flags used to run the tests.
........
  r79541 | ezio.melotti | 2010-04-01 01:43:31 +0300 (Thu, 01 Apr 2010) | 1 line

  Add -Wd and -3 to the flags used to run the tests on Windows.
........
2010-04-02 13:56:40 +00:00
Larry Hastings
f0f3795068 - Issue #8235: _socket: Add the constant `SO_SETFIB`. SO_SETFIB is
a socket option available on FreeBSD 7.1 and newer.
2010-04-02 11:47:10 +00:00
Larry Hastings
b5c2e6a33e Blocked revisions 79592 via svnmerge
........
  r79592 | larry.hastings | 2010-04-02 04:18:17 -0700 (Fri, 02 Apr 2010) | 3 lines

  Issue #8235: _socket: Add the constant ``SO_SETFIB``.  SO_SETFIB is
  a socket option available on FreeBSD 7.1 and newer.
........
2010-04-02 11:20:07 +00:00
Larry Hastings
d6f57f19c2 Blocked revisions 79590 via svnmerge
........
  r79590 | larry.hastings | 2010-04-02 04:01:35 -0700 (Fri, 02 Apr 2010) | 10 lines

  Capsule-related changes:
  * PyCObject_AsVoidPtr() can now open capsules.  This addresses
    most of the remaining backwards-compatibility concerns about
    the conversion of Python 2.7 from CObjects to capsules.
  * CObjects were marked Pending Deprecation.
  * Documentation about this pending deprecation was added to
    cobject.h.
  * The capsule source files were added to the legacy PC build
    processes.
........
2010-04-02 11:03:37 +00:00
Georg Brandl
379299cecc #8213: document behavior of -u on py3k better. 2010-04-02 08:47:07 +00:00
Raymond Hettinger
0f3ec6dd62 Fix nits in itertools recipes. 2010-04-02 04:50:35 +00:00
Raymond Hettinger
aeac26b9ea Fix nits in itertools recipes. 2010-04-02 04:49:24 +00:00
Raymond Hettinger
063a4b6880 Add and update itertools recipes. 2010-04-02 04:18:18 +00:00
Raymond Hettinger
601423585f Add and update itertools recipes. 2010-04-02 04:16:13 +00:00
Raymond Hettinger
46fca0773d Document sorting HowTo 2010-04-02 00:25:45 +00:00
Raymond Hettinger
bdfa22bbda Document sorting HowTo 2010-04-02 00:23:40 +00:00
Antoine Pitrou
8689a10f07 Merged revisions 79555 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r79555 | antoine.pitrou | 2010-04-01 18:42:11 +0200 (jeu., 01 avril 2010) | 5 lines

  Issue #8276: PyEval_CallObject() is now only available in macro form.  The
  function declaration, which was kept for backwards compatibility reasons,
  is now removed (the macro was introduced in 1997!).
........
2010-04-01 16:53:15 +00:00
Stefan Krah
721a35001e Merged revisions 79553 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r79553 | stefan.krah | 2010-04-01 12:34:09 +0200 (Thu, 01 Apr 2010) | 1 line

  Fix typo in definition of 'in' keyword.
........
2010-04-01 10:56:52 +00:00
Stefan Krah
c8bdc01d82 Fix typo in definition of 'in' keyword. 2010-04-01 10:34:09 +00:00
Brian Curtin
1f03f6e691 Merged revisions 79545 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

................
  r79545 | brian.curtin | 2010-03-31 23:05:25 -0500 (Wed, 31 Mar 2010) | 9 lines

  Merged revisions 79543 via svnmerge from
  svn+ssh://pythondev@svn.python.org/python/trunk

  ........
    r79543 | brian.curtin | 2010-03-31 23:02:00 -0500 (Wed, 31 Mar 2010) | 2 lines

    Fix a test_pydoc failure on Neal Norwitz's buildbot.
  ........
................
2010-04-01 04:06:54 +00:00
Brian Curtin
edef05b0a3 Merged revisions 79543 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r79543 | brian.curtin | 2010-03-31 23:02:00 -0500 (Wed, 31 Mar 2010) | 2 lines

  Fix a test_pydoc failure on Neal Norwitz's buildbot.
........
2010-04-01 04:05:25 +00:00
Antoine Pitrou
3af01a1579 NOTE: only ported the test for new-style classes.
Merged revisions 79535 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r79535 | antoine.pitrou | 2010-03-31 23:32:15 +0200 (mer., 31 mars 2010) | 5 lines

  Issue #8268: Old-style classes (not just instances) now support weak
  references.
........
2010-03-31 21:40:47 +00:00