Commit Graph

40026 Commits

Author SHA1 Message Date
Mark Dickinson 4c090a92ee Blocked revisions 76741 via svnmerge
................
  r76741 | mark.dickinson | 2009-12-10 10:39:08 +0000 (Thu, 10 Dec 2009) | 14 lines

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

  ........
    r76740 | mark.dickinson | 2009-12-10 10:36:32 +0000 (Thu, 10 Dec 2009) | 8 lines

    Replace the size check for PyMem_MALLOC and PyMem_REALLOC with an almost
    equivalent[*] check that doesn't produce compiler warnings about a 'x < 0'
    check on an unsigned type.

    [*] it's equivalent for inputs of type size_t or Py_ssize_t, or any smaller
    unsigned or signed integer type.
  ........
................
2009-12-10 10:40:16 +00:00
Raymond Hettinger 64eaa20c68 Fix variants of deque.extend: d.extend(d) d+=d d.extendleft(d) 2009-12-10 05:36:11 +00:00
Antoine Pitrou 53b44f75c1 Merged revisions 76723 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r76723 | antoine.pitrou | 2009-12-09 01:01:27 +0100 (mer., 09 déc. 2009) | 3 lines

  Issue #7461: objects returned by os.popen() should support the context manager protocol
........
2009-12-09 00:03:16 +00:00
Ronald Oussoren 2cfd61a12a Merged revisions 76713 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

................
  r76713 | ronald.oussoren | 2009-12-08 17:35:28 +0100 (Tue, 08 Dec 2009) | 11 lines

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

  ........
    r76712 | ronald.oussoren | 2009-12-08 17:32:52 +0100 (Tue, 08 Dec 2009) | 4 lines

    Fix for issue 7452: HAVE_GCC_ASM_FOR_X87 gets set when doing a universal build on
    an i386 based machine, but should only be active when compiling the x86 part of
    the universal binary.
  ........
................
2009-12-08 16:36:47 +00:00
Antoine Pitrou 4fad6bdde9 Merged revisions 76710 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

................
  r76710 | antoine.pitrou | 2009-12-08 16:57:31 +0100 (mar., 08 déc. 2009) | 10 lines

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

  ........
    r76708 | antoine.pitrou | 2009-12-08 16:40:51 +0100 (mar., 08 déc. 2009) | 4 lines

    Issue #6986: Fix crash in the JSON C accelerator when called with the
    wrong parameter types.  Patch by Victor Stinner.
  ........
................
2009-12-08 16:00:03 +00:00
Tarek Ziadé 60a32c8c0b Blocked revisions 76706 via svnmerge
................
  r76706 | tarek.ziade | 2009-12-08 10:45:25 +0100 (Tue, 08 Dec 2009) | 13 lines

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

  ........
    r76702 | tarek.ziade | 2009-12-08 09:56:49 +0100 (Tue, 08 Dec 2009) | 1 line

    Issue #7457: added a read_pkg_file method to distutils.dist.DistributionMetadata so we can read back PKG-INFO files
  ........
    r76704 | tarek.ziade | 2009-12-08 10:39:51 +0100 (Tue, 08 Dec 2009) | 1 line

    removed the usage of rfc822 in favor of email.message.Message
  ........
................
2009-12-08 10:03:09 +00:00
Mark Dickinson f0d3aa1ba1 Blocked revisions 76698 via svnmerge
........
  r76698 | mark.dickinson | 2009-12-07 19:34:59 +0000 (Mon, 07 Dec 2009) | 1 line

  Fix error message, for consistency with messages for % and //, and for consistency with trunk
........
2009-12-07 19:35:31 +00:00
Tarek Ziadé d26d538373 Merged revisions 76686 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

................
  r76686 | tarek.ziade | 2009-12-06 10:28:17 +0100 (Sun, 06 Dec 2009) | 9 lines

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

  ........
    r76684 | tarek.ziade | 2009-12-06 10:22:40 +0100 (Sun, 06 Dec 2009) | 1 line

    Fixed #1923: make sure we don't strip meaningful whitespace in PKG-INFO Description field
  ........
................
2009-12-06 09:30:47 +00:00
Mark Dickinson 884924a2fd Issue #7435: Remove reference to long in docstring. Thanks flox. 2009-12-05 20:32:49 +00:00
Mark Dickinson 78a80e8ee3 Blocked revisions 76681 via svnmerge
........
  r76681 | mark.dickinson | 2009-12-05 20:28:34 +0000 (Sat, 05 Dec 2009) | 4 lines

  Issue #7435:  Remove duplicate int/long tests, and other
  references to long in py3k.  Patch provided by flox.
........
2009-12-05 20:31:25 +00:00
Mark Dickinson c0306bcd0d Blocked revisions 76670 via svnmerge
................
  r76670 | mark.dickinson | 2009-12-04 11:32:26 +0000 (Fri, 04 Dec 2009) | 9 lines

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

  ........
    r76668 | mark.dickinson | 2009-12-04 11:30:16 +0000 (Fri, 04 Dec 2009) | 1 line

    Add missing issue number in Misc/NEWS entry.
  ........
................
2009-12-04 11:32:54 +00:00
Mark Dickinson adef1ba534 Merged revisions 76663 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r76663 | mark.dickinson | 2009-12-04 10:06:06 +0000 (Fri, 04 Dec 2009) | 1 line

  Issue #7430: Remove lingering reference to cmp in recursion error message.
........
2009-12-04 10:07:01 +00:00
R. David Murray 8054a5d36e Merged revisions 76661 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

................
  r76661 | r.david.murray | 2009-12-03 19:09:14 -0500 (Thu, 03 Dec 2009) | 11 lines

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

  ........
    r76659 | r.david.murray | 2009-12-03 18:57:59 -0500 (Thu, 03 Dec 2009) | 4 lines

    Issue 7431: use TESTFN in test_linecache instead of trying to create a
    file in the Lib/test directory, which might be read-only for the
    user running the tests.
  ........
................
2009-12-04 00:13:33 +00:00
Martin v. Löwis 8ab31014bf Merged revisions 76653 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

................
  r76653 | martin.v.loewis | 2009-12-03 21:57:49 +0100 (Do, 03 Dez 2009) | 10 lines

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

  ........
    r76651 | martin.v.loewis | 2009-12-03 21:53:51 +0100 (Do, 03 Dez 2009) | 3 lines

    Issue #4120: Drop reference to CRT from manifest when building
    extensions with msvc9compiler.
  ........
................
2009-12-03 21:14:10 +00:00
Martin v. Löwis 31105ab4fb Restore tag. 2009-12-03 21:11:40 +00:00
Martin v. Löwis b84b892c58 Merged revisions 76653 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

................
  r76653 | martin.v.loewis | 2009-12-03 21:57:49 +0100 (Do, 03 Dez 2009) | 10 lines

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

  ........
    r76651 | martin.v.loewis | 2009-12-03 21:53:51 +0100 (Do, 03 Dez 2009) | 3 lines

    Issue #4120: Drop reference to CRT from manifest when building
    extensions with msvc9compiler.
  ........
................
2009-12-03 20:59:57 +00:00
Mark Dickinson d0ed0db574 Merged revisions 76646 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r76646 | mark.dickinson | 2009-12-03 10:59:46 +0000 (Thu, 03 Dec 2009) | 6 lines

  Issue #7414: Add missing 'case 'C'' to skipitem() in getargs.c.  This
  was causing PyArg_ParseTupleAndKeywords(args, kwargs, "|CC", ...) to
  fail with a RuntimeError.  Thanks Case Van Horsen for tracking down
  the source of this error.
........
2009-12-03 11:01:53 +00:00
Eric Smith a9566d02a2 Blocked revisions 76634 via svnmerge
................
  r76634 | eric.smith | 2009-12-02 12:58:24 -0500 (Wed, 02 Dec 2009) | 9 lines

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

  ........
    r76632 | eric.smith | 2009-12-02 12:43:06 -0500 (Wed, 02 Dec 2009) | 1 line

    Issue #4482: Add tests for special float value formatting.
  ........
................
2009-12-02 17:59:45 +00:00
Amaury Forgeot d'Arc ea315ac8f4 Merged revisions 76626 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

................
  r76626 | amaury.forgeotdarc | 2009-12-01 22:59:18 +0100 (mar., 01 déc. 2009) | 10 lines

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

  ........
    r76625 | amaury.forgeotdarc | 2009-12-01 22:51:04 +0100 (mar., 01 déc. 2009) | 3 lines

    #7419: Fix a crash on Windows in locale.setlocale() when the category
    is outside the allowed range.
  ........
................
2009-12-01 22:03:44 +00:00
Raymond Hettinger 6c8ee7a333 Issue #7410: deepcopy of itertools.count was resetting the count. 2009-11-30 21:55:17 +00:00
Eric Smith 9aeb9df7da Blocked revisions 76595 via svnmerge
........
  r76595 | eric.smith | 2009-11-29 20:01:42 -0500 (Sun, 29 Nov 2009) | 1 line

  Issue #5748: bytesobject.c should not have its own private defines for stringlib macros. Also removed used defines and include for localutil.h.
........
2009-11-30 01:03:20 +00:00
Amaury Forgeot d'Arc 36dfe78456 Merged revisions 76593 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r76593 | amaury.forgeotdarc | 2009-11-30 01:08:56 +0100 (lun., 30 nov. 2009) | 5 lines

  #6077: on Windows, fix truncation of a tempfile.TemporaryFile opened in "wt+" mode:
  files opened with os.open() stop on the first \x1a (Ctrl-Z) unless os.O_BINARY is used.

  Will backport to 3.1
........
2009-11-30 00:16:44 +00:00
Tarek Ziadé ac4a07c714 Blocked revisions 76590 via svnmerge
................
  r76590 | tarek.ziade | 2009-11-29 23:24:57 +0100 (Sun, 29 Nov 2009) | 9 lines

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

  ........
    r76588 | tarek.ziade | 2009-11-29 23:20:30 +0100 (Sun, 29 Nov 2009) | 1 line

    Fixed #7408: dropped group ownership checking because it relies on os-specific rules
  ........
................
2009-11-29 22:30:27 +00:00
Eric Smith 2724db6842 Blocked revisions 76586 via svnmerge
........
  r76586 | eric.smith | 2009-11-29 12:56:54 -0500 (Sun, 29 Nov 2009) | 1 line

  Keep this file in sync with trunk.
........
2009-11-29 17:57:23 +00:00
Mark Dickinson 192ce61941 Merged revisions 76577 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

................
  r76577 | mark.dickinson | 2009-11-28 16:38:16 +0000 (Sat, 28 Nov 2009) | 12 lines

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

  ........
    r76575 | mark.dickinson | 2009-11-28 16:32:27 +0000 (Sat, 28 Nov 2009) | 5 lines

    Issue #1678380: When distinguishing between -0.0 and 0.0 in
    compiler_add_o, use copysign instead of examining the first and last
    bytes of the double.  The latter method fails for little-endian
    ARM, OABI, where doubles are little-endian but with the words swapped.
  ........
................
2009-11-28 16:39:12 +00:00
Antoine Pitrou bcc63a86a9 Merged revisions 76573 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r76573 | antoine.pitrou | 2009-11-28 17:12:28 +0100 (sam., 28 nov. 2009) | 3 lines

  Issue #4486: When an exception has an explicit cause, do not print its implicit context too.
........
2009-11-28 16:16:09 +00:00
Mark Dickinson 875ada4b0f Merged revisions 76566 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

................
  r76566 | mark.dickinson | 2009-11-28 12:48:43 +0000 (Sat, 28 Nov 2009) | 18 lines

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

  ........
    r76432 | mark.dickinson | 2009-11-20 19:30:22 +0000 (Fri, 20 Nov 2009) | 5 lines

    Issue #7272:  Add configure test to detect whether sem_open works
    properly, and use this to skip test_multiprocessing on platforms
    where sem_open raises a signal.  This should fix some FreeBSD buildbot
    failures for test_multiprocessing.
  ........
    r76558 | mark.dickinson | 2009-11-28 10:44:20 +0000 (Sat, 28 Nov 2009) | 4 lines

    Issue #7272, continued:  don't re-use existing HAVE_BROKEN_POSIX_SEMAPHORES
    to indicate that semaphores aren't available;  define a new variable
    POSIX_SEMAPHORES_NOT_ENABLED instead.
  ........
................
2009-11-28 12:52:39 +00:00
Mark Dickinson 7f40573ccb Blocked revisions 76563 via svnmerge
................
  r76563 | mark.dickinson | 2009-11-28 12:35:42 +0000 (Sat, 28 Nov 2009) | 12 lines

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

  ........
    r76561 | mark.dickinson | 2009-11-28 12:30:36 +0000 (Sat, 28 Nov 2009) | 5 lines

    Include ieeefp.h (when available) in pyport.h instead of individually in
    Objects/floatobject.c and Objects/complexobject.c.  This should silence
    compiler warnings about implicit declaration of the 'finite' function
    on Solaris.
  ........
................
2009-11-28 12:37:41 +00:00
Barry Warsaw 47f383d0c0 Add mktime_tz to __all__. It's documented as being available in email.utils. 2009-11-25 18:45:04 +00:00
Benjamin Peterson 39778f6b6f Merged revisions 76518 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

................
  r76518 | benjamin.peterson | 2009-11-25 12:34:42 -0600 (Wed, 25 Nov 2009) | 60 lines

  Merged revisions 76259,76326,76376-76377,76430,76471,76517 via svnmerge from
  svn+ssh://pythondev@svn.python.org/python/trunk

  ................
    r76259 | georg.brandl | 2009-11-14 05:50:51 -0600 (Sat, 14 Nov 2009) | 1 line

    Fix terminology.
  ................
    r76326 | georg.brandl | 2009-11-16 10:44:05 -0600 (Mon, 16 Nov 2009) | 1 line

    #7302: fix link.
  ................
    r76376 | georg.brandl | 2009-11-18 13:39:14 -0600 (Wed, 18 Nov 2009) | 1 line

    upcase Python
  ................
    r76377 | georg.brandl | 2009-11-18 14:05:15 -0600 (Wed, 18 Nov 2009) | 1 line

    Fix markup.
  ................
    r76430 | r.david.murray | 2009-11-20 07:29:43 -0600 (Fri, 20 Nov 2009) | 2 lines

    Issue 7363: fix indentation in socketserver udpserver example.
  ................
    r76471 | georg.brandl | 2009-11-23 13:53:19 -0600 (Mon, 23 Nov 2009) | 1 line

    #7345: fix arguments of formatyear().
  ................
    r76517 | benjamin.peterson | 2009-11-25 12:16:46 -0600 (Wed, 25 Nov 2009) | 29 lines

    Merged revisions 76160-76161,76250,76252,76447,76506 via svnmerge from
    svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3

    ........
      r76160 | benjamin.peterson | 2009-11-08 18:53:48 -0600 (Sun, 08 Nov 2009) | 1 line

      undeprecate the -p option; it's useful for converting python3 sources
    ........
      r76161 | benjamin.peterson | 2009-11-08 19:05:37 -0600 (Sun, 08 Nov 2009) | 1 line

      simplify condition
    ........
      r76250 | benjamin.peterson | 2009-11-13 16:56:48 -0600 (Fri, 13 Nov 2009) | 1 line

      fix handling of a utf-8 bom #7313
    ........
      r76252 | benjamin.peterson | 2009-11-13 16:58:36 -0600 (Fri, 13 Nov 2009) | 1 line

      remove pdb turd
    ........
      r76447 | benjamin.peterson | 2009-11-22 18:17:40 -0600 (Sun, 22 Nov 2009) | 1 line

      #7375 fix nested transformations in fix_urllib
    ........
      r76506 | benjamin.peterson | 2009-11-24 18:34:31 -0600 (Tue, 24 Nov 2009) | 1 line

      use generator expressions in any()
    ........
  ................
................
2009-11-25 18:37:12 +00:00
Mark Dickinson 2d201f3954 Blocked revisions 76503 via svnmerge
................
  r76503 | mark.dickinson | 2009-11-24 20:54:11 +0000 (Tue, 24 Nov 2009) | 10 lines

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

  ........
    r76502 | mark.dickinson | 2009-11-24 20:51:48 +0000 (Tue, 24 Nov 2009) | 3 lines

    Issue #7228:  Fix format mismatch when printing something of type off_t.
    (Should silence some compiler warnings.)
  ........
................
2009-11-24 20:56:11 +00:00
Mark Dickinson 53f143c02d Merged revisions 76491 via svnmerge from
svn+ssh://pythondev@www.python.org/python/branches/py3k

................
  r76491 | mark.dickinson | 2009-11-24 14:33:29 +0000 (Tue, 24 Nov 2009) | 9 lines

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

  ........
    r76489 | mark.dickinson | 2009-11-24 14:27:02 +0000 (Tue, 24 Nov 2009) | 1 line

    Fix some documentation examples involving the repr of a float.
  ........
................
2009-11-24 14:36:23 +00:00
Mark Dickinson 46d15676c3 Unblocked revisions 76491 via svnmerge
................
  r76491 | mark.dickinson | 2009-11-24 14:33:29 +0000 (Tue, 24 Nov 2009) | 9 lines

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

  ........
    r76489 | mark.dickinson | 2009-11-24 14:27:02 +0000 (Tue, 24 Nov 2009) | 1 line

    Fix some documentation examples involving the repr of a float.
  ........
................
2009-11-24 14:35:53 +00:00
Mark Dickinson 40b62ec2a6 Blocked revisions 76491 via svnmerge
................
  r76491 | mark.dickinson | 2009-11-24 14:33:29 +0000 (Tue, 24 Nov 2009) | 9 lines

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

  ........
    r76489 | mark.dickinson | 2009-11-24 14:27:02 +0000 (Tue, 24 Nov 2009) | 1 line

    Fix some documentation examples involving the repr of a float.
  ........
................
2009-11-24 14:33:53 +00:00
Mark Dickinson ae31a7c78e Merged revisions 76485 via svnmerge from
svn+ssh://pythondev@www.python.org/python/branches/py3k

................
  r76485 | mark.dickinson | 2009-11-24 10:59:34 +0000 (Tue, 24 Nov 2009) | 9 lines

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

  ........
    r76483 | mark.dickinson | 2009-11-24 10:54:58 +0000 (Tue, 24 Nov 2009) | 2 lines

    round(0, "ermintrude") succeeded instead of producing a TypeError.  Fix this.
  ........
................
2009-11-24 11:00:21 +00:00
Senthil Kumaran d884f8a9c4 Merged revisions 76469 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

................
  r76469 | senthil.kumaran | 2009-11-24 00:32:52 +0530 (Tue, 24 Nov 2009) | 10 lines

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

  ........
    r76464 | senthil.kumaran | 2009-11-24 00:11:31 +0530 (Tue, 24 Nov 2009) | 4 lines

    Fix for issue1488943 - difflib.Differ() doesn't always add hints for tab
    characters.
  ........
................
2009-11-23 19:06:11 +00:00
Mark Dickinson eb0146858b Merged revisions 76462 via svnmerge from
svn+ssh://pythondev@www.python.org/python/branches/py3k

................
  r76462 | mark.dickinson | 2009-11-23 16:41:41 +0000 (Mon, 23 Nov 2009) | 9 lines

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

  ........
    r76460 | mark.dickinson | 2009-11-23 16:39:05 +0000 (Mon, 23 Nov 2009) | 2 lines

    Issue #7369: Fibonacci series should start at 0 in tutorial example.
  ........
................
2009-11-23 16:42:35 +00:00
Mark Dickinson 41ece0694d Merged revisions 76458 via svnmerge from
svn+ssh://pythondev@www.python.org/python/branches/py3k

................
  r76458 | mark.dickinson | 2009-11-23 16:27:17 +0000 (Mon, 23 Nov 2009) | 9 lines

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

  ........
    r76456 | mark.dickinson | 2009-11-23 16:23:43 +0000 (Mon, 23 Nov 2009) | 2 lines

    Issue #7379:  Fix incorrect doctest for Fraction.limit_denominator.
  ........
................
2009-11-23 16:28:18 +00:00
Lars Gustäbel 45711a7237 Merged revisions 76453 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

................
  r76453 | lars.gustaebel | 2009-11-23 16:48:33 +0100 (Mon, 23 Nov 2009) | 10 lines

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

  ........
    r76452 | lars.gustaebel | 2009-11-23 16:46:19 +0100 (Mon, 23 Nov 2009) | 3 lines

    Add a testcase that checks if the TarFile constructor successfully
    closes the internal file object in case of an error (issue #7341).
  ........
................
2009-11-23 16:04:57 +00:00
R. David Murray 4c3805958f Merged revisions 76448 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r76448 | r.david.murray | 2009-11-22 22:13:23 -0500 (Sun, 22 Nov 2009) | 4 lines

  Update example in doctest chapter that uses math.floor to reflect the
  fact that the result is an int in py3k.  Thanks to 'flox' for pointing out
  the discrepancy.
........
2009-11-23 03:14:51 +00:00
Lars Gustäbel 7344863c66 Blocked revisions 76444 via svnmerge
................
  r76444 | lars.gustaebel | 2009-11-22 19:48:49 +0100 (Sun, 22 Nov 2009) | 30 lines

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

  ........
    r76443 | lars.gustaebel | 2009-11-22 19:30:53 +0100 (Sun, 22 Nov 2009) | 24 lines

    Issue #6123: Fix opening empty archives and files.

    (Note that an empty archive is not the same as an empty file. An
    empty archive contains no members and is correctly terminated with an
    EOF block full of zeros. An empty file contains no data at all.)

    The problem was that although tarfile was able to create empty
    archives, it failed to open them raising a ReadError. On the other
    hand, tarfile opened empty files without error in most read modes and
    presented them as empty archives. (However, some modes still raised
    errors: "r|gz" raised ReadError, but "r:gz" worked, "r:bz2" even
    raised EOFError.)

    In order to get a more fine-grained control over the various internal
    error conditions I now split up the HeaderError exception into a
    number of meaningful sub-exceptions. This makes it easier in the
    TarFile.next() method to react to the different conditions in the
    correct way.

    The visible change in its behaviour now is that tarfile will open
    empty archives correctly and raise ReadError consistently for empty
    files.
  ........
................
2009-11-22 19:02:36 +00:00
Benjamin Peterson 187d9448fe remove 3.1 link 2009-11-21 23:56:56 +00:00
Jesse Noller dd31d11199 Merged revisions 76435 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

................
  r76435 | jesse.noller | 2009-11-21 09:20:14 -0500 (Sat, 21 Nov 2009) | 9 lines

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

  ........
    r76433 | jesse.noller | 2009-11-21 09:01:56 -0500 (Sat, 21 Nov 2009) | 1 line

    issue5738: The distribution example was confusing, and out of date. It's too large to include inline in the docs as well. It belongs in an addons module outside the stdlib. Removing.
  ........
................
2009-11-21 14:28:39 +00:00
Benjamin Peterson db149ac59b Merged revisions 76425 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

................
  r76425 | benjamin.peterson | 2009-11-19 19:19:41 -0600 (Thu, 19 Nov 2009) | 13 lines

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

  ........
    r76423 | benjamin.peterson | 2009-11-19 19:15:53 -0600 (Thu, 19 Nov 2009) | 1 line

    provide line number for lambdas
  ........
    r76424 | benjamin.peterson | 2009-11-19 19:16:58 -0600 (Thu, 19 Nov 2009) | 1 line

    genexps have linenos
  ........
................
2009-11-20 01:21:35 +00:00
Benjamin Peterson 3a2249da1b Merged revisions 76414 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r76414 | benjamin.peterson | 2009-11-19 15:22:27 -0600 (Thu, 19 Nov 2009) | 1 line

  fix message for py3
........
2009-11-19 21:26:17 +00:00
Ronald Oussoren 8c9695cf98 Merged revisions 76409 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

................
  r76409 | ronald.oussoren | 2009-11-19 18:44:52 +0100 (Thu, 19 Nov 2009) | 11 lines

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

  ........
    r76407 | ronald.oussoren | 2009-11-19 18:42:51 +0100 (Thu, 19 Nov 2009) | 4 lines

    Don't use the '==' operator with test, that's an unportable bash-ism.

    (Issue 7179)
  ........
................
2009-11-19 17:45:30 +00:00
Ronald Oussoren 1b2cad00c7 Merged revisions 76405 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

................
  r76405 | ronald.oussoren | 2009-11-19 18:15:31 +0100 (Thu, 19 Nov 2009) | 21 lines

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

  ........
    r76403 | ronald.oussoren | 2009-11-19 17:25:21 +0100 (Thu, 19 Nov 2009) | 14 lines

    Fix for issue #7085

    On MacOSX 10.6 the CoreFoundation framework must be initialized on the main
    thread, the constructor function in that framework will cause an SIGABRT when
    it is called on any other thread.

    Because a number of extension link (indirectly) to CoreFoundation and the
    Python core itself didn't the interpreter crashed when importing some
    extensions, such as _locale, on a secondary thread.

    This fix ensures that Python is linked to CoreFoundation on OSX, which results
    in the CoreFoundation constructor being called when Python is loaded. This
    does not require code changes.
  ........
................
2009-11-19 17:30:05 +00:00
Tarek Ziadé fd9ac226aa Merged revisions 76401 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

................
  r76401 | tarek.ziade | 2009-11-19 06:39:00 +0100 (Thu, 19 Nov 2009) | 9 lines

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

  ........
    r76399 | tarek.ziade | 2009-11-19 06:33:16 +0100 (Thu, 19 Nov 2009) | 1 line

    dragfullwindows can have value 2
  ........
................
2009-11-19 05:41:34 +00:00
Benjamin Peterson a1f9c04239 Merged revisions 76396 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

................
  r76396 | benjamin.peterson | 2009-11-18 21:08:32 -0600 (Wed, 18 Nov 2009) | 10 lines

  fix __bytes__ handling here in py3x
  Merged revisions 76395 via svnmerge from
  svn+ssh://pythondev@svn.python.org/python/trunk

  ........
    r76395 | benjamin.peterson | 2009-11-18 21:00:02 -0600 (Wed, 18 Nov 2009) | 1 line

    #5037 proxy __unicode__ correctly
  ........
................
2009-11-19 03:10:36 +00:00
Raymond Hettinger d3a77c0ad3 Fix docstrings for itertools combinatoric functions. 2009-11-19 01:23:41 +00:00