Commit Graph

5870 Commits

Author SHA1 Message Date
Raymond Hettinger 287bef46b7 Fix variants of deque.extend: d.extend(d) d+=d d.extendleft(d) 2009-12-10 05:56:49 +00:00
R. David Murray 1b479f24dc 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:01:31 +00:00
Raymond Hettinger 673827c6f9 Issue #7410: deepcopy of itertools.count() erroneously reset the count. 2009-11-30 11:15:28 +00:00
Alexandre Vassalotti 513c46e109 Merged revisions 76499 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r76499 | alexandre.vassalotti | 2009-11-24 12:53:23 -0500 (Tue, 24 Nov 2009) | 9 lines

  Issue 7128: Removed reference to the non-existent copyreg module.

  The reference to copyreg was a unnoticed leftover from the compatibility
  support for the grand renaming of the standard library in Python 3. The
  compatibility support was reverted in r63493, but not completely as this
  patch shows.

  Based on a patch by Amaury Forgeot d'Arc.
........
2009-11-24 18:06:51 +00:00
Senthil Kumaran 4702aef1ad 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 18:54:33 +00:00
Lars Gustäbel 55fa13cb69 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:01:56 +00:00
Benjamin Peterson 440847cf8e Merged revisions 76416-76417 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r76416 | benjamin.peterson | 2009-11-19 16:54:57 -0600 (Thu, 19 Nov 2009) | 10 lines

  improve several corner cases related with argument names in parenthesis

  - Fix #7362: give a good error message for parenthesized arguments with
    defaults.

  - Add a py3k warning for any parenthesized arguments since those are not allowed
    in Py3.  This warning is not given in tuple unpacking, since that incurs the
    tuple unpacking warning.
........
  r76417 | benjamin.peterson | 2009-11-19 16:58:01 -0600 (Thu, 19 Nov 2009) | 1 line

  add news notes for r76416
........
2009-11-19 23:01:36 +00:00
Benjamin Peterson 6481e09084 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:11:09 +00:00
Mark Dickinson cc83afd803 Merged revisions 76295 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r76295 | mark.dickinson | 2009-11-15 12:31:13 +0000 (Sun, 15 Nov 2009) | 5 lines

  Avoid signed overflow in some xrange calculations, and extend
  xrange tests to cover some special cases that caused problems
  in py3k.  This is a partial backport of r76292-76293 (see
  issue #7298.)
........
2009-11-15 12:34:12 +00:00
R. David Murray 693618cd7b Merged revisions 76276-76277 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r76276 | r.david.murray | 2009-11-14 19:04:32 -0500 (Sat, 14 Nov 2009) | 3 lines

  Issue 7324: add a sanity check to regrtest argument parsing to
  catch the case of an option with no handler.
........
  r76277 | r.david.murray | 2009-11-14 19:07:00 -0500 (Sat, 14 Nov 2009) | 3 lines

  Remove 'g' from regrtest getopt argument string, since there's no
  handler for it.
........
2009-11-15 00:17:17 +00:00
Antoine Pitrou 80e44f8737 Merged revisions 76217 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r76217 | antoine.pitrou | 2009-11-11 21:55:07 +0100 (mer., 11 nov. 2009) | 3 lines

  Issue #7295: Do not use a hardcoded file name in test_tarfile.
........
2009-11-11 20:57:55 +00:00
Mark Dickinson 23beb84e84 Merged revisions 76182 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r76182 | mark.dickinson | 2009-11-09 19:54:51 +0000 (Mon, 09 Nov 2009) | 1 line

  Add extra information to a test_signal failure message to aid diagnosis of buildbot failure.
........
2009-11-09 19:59:08 +00:00
Mark Dickinson f263724ea0 Issue #7070: Fix problem with builtin round function for large odd
integer arguments.  Also fixes the sign of round(-0.0).
2009-11-09 17:45:40 +00:00
Antoine Pitrou c747d3a5d2 Merged revisions 76137,76172 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r76137 | antoine.pitrou | 2009-11-06 23:34:35 +0100 (ven., 06 nov. 2009) | 4 lines

  Issue #7270: Add some dedicated unit tests for multi-thread synchronization
  primitives such as Lock, RLock, Condition, Event and Semaphore.
........
  r76172 | antoine.pitrou | 2009-11-09 17:00:11 +0100 (lun., 09 nov. 2009) | 5 lines

  Issue #7282: Fix a memory leak when an RLock was used in a thread other
  than those started through `threading.Thread` (for example, using
  `thread.start_new_thread()`.
........
2009-11-09 16:47:50 +00:00
Antoine Pitrou e319983637 Merged revisions 76148 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r76148 | antoine.pitrou | 2009-11-08 01:24:12 +0100 (dim., 08 nov. 2009) | 4 lines

  Kill a small potential leak in test_threading.
  The leak may not manifest itself if the OS re-uses the same thread ids
  (I suppose Neal's machine doesn't :-))
........
2009-11-08 00:36:33 +00:00
Antoine Pitrou 35465af487 Merged revisions 76101 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r76101 | antoine.pitrou | 2009-11-04 01:50:26 +0100 (mer., 04 nov. 2009) | 3 lines

  Make test_shutil clean up after itself
........
2009-11-04 00:55:26 +00:00
R. David Murray 0ae237bb45 Fix backport of test_curses test skip. 2009-11-03 22:47:06 +00:00
Antoine Pitrou 6d332bedc8 Merged revisions 76086 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r76086 | antoine.pitrou | 2009-11-03 17:41:20 +0100 (mar., 03 nov. 2009) | 3 lines

  Try to make test_wsgiref less fragile against environment changes by other tests
........
2009-11-03 16:43:03 +00:00
R. David Murray 24b19992d2 It turns out test_curses can fail in a 2.6 buildbot because stdout is not
a tty in certain cases.

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

........
  r75518 | r.david.murray | 2009-10-19 12:01:28 -0400 (Mon, 19 Oct 2009) | 3 lines

  Only run test_curses when sys.__stdout__ is a tty.  This eliminates the
  last false positive when running regrtest with -j.
........
2009-11-03 14:31:53 +00:00
Antoine Pitrou 7f4f8c3ff1 Try to fix test_wsgiref failures due to test_httpservers modifying the environment 2009-11-02 22:04:54 +00:00
Antoine Pitrou f226ac8a72 Issue #7249: Methods of io.BytesIO now allow `long` as well as `int` arguments.
Merged revisions 76071 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r76071 | antoine.pitrou | 2009-11-02 21:47:33 +0100 (lun., 02 nov. 2009) | 4 lines

  Add acceptance of long ints to test_memoryio.py
  (in preparation for fix of #7249 in 2.6)
........
2009-11-02 21:03:53 +00:00
Neil Schemenauer b29642f129 Fix broken test in test_hotshot. Treating the current directory as an
empty file is sloppy and non-portable.  Use NamedTemporaryFile to make
an empty file.
2009-11-02 00:59:52 +00:00
Antoine Pitrou 07728e9b46 Merged revisions 76037 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r76037 | antoine.pitrou | 2009-11-01 23:02:03 +0100 (dim., 01 nov. 2009) | 3 lines

  Use a custom timeout in test_support.open_urlresource.
........
2009-11-01 22:06:59 +00:00
Antoine Pitrou 1ccb66a5bd Merged revisions 76033 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r76033 | antoine.pitrou | 2009-11-01 22:26:14 +0100 (dim., 01 nov. 2009) | 3 lines

  test_normalization should skip and not crash when the resource isn't available
........
2009-11-01 21:34:42 +00:00
Gregory P. Smith 5662924453 Merged revisions 74475 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r74475 | gregory.p.smith | 2009-08-16 11:52:58 -0700 (Sun, 16 Aug 2009) | 2 lines

  Issue 6665: Fix fnmatch to properly match filenames with newlines in them.
........
2009-11-01 20:33:31 +00:00
Gregory P. Smith 63e64add92 Merged revisions 69519 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r69519 | gregory.p.smith | 2009-02-11 15:45:25 -0800 (Wed, 11 Feb 2009) | 3 lines

  Issue #1008086: Fixes socket.inet_aton() to always return 4 bytes even
  on LP64 platforms (most 64-bit Linux, bsd, unix systems).
........
2009-11-01 20:28:48 +00:00
Raymond Hettinger 4da5faae21 Issue 7244: Fix indentation in C code. Fix test to not sent output to stdout. 2009-11-01 18:43:31 +00:00
Antoine Pitrou f44aa34cee (neither to 2.6)
Merged revisions 76012 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r76012 | antoine.pitrou | 2009-11-01 17:10:47 +0100 (dim., 01 nov. 2009) | 3 lines

  Hum, test skipping when the URL isn't reachable hadn't been applied to trunk.
........
2009-11-01 16:17:06 +00:00
Raymond Hettinger 80d49b33b1 Issue 7244: fix exception handling in itertools.izip_longest(). 2009-11-01 08:53:21 +00:00
Mark Dickinson 265035e1e5 Merged revisions 75986 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r75986 | mark.dickinson | 2009-10-31 10:36:06 +0000 (Sat, 31 Oct 2009) | 2 lines

  Issue #7042:  Use a better mechanism for testing timers in test_signal.
........
2009-10-31 10:37:15 +00:00
Mark Dickinson d8a2e2b794 Merged revisions 75943-75945 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r75943 | mark.dickinson | 2009-10-29 11:09:09 +0000 (Thu, 29 Oct 2009) | 1 line

  Fix duplicate test numbers in extra.decTest
........
  r75944 | mark.dickinson | 2009-10-29 12:04:00 +0000 (Thu, 29 Oct 2009) | 3 lines

  Issue #7233:  A number of two-argument Decimal methods were failing to
  accept ints and longs for the second argument.
........
  r75945 | mark.dickinson | 2009-10-29 12:11:18 +0000 (Thu, 29 Oct 2009) | 4 lines

  Issue #7233:  Fix Decimal.shift and Decimal.rotate methods for
  arguments with more digits than the current context precision.
  Bug reported by Stefan Krah.
........
2009-10-29 12:16:15 +00:00
Benjamin Peterson c717aec772 Merged revisions 75931 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r75931 | benjamin.peterson | 2009-10-28 20:49:07 -0500 (Wed, 28 Oct 2009) | 5 lines

  do a backport of r75928

  The added test does not fail without the patch, but we still fix the issue of
  surrogates being used in wide builds where they should not be.
........
2009-10-29 02:02:47 +00:00
Benjamin Peterson e7228d3e01 remove binary mimetype 2009-10-29 01:57:08 +00:00
R. David Murray 757cebc41b Merged revisions 75920 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r75920 | r.david.murray | 2009-10-28 10:03:43 -0400 (Wed, 28 Oct 2009) | 2 lines

  Remove variable that is no longer used.
........
2009-10-28 14:05:34 +00:00
R. David Murray 9e28ca707b Merged revisions 75528 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r75528 | r.david.murray | 2009-10-19 13:53:58 -0400 (Mon, 19 Oct 2009) | 4 lines

  Clarify error report message, and don't recommend running in verbose
  mode for more information if we are already running in verbose mode.
........
2009-10-28 02:22:08 +00:00
R. David Murray 48daba677d Merged revisions 75524 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r75524 | r.david.murray | 2009-10-19 12:28:24 -0400 (Mon, 19 Oct 2009) | 6 lines

  Eliminate warning message that looks like an error message.  When it was
  added not finding Lib/test in the path indicated something was wrong,
  but when running regtest using "python -m" Lib/test isn't typically in
  the path, so this message is now more disturbing than it is helpful.
........
2009-10-28 01:49:02 +00:00
Georg Brandl 23016276b6 Merged revisions 75887 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r75887 | georg.brandl | 2009-10-27 23:56:09 +0100 (Di, 27 Okt 2009) | 1 line

  Make sure every run of test_intern() interns a new string, otherwise that test fails e.g. when some other test in test_builtin fails and it is rerun in verbose mode.
........
2009-10-27 22:57:25 +00:00
Mark Dickinson 20a7cfcaa1 Merged revisions 75561 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r75561 | mark.dickinson | 2009-10-20 14:33:03 +0100 (Tue, 20 Oct 2009) | 3 lines

  Issue #7099: Decimal.is_normal should return True for all nonzero
  finite non-subnormal values, even those with exponent > Emax.
........
2009-10-27 18:27:53 +00:00
Antoine Pitrou f3a0ff61e0 Merged revisions 75818 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r75818 | antoine.pitrou | 2009-10-27 18:41:58 +0100 (mar., 27 oct. 2009) | 3 lines

  Issue #7205: Fix a possible deadlock when using a BZ2File object from several threads at once.
........
2009-10-27 17:46:09 +00:00
Mark Dickinson 25567ef13b Merged revisions 75286 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r75286 | mark.dickinson | 2009-10-08 17:28:39 +0100 (Thu, 08 Oct 2009) | 2 lines

  Update decimal test data to the most recent set from Mike Cowlishaw.
........
2009-10-27 17:02:46 +00:00
Georg Brandl f004d9dc84 Merged revisions 73206,73232,73299,73683,74020,74185,74544,74643,74647,74817,74838-74839,74865,74946,75402,75459,75604,75696 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r73206 | georg.brandl | 2009-06-04 11:15:12 +0200 (Do, 04 Jun 2009) | 1 line

  #3584: ignore trailing newlines when placing the caret for a SyntaxError location.
........
  r73232 | georg.brandl | 2009-06-04 20:59:58 +0200 (Do, 04 Jun 2009) | 1 line

  Add test for #3684.
........
  r73299 | georg.brandl | 2009-06-08 20:41:36 +0200 (Mo, 08 Jun 2009) | 1 line

  Typo fix.
........
  r73683 | georg.brandl | 2009-06-29 16:44:49 +0200 (Mo, 29 Jun 2009) | 1 line

  Fix error handling in PyCode_Optimize, by Alexander Schremmer at EuroPython sprint.
........
  r74020 | georg.brandl | 2009-07-16 09:18:07 +0200 (Do, 16 Jul 2009) | 1 line

  #5910: fix kqueue for calls with more than one event.
........
  r74185 | georg.brandl | 2009-07-23 11:17:09 +0200 (Do, 23 Jul 2009) | 1 line

  Fix the "pylocals" gdb command.
........
  r74544 | georg.brandl | 2009-08-24 19:12:30 +0200 (Mo, 24 Aug 2009) | 1 line

  #6775: fix python.org URLs in README.
........
  r74643 | georg.brandl | 2009-09-04 08:59:20 +0200 (Fr, 04 Sep 2009) | 2 lines

  Issue #2666: Handle BROWSER environment variable properly for unknown browser names in the webbrowser module.
........
  r74647 | georg.brandl | 2009-09-04 10:17:04 +0200 (Fr, 04 Sep 2009) | 2 lines

  Issue #5275: In Cookie's Cookie.load(), properly handle non-string arguments as documented.
........
  r74817 | georg.brandl | 2009-09-16 11:05:11 +0200 (Mi, 16 Sep 2009) | 1 line

  Make deprecation notices as visible as warnings are right now.
........
  r74838 | georg.brandl | 2009-09-16 18:22:12 +0200 (Mi, 16 Sep 2009) | 1 line

  Remove some more boilerplate from the actual tests in test_pdb.
........
  r74839 | georg.brandl | 2009-09-16 18:36:39 +0200 (Mi, 16 Sep 2009) | 1 line

  Make the pdb displayhook compatible with the standard displayhook: do not print Nones. Add a test for that.
........
  r74865 | georg.brandl | 2009-09-17 09:49:37 +0200 (Do, 17 Sep 2009) | 1 line

  #6912: add "with" block support to pindent.
........
  r74946 | georg.brandl | 2009-09-19 10:43:16 +0200 (Sa, 19 Sep 2009) | 1 line

  Update bug tracker reference.
........
  r75402 | georg.brandl | 2009-10-14 17:51:48 +0200 (Mi, 14 Okt 2009) | 1 line

  #7125: fix typo.
........
  r75459 | georg.brandl | 2009-10-17 10:57:43 +0200 (Sa, 17 Okt 2009) | 1 line

  Fix refleaks in _ctypes PyCSimpleType_New, which fixes the refleak seen in test___all__.
........
  r75604 | georg.brandl | 2009-10-22 13:36:50 +0200 (Do, 22 Okt 2009) | 1 line

  Fix stylesheet for multi-paragraph impl-details.
........
  r75696 | georg.brandl | 2009-10-25 21:25:43 +0100 (So, 25 Okt 2009) | 1 line

  Fix a demo.
........
2009-10-27 15:39:53 +00:00
Georg Brandl 65fdff977d Merged revisions 68628 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r68628 | benjamin.peterson | 2009-01-16 03:55:24 +0100 (Fr, 16 Jan 2009) | 1 line

  compare with == not is #4946
........
2009-10-27 13:16:07 +00:00
Antoine Pitrou 641d76fad0 Backporting since it would have helped us find a regression.
Merged revisions 75312 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r75312 | antoine.pitrou | 2009-10-10 22:52:11 +0200 (sam., 10 oct. 2009) | 4 lines

  Issue #7055: test___all__ now greedily detects all modules which have an
  __all__ attribute, rather than using a hardcoded and incomplete list.
........
2009-10-27 13:04:15 +00:00
Antoine Pitrou 9aece75269 Merged revisions 75570,75574,75624 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r75570 | antoine.pitrou | 2009-10-20 23:29:37 +0200 (mar., 20 oct. 2009) | 6 lines

  Issue #1722344: threading._shutdown() is now called in Py_Finalize(), which
  fixes the problem of some exceptions being thrown at shutdown when the
  interpreter is killed. Patch by Adam Olsen.
........
  r75574 | antoine.pitrou | 2009-10-20 23:59:25 +0200 (mar., 20 oct. 2009) | 4 lines

  Test wouldn't work in debug mode.
  We probably need a function in test_support to handle this.
........
  r75624 | antoine.pitrou | 2009-10-23 14:01:13 +0200 (ven., 23 oct. 2009) | 3 lines

  Fix Windows buildbot failure
........
2009-10-27 12:48:52 +00:00
Antoine Pitrou f75774b542 Merged revisions 75633 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r75633 | antoine.pitrou | 2009-10-23 20:32:15 +0200 (ven., 23 oct. 2009) | 3 lines

  Issue #7194: test_thread could try to release an unacquired mutex (and fail).
........
2009-10-27 12:32:18 +00:00
Senthil Kumaran dff2028a1b Merged revisions 75333 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r75333 | senthil.kumaran | 2009-10-11 07:30:07 +0530 (Sun, 11 Oct 2009) | 3 lines

  Fixed Issue6894, urllib2 doesn't respect "no_proxy" environment
........
2009-10-11 05:35:44 +00:00
Senthil Kumaran f125078132 Fix for Issue7026. Making it self.env.unset 2009-10-05 04:16:26 +00:00
Mark Dickinson 5fab169710 Merged revisions 75236 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r75236 | mark.dickinson | 2009-10-04 19:38:39 +0100 (Sun, 04 Oct 2009) | 4 lines

  Issue #7042:  Fix test_signal failure on OS X 10.6 64-bit builds
  (and also, with luck, on the x86 FreeBSD buildbot), by making sure
  that some user time is used in test_itimer_virtual.
........
2009-10-04 18:41:25 +00:00
Georg Brandl 2b4df43c1c #7052: remove nonexisting NullHandler from logging.__all__. 2009-10-04 09:03:59 +00:00
Mark Dickinson c3a12775e2 Issue #7019: An attempt to unmarshal bad long data could produce
unnormalized PyLong objects; make it raise ValueError instead.
2009-10-03 08:15:49 +00:00
Philip Jenvey 7865296ca3 Merged revisions 75143 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r75143 | philip.jenvey | 2009-09-29 12:10:15 -0700 (Tue, 29 Sep 2009) | 5 lines

  #5329: fix os.popen* regression from 2.5: don't execute commands as a sequence
  through the shell. also document the correct subprocess replacement for this
  case
  patch from Jean-Paul Calderone and Jani Hakala
........
2009-09-29 19:18:11 +00:00
Antoine Pitrou 530e1aca05 Merged revisions 75134 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r75134 | antoine.pitrou | 2009-09-29 19:48:18 +0200 (mar., 29 sept. 2009) | 4 lines

  Issue #6790: Make it possible again to pass an `array.array` to
  `httplib.HTTPConnection.send`. Patch by Kirk McDonald.
........
2009-09-29 18:14:09 +00:00
Philip Jenvey 87b4e726be Merged revisions 75123 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r75123 | philip.jenvey | 2009-09-28 21:32:44 -0700 (Mon, 28 Sep 2009) | 4 lines

  #6990: clear threading.local's key only after its thread state is removed:
  fixes local subclasses leaving old state around after a ref cycle GC which
  could be recycled by new locals
........
2009-09-29 04:41:54 +00:00
R. David Murray a89633c4f7 Merged revisions 75111 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r75111 | r.david.murray | 2009-09-28 12:57:45 -0400 (Mon, 28 Sep 2009) | 5 lines

  Prevent test_bad_address failure when a domain in the dns search
  path implements a '*' default rule.  Also update comment with
  a more complete explanation of the difficulties inherent in
  the test.
........
2009-09-28 19:53:25 +00:00
Ezio Melotti 9ba83c50f4 Merged revisions 75070 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r75070 | ezio.melotti | 2009-09-26 14:20:53 +0300 (Sat, 26 Sep 2009) | 1 line

  #7000: document "sep" in capwords. Add a few tests
........
2009-09-26 11:23:16 +00:00
Georg Brandl 3ad2847c01 Merged revisions 74943 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r74943 | georg.brandl | 2009-09-19 09:35:07 +0200 (Sa, 19 Sep 2009) | 1 line

  #6944: the argument to PyArg_ParseTuple should be a tuple, otherwise a SystemError is set.  Also clean up another usage of PyArg_ParseTuple.
........
2009-09-19 07:46:24 +00:00
Georg Brandl 015263339f Merged revisions 74873 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r74873 | georg.brandl | 2009-09-17 13:48:31 +0200 (Do, 17 Sep 2009) | 1 line

  #6844 followup: the warning when setting Exception.message was removed, do not test for it.
........
2009-09-17 11:49:20 +00:00
Georg Brandl f7a09bec0a Merged revisions 74869 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r74869 | georg.brandl | 2009-09-17 13:28:09 +0200 (Do, 17 Sep 2009) | 4 lines

  Issue #6922: Fix an infinite loop when trying to decode an invalid
  UTF-32 stream with a non-raising error handler like "replace" or "ignore".
........
2009-09-17 11:33:31 +00:00
Georg Brandl 8997103be0 Merged revisions 74845 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r74845 | georg.brandl | 2009-09-16 22:30:09 +0200 (Mi, 16 Sep 2009) | 5 lines

  #6844: do not emit DeprecationWarnings on access if Exception.message has been set by the user.

  This works by always setting it in __dict__, except when it's implicitly set in __init__.
........
2009-09-16 20:34:51 +00:00
Thomas Wouters 448db2155f Merged revisions 74841 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r74841 | thomas.wouters | 2009-09-16 12:55:54 -0700 (Wed, 16 Sep 2009) | 23 lines


  Fix issue #1590864, multiple threads and fork() can cause deadlocks, by
  acquiring the import lock around fork() calls. This prevents other threads
  from having that lock while the fork happens, and is the recommended way of
  dealing with such issues. There are two other locks we care about, the GIL
  and the Thread Local Storage lock. The GIL is obviously held when calling
  Python functions like os.fork(), and the TLS lock is explicitly reallocated
  instead, while also deleting now-orphaned TLS data.

  This only fixes calls to os.fork(), not extension modules or embedding
  programs calling C's fork() directly. Solving that requires a new set of API
  functions, and possibly a rewrite of the Python/thread_*.c mess. Add a
  warning explaining the problem to the documentation in the mean time.

  This also changes behaviour a little on AIX. Before, AIX (but only AIX) was
  getting the import lock reallocated, seemingly to avoid this very same
  problem. This is not the right approach, because the import lock is a
  re-entrant one, and reallocating would do the wrong thing when forking while
  holding the import lock.

  Will backport to 2.6, minus the tiny AIX behaviour change.
........
2009-09-16 20:06:36 +00:00
Mark Dickinson c05b7890bc Merged revisions 74708 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r74708 | mark.dickinson | 2009-09-07 19:04:58 +0100 (Mon, 07 Sep 2009) | 2 lines

  #Issue 6795:  Fix infinite recursion in long(Decimal('nan'));  change int(Decimal('nan')) to raise ValueError instead of either returning NaN or raising InvalidContext.
........
2009-09-08 19:22:18 +00:00
Mark Dickinson c3c112da6b Merged revisions 74704 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r74704 | mark.dickinson | 2009-09-07 17:17:41 +0100 (Mon, 07 Sep 2009) | 3 lines

  Issue #6850: Fix bug in Decimal._parse_format_specifier for formats
  with no type specifier.
........
2009-09-07 16:19:35 +00:00
Ronald Oussoren 461f2205cc Merged revisions 74672 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r74672 | ronald.oussoren | 2009-09-06 12:00:26 +0200 (Sun, 06 Sep 2009) | 1 line

  Fix build issues on OSX 10.6 (issue 6802)
........
2009-09-06 10:54:28 +00:00
Mark Dickinson b61c035dc2 Merged revisions 74673 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r74673 | mark.dickinson | 2009-09-06 11:03:31 +0100 (Sun, 06 Sep 2009) | 3 lines

  Issue #6846: bytearray.pop was returning ints in the range [-128, 128)
  instead of [0, 256).  Thanks Hagen Fürstenau for the report and fix.
........
2009-09-06 10:05:28 +00:00
Mark Dickinson 7f265b7fac Merged revisions 74564 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r74564 | mark.dickinson | 2009-08-28 14:25:02 +0100 (Fri, 28 Aug 2009) | 3 lines

  Issue #6794:  Fix handling of NaNs in Decimal.compare_total and
  Decimal.compare_total_mag.
........
2009-08-28 13:35:02 +00:00
Senthil Kumaran b52c6f8c39 Fixing Issue6557. urllib.urlopen will quote the space character within urls. 2009-08-15 17:49:55 +00:00
Benjamin Peterson f492c36442 Merged revisions 74457 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r74457 | benjamin.peterson | 2009-08-15 08:16:38 -0500 (Sat, 15 Aug 2009) | 1 line

  #6707 fix a crash with dir() on an uninitialized module
........
2009-08-15 13:18:47 +00:00
Brett Cannon 559eb08861 Backport of r74429. Not merged/blocked as svnmerge.py is giving me an error and
I don't want to accidentally check in busted svnmerge metadata.
2009-08-13 19:45:44 +00:00
Raymond Hettinger d6119ef883 Issue 6637: defaultdict.copy() failed with an empty factory. 2009-08-04 18:49:26 +00:00
Frank Wierzbicki 6416f810e8 Merged revisions 74291 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r74291 | frank.wierzbicki | 2009-08-02 16:37:48 -0400 (Sun, 02 Aug 2009) | 6 lines

  Adding tests derived from the Jython project.  These are primarily tests of
  'single' statements with partial sentences (so they test things like "try:" in
  interactive mode).  Others tests hit areas that previously failed in Jython. A
  couple still fail in Jython, mainly due to the difficulty of parsing partial
  sentences (but should be fixed by Jython 2.6).
........
2009-08-02 22:05:54 +00:00
Mark Dickinson 9a6e645b9f Merged revisions 74281 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r74281 | mark.dickinson | 2009-08-02 11:59:36 +0100 (Sun, 02 Aug 2009) | 4 lines

  Issue #6595: Allow Decimal constructor to accept non-European decimal
  digits, as recommended by the specification.  (Backport of r74279 from
  py3k.)
........
2009-08-02 11:01:01 +00:00
Raymond Hettinger 30006c76f4 Issue 6573: Fix set.union() for cases where self is in the argument chain. 2009-07-27 20:33:25 +00:00
R. David Murray bce6d5e129 Remove unittest.SkipTest from backport of test for issue 6542. 2009-07-27 01:14:38 +00:00
Senthil Kumaran 308681c405 Backporting the changes made in revision 72880 as fix for Issue1424152. 2009-07-26 12:36:08 +00:00
Amaury Forgeot d'Arc 47ccf0cbba Merged revisions 74189 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r74189 | amaury.forgeotdarc | 2009-07-23 21:26:02 +0200 (jeu., 23 juil. 2009) | 4 lines

  #6553: crash in cPickle.load(), when given a StringIO with incomplete data.

  Will backport to 2.6, 3.x already fixed a similar issue with issue4298.
........
2009-07-23 22:31:47 +00:00
R. David Murray ce28a01e35 Merged revisions 74175 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r74175 | r.david.murray | 2009-07-22 13:22:58 -0400 (Wed, 22 Jul 2009) | 4 lines

  Backport of fix for issue 6542: make sure
  test_os.TestInvalidFD.test_closerange does not close any
  valid file descriptors.
........
2009-07-22 17:37:11 +00:00
Georg Brandl 11a81b2151 Merged revisions 74167 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r74167 | georg.brandl | 2009-07-22 13:57:15 +0200 (Mi, 22 Jul 2009) | 1 line

  Issue #6540: Fixed crash for bytearray.translate() with invalid parameters.
........
2009-07-22 12:03:09 +00:00
R. David Murray 17438dc26c Merged revisions 73708,73738 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r73708 | jesse.noller | 2009-06-30 13:11:52 -0400 (Tue, 30 Jun 2009) | 1 line

  Resolves issues 5155, 5313, 5331 - bad file descriptor error with processes in processes
........
  r73738 | r.david.murray | 2009-06-30 22:49:10 -0400 (Tue, 30 Jun 2009) | 2 lines

  Make punctuation prettier and break up run-on sentence.
........
2009-07-21 17:02:14 +00:00
Senthil Kumaran 428e9d1d05 Fix for issue5102, timeout value propages between redirects, proxy, digest and
auth handlers. Fixed tests to reflect the same.
2009-07-19 04:20:46 +00:00
Hirokazu Yamamoto 8bb2d5d1c4 assertRaises can't be used as a context manager in 2.6. 2009-07-19 03:39:54 +00:00
R. David Murray e38b0a8ec0 Merged revisions 73870,73879,73899-73900,73905-73906 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r73870 | r.david.murray | 2009-07-06 21:06:13 -0400 (Mon, 06 Jul 2009) | 5 lines

  Issue 6070: when creating a compiled file, after copying the mode bits, on
  posix zap the execute bit in case it was set on the .py file, since the
  compiled files are not directly executable on posix.  Patch by Marco N.
........
  r73879 | r.david.murray | 2009-07-07 05:54:16 -0400 (Tue, 07 Jul 2009) | 3 lines

  Update issue 6070 patch to match the patch that was actually tested
  on Windows.
........
  r73899 | r.david.murray | 2009-07-08 21:43:41 -0400 (Wed, 08 Jul 2009) | 3 lines

  Conditionalize test cleanup code to eliminate traceback, which will
  hopefully reveal the real problem.
........
  r73900 | r.david.murray | 2009-07-08 22:06:17 -0400 (Wed, 08 Jul 2009) | 2 lines

  Make test work with -O.
........
  r73905 | r.david.murray | 2009-07-09 09:55:44 -0400 (Thu, 09 Jul 2009) | 3 lines

  Specify umask in execute bit test to get consistent results
  and make sure we test resetting all three execute bits.
........
  r73906 | r.david.murray | 2009-07-09 11:35:33 -0400 (Thu, 09 Jul 2009) | 5 lines

  Curdir needs to be in the path for the test to work on all buildbots.
  (I copied this from another import test, but currently this will fail if
  TESTFN ends up in /tmp...see issue 2609).
........
2009-07-19 01:44:23 +00:00
Hirokazu Yamamoto fcaa2104aa Merged revisions 74040,74042 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r74040 | hirokazu.yamamoto | 2009-07-17 15:20:46 +0900 | 1 line

  Issue #6415: Fixed warnings.warn sagfault on bad formatted string.
........
  r74042 | hirokazu.yamamoto | 2009-07-17 15:26:54 +0900 | 1 line

  NEWS about r74040.
........
2009-07-17 06:33:03 +00:00
Michael Foord bee87b4c1c Move initialising unittest.TestProgram.testRunner into runTests. Issue 6418. 2009-07-13 16:32:47 +00:00
Amaury Forgeot d'Arc c42f0addef Merged revisions 73952 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r73952 | amaury.forgeotdarc | 2009-07-11 16:33:51 +0200 (sam., 11 juil. 2009) | 4 lines

  #2622 Import errors in email.message, from a py2app standalone application.

  Patch by Mads Kiilerich, Reviewed by Barry Warsaw.
........
2009-07-11 14:37:20 +00:00
R. David Murray 8bb57b7340 Merged revisions 73907-73908 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r73907 | r.david.murray | 2009-07-09 12:17:30 -0400 (Thu, 09 Jul 2009) | 4 lines

  Temporarily ignore rmtree errors in test_getcwd_long_pathnames to see
  if the test gives useful failure info on Solaris buildbot.
........
  r73908 | r.david.murray | 2009-07-09 14:41:03 -0400 (Thu, 09 Jul 2009) | 6 lines

  Try to fix Solaris buildbot rmtree failure in test_getcwd_long_pathnames
  cleanup.  If this fix works, it means that Solaris is unique among
  our platforms in what happens when shutil.rmtree is called on the
  current working directory (ie: it doesn't work on Solaris, but
  it does everywhere else).
........
2009-07-09 20:13:41 +00:00
Benjamin Peterson 7d6b01417f Merged revisions 73776 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r73776 | benjamin.peterson | 2009-07-02 13:16:45 -0500 (Thu, 02 Jul 2009) | 1 line

  when print() gets unicode arguments, sep and end should be unicode by default #4618
........
2009-07-02 18:19:47 +00:00
Benjamin Peterson f921469383 Merged revisions 73774 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r73774 | benjamin.peterson | 2009-07-02 12:06:17 -0500 (Thu, 02 Jul 2009) | 1 line

  only order comparisons are removed in py3k #6119
........
2009-07-02 17:19:22 +00:00
Jesus Cea 585ad8ae5e Merged revisions 69846 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r69846 | mark.dickinson | 2009-02-21 21:27:01 +0100 (Sat, 21 Feb 2009) | 2 lines

  Issue #5341: Fix a variety of spelling errors.
........
2009-07-02 15:37:21 +00:00
R. David Murray c4c84e1a19 Merged revisions 73529 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r73529 | r.david.murray | 2009-06-23 14:02:46 -0400 (Tue, 23 Jun 2009) | 4 lines

  Fix issue 5230 by having pydoc's safeimport check to see if the import
  error was thrown from itself in order to decide if the module can't be
  found.  Thanks to Lucas Prado Melo for collaborating on the fix and tests.
........
2009-06-23 20:37:26 +00:00
Mark Dickinson 88348a1c55 Merged revisions 73451 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r73451 | mark.dickinson | 2009-06-16 21:31:12 +0100 (Tue, 16 Jun 2009) | 1 line

  Acknowledge the role of the MPFR library in creating cmath_testcases.txt
........
2009-06-16 20:42:57 +00:00
Michael Foord 48bc8203cc Restore default testRunner argument in unittest.main to None. Issue 6177. 2009-06-02 18:22:38 +00:00
Amaury Forgeot d'Arc 99be081fae Merged revisions 73114 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r73114 | amaury.forgeotdarc | 2009-06-01 22:53:18 +0200 (lun., 01 juin 2009) | 3 lines

  #4547: When debugging a very large function, it was not always
  possible to update the lineno attribute of the current frame.
........
2009-06-01 22:04:41 +00:00
R. David Murray e6a4d78a62 Merged revisions 73077 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r73077 | r.david.murray | 2009-05-31 15:15:57 -0400 (Sun, 31 May 2009) | 4 lines

  Issue 3848: document the fact that epoll register raises an IOError if
  an fd is registered twice, and add some additional epoll tests.  Patch
  by Christian Heimes.
........
2009-05-31 19:29:05 +00:00
Antoine Pitrou 6987d54116 Merged revisions 73064-73065 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r73064 | antoine.pitrou | 2009-05-30 23:27:00 +0200 (sam., 30 mai 2009) | 4 lines

  Issue #5330: C functions called with keyword arguments were not reported by
  the various profiling modules (profile, cProfile). Patch by Hagen Fürstenau.
........
  r73065 | antoine.pitrou | 2009-05-30 23:39:25 +0200 (sam., 30 mai 2009) | 3 lines

  The test for #5330 wasn't correct.
........
2009-05-30 21:43:48 +00:00
R. David Murray 7e9d75a91d Merged revisions 73022 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r73022 | r.david.murray | 2009-05-29 13:31:05 -0400 (Fri, 29 May 2009) | 2 lines

  Refactor test parameterization to resolve update timing problem.
........
2009-05-29 17:38:16 +00:00
R. David Murray 4ba681eadc Merged revisions 72992 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r72992 | r.david.murray | 2009-05-28 14:49:23 -0400 (Thu, 28 May 2009) | 2 lines

  Backport smtplib auth tests from r72990.
........
2009-05-28 19:20:58 +00:00
R. David Murray 2edb85d692 Merged revisions 72966 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r72966 | r.david.murray | 2009-05-27 16:07:21 -0400 (Wed, 27 May 2009) | 4 lines

  fix issue #6121 by stripping spaces from the argument in the 'help'
  function.
........
2009-05-27 20:16:24 +00:00
Raymond Hettinger 4f1e16338d Fix field name conflicts for named tuples. 2009-05-27 02:17:26 +00:00
Georg Brandl e081eef126 Merged revisions 72319-72320,72467,72661,72675-72679,72703,72708,72710,72712,72801-72802,72820,72822,72824,72826-72828,72830 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r72319 | georg.brandl | 2009-05-05 10:28:49 +0200 (Di, 05 Mai 2009) | 1 line

  #1309567: fix linecache behavior of stripping subdirectories from paths when looking for relative filename matches. Also add a linecache test suite.
........
  r72320 | georg.brandl | 2009-05-05 10:30:28 +0200 (Di, 05 Mai 2009) | 1 line

  Add a news entry for r72319.
........
  r72467 | georg.brandl | 2009-05-08 14:17:34 +0200 (Fr, 08 Mai 2009) | 1 line

  Fix name.
........
  r72661 | georg.brandl | 2009-05-15 10:03:03 +0200 (Fr, 15 Mai 2009) | 1 line

  Fix example output for doctest-like demos.
........
  r72675 | georg.brandl | 2009-05-16 13:13:21 +0200 (Sa, 16 Mai 2009) | 1 line

  #6034: clarify __reversed__ doc.
........
  r72676 | georg.brandl | 2009-05-16 13:14:46 +0200 (Sa, 16 Mai 2009) | 1 line

  #6025: fix signature of parse().
........
  r72677 | georg.brandl | 2009-05-16 13:18:55 +0200 (Sa, 16 Mai 2009) | 1 line

  #6009: undocument default argument of Option as deprecated.
........
  r72678 | georg.brandl | 2009-05-16 13:21:29 +0200 (Sa, 16 Mai 2009) | 1 line

  #2856: document 2.x os.listdir() behavior for undecodable filenames.
........
  r72679 | georg.brandl | 2009-05-16 13:24:41 +0200 (Sa, 16 Mai 2009) | 1 line

  Fix about and bugs pages to match real workflow.
........
  r72703 | georg.brandl | 2009-05-17 10:10:27 +0200 (So, 17 Mai 2009) | 1 line

  part of #4144: fix exception message in console session.
........
  r72708 | georg.brandl | 2009-05-17 10:24:29 +0200 (So, 17 Mai 2009) | 1 line

  #6017: better document behavior of dictiterators when the dict is changed.
........
  r72710 | georg.brandl | 2009-05-17 10:36:04 +0200 (So, 17 Mai 2009) | 1 line

  #5942: Copy over flag table from dbm.rst which is clearer.
........
  r72712 | georg.brandl | 2009-05-17 10:55:00 +0200 (So, 17 Mai 2009) | 1 line

  #5935: mention that BROWSER is looked for in PATH.
........
  r72801 | georg.brandl | 2009-05-20 20:31:14 +0200 (Mi, 20 Mai 2009) | 1 line

  #6055: refer to "sqlite3" consistently.
........
  r72802 | georg.brandl | 2009-05-20 20:35:27 +0200 (Mi, 20 Mai 2009) | 1 line

  #6051: refer to email examples for better way to construct email messages.
........
  r72820 | georg.brandl | 2009-05-22 09:23:32 +0200 (Fr, 22 Mai 2009) | 1 line

  Use raise X(y).
........
  r72822 | georg.brandl | 2009-05-22 11:33:25 +0200 (Fr, 22 Mai 2009) | 1 line

  #6084: fix example.
........
  r72824 | georg.brandl | 2009-05-22 11:43:17 +0200 (Fr, 22 Mai 2009) | 1 line

  Fix references to file-related functions and methods (os.* vs file.*).
........
  r72826 | georg.brandl | 2009-05-22 11:49:42 +0200 (Fr, 22 Mai 2009) | 1 line

  Fix confusing wording.
........
  r72827 | georg.brandl | 2009-05-22 11:50:30 +0200 (Fr, 22 Mai 2009) | 1 line

  s/use/call/
........
  r72828 | georg.brandl | 2009-05-22 11:58:48 +0200 (Fr, 22 Mai 2009) | 1 line

  Correction in softspace behavior description.
........
  r72830 | georg.brandl | 2009-05-22 12:40:00 +0200 (Fr, 22 Mai 2009) | 1 line

  #6086: fix spelling and use a better exception to catch.
........
2009-05-26 09:04:23 +00:00
Collin Winter e9a6514767 Merged revisions 72930 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r72930 | collin.winter | 2009-05-25 21:12:39 -0700 (Mon, 25 May 2009) | 1 line

  Issue 5794: fix cPickle's unpickling of recursive tuples.
........
2009-05-26 05:37:22 +00:00