Commit Graph

41717 Commits

Author SHA1 Message Date
Mark Dickinson fb681f701d 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:25:51 +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
Lars Gustäbel 07361c19a7 Blocked revisions 76443 via svnmerge
........
  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 18:56:32 +00:00
Jesse Noller de27e227ac 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:23:46 +00:00
Benjamin Peterson fde6d3349e 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:19:48 +00:00
Benjamin Peterson 2c8f859601 Merged revisions 76420 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r76420 | benjamin.peterson | 2009-11-19 17:19:29 -0600 (Thu, 19 Nov 2009) | 1 line

  spelling
........
2009-11-19 23:25:14 +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
Mark Dickinson aa4af333ec Blocked revisions 76411 via svnmerge
........
  r76411 | mark.dickinson | 2009-11-19 18:41:49 +0000 (Thu, 19 Nov 2009) | 1 line

  Misc/NEWS entries for issue 7117.
........
2009-11-19 18:42:18 +00:00
Ronald Oussoren 7fb01eaff7 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:43:53 +00:00
Ronald Oussoren 5511442f78 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 16:37:33 +00:00
Tarek Ziadé 2f0ff2acd3 Blocked revisions 76399 via svnmerge
........
  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:34:14 +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
Raymond Hettinger 1aef4440fb Fix docstrings for itertools combinatoric functions. 2009-11-19 01:26:23 +00:00
Lars Gustäbel 7cf2c80467 Merged revisions 76381 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r76381 | lars.gustaebel | 2009-11-18 21:24:54 +0100 (Wed, 18 Nov 2009) | 3 lines

  Issue #7341: Close the internal file object in the TarFile
  constructor in case of an error.
........
2009-11-18 21:09:35 +00:00
Mark Dickinson 8920d957d6 Blocked revisions 76379 via svnmerge
........
  r76379 | mark.dickinson | 2009-11-18 20:14:57 +0000 (Wed, 18 Nov 2009) | 1 line

  Enable short float repr!
........
2009-11-18 20:31:07 +00:00
Raymond Hettinger 01cf960d09 Issue 7263: Fix set.intersection() docstring. 2009-11-18 20:13:27 +00:00
Mark Dickinson febc12805a Blocked revisions 76373 via svnmerge
........
  r76373 | mark.dickinson | 2009-11-18 19:33:35 +0000 (Wed, 18 Nov 2009) | 5 lines

  Issue #7117, continued:  Change round implementation to use the correctly-rounded
  string <-> float conversions;  this makes sure that the result of the round
  operation is correctly rounded, and hence displays nicely using the new float
  repr.
........
2009-11-18 19:34:33 +00:00
Georg Brandl b9706da528 Merged revisions 76366 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r76366 | georg.brandl | 2009-11-18 18:52:23 +0000 (Mi, 18 Nov 2009) | 1 line

  Make separate section for deprecations in 2.6 whatsnew.
........
2009-11-18 18:54:21 +00:00
Georg Brandl ea41a85ffa Blocked revisions 76367 via svnmerge
........
  r76367 | georg.brandl | 2009-11-18 18:52:35 +0000 (Mi, 18 Nov 2009) | 1 line

  Make separate section for deprecations in 2.7 whatsnew.
........
2009-11-18 18:53:59 +00:00
Nick Coghlan 692fc92a13 Blocked revisions 76362 via svnmerge
........
  r76362 | nick.coghlan | 2009-11-18 21:27:53 +1000 (Wed, 18 Nov 2009) | 1 line

  Correctly escape arbitrary error message text in the runpy unit tests
........
2009-11-18 11:29:42 +00:00
Tarek Ziadé 4589944ebb Blocked revisions 76358 via svnmerge
........
  r76358 | tarek.ziade | 2009-11-18 09:46:56 +0100 (Wed, 18 Nov 2009) | 1 line

  #7293: distutils.test_msvc9compiler now uses a key that exists on any fresh windows install
........
2009-11-18 08:52:10 +00:00
Benjamin Peterson 0811a44cca Merged revisions 76350 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r76350 | benjamin.peterson | 2009-11-17 15:24:54 -0600 (Tue, 17 Nov 2009) | 1 line

  a better callable replacement
........
2009-11-17 21:33:08 +00:00
Mark Dickinson 577e370709 Blocked revisions 76333 via svnmerge
........
  r76333 | mark.dickinson | 2009-11-16 19:17:16 +0000 (Mon, 16 Nov 2009) | 1 line

  Silence another MSVC warning about unary minus.
........
2009-11-16 19:17:54 +00:00
Mark Dickinson b9e16245ac Merged revisions 76330 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r76330 | mark.dickinson | 2009-11-16 17:33:25 +0000 (Mon, 16 Nov 2009) | 1 line

  Silence MSVC warning about unary minus applied to unsigned type.
........
2009-11-16 17:34:11 +00:00
Mark Dickinson 21f6d3e9b0 Blocked revisions 76308 via svnmerge
........
  r76308 | mark.dickinson | 2009-11-15 16:18:58 +0000 (Sun, 15 Nov 2009) | 3 lines

  Issue #7228:  Add '%lld' and '%llu' support to PyFormat_FromString,
  PyFormat_FromStringV and PyErr_Format.
........
2009-11-16 16:57:52 +00:00
Nick Coghlan cc8b9cb9c2 Blocked revisions 76321-76322 via svnmerge
........
  r76321 | nick.coghlan | 2009-11-16 13:55:51 +1000 (Mon, 16 Nov 2009) | 1 line

  Account for another cache when hunting ref leaks
........
  r76322 | nick.coghlan | 2009-11-16 13:57:32 +1000 (Mon, 16 Nov 2009) | 1 line

  Allow for backslashes in file paths passed to the regex engine
........
2009-11-16 04:01:51 +00:00
Nick Coghlan 29d5bb19c8 Merged revisions 76312 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r76312 | nick.coghlan | 2009-11-16 08:36:47 +1000 (Mon, 16 Nov 2009) | 1 line

  Issue #7328: don't corrupt sys.path when running pydoc with the -m switch
........
2009-11-15 22:58:27 +00:00
Mark Dickinson c3363ba0a3 Blocked revisions 76300 via svnmerge
........
  r76300 | mark.dickinson | 2009-11-15 13:12:43 +0000 (Sun, 15 Nov 2009) | 3 lines

  Issue #5792:  Extend short float repr support to x86 platforms using suncc or icc.
  Many thanks Stefan Krah for help and OpenSolaris testing.
........
2009-11-15 13:48:02 +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
Senthil Kumaran 10c858ac4d Merged revisions 76288 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r76288 | senthil.kumaran | 2009-11-15 14:06:20 +0530 (Sun, 15 Nov 2009) | 3 lines

  Fix for Issue4683 - urllib2.HTTPDigestAuthHandler fails on third hostname?.
  Resolution: Reset the nonce value for each unique nonce (as per RFC 2617)
........
2009-11-15 08:39:10 +00:00
Nick Coghlan 38b5dd13eb Blocked revisions 76286 via svnmerge
........
  r76286 | nick.coghlan | 2009-11-15 17:30:34 +1000 (Sun, 15 Nov 2009) | 1 line

  Issue #6816: expose the zipfile and directory execution mechanism to Python code via the runpy module. Also consolidated some script execution functionality in the test harness into a helper module and removed some implementation details from the runpy module documentation.
........
2009-11-15 07:35:20 +00:00
Senthil Kumaran f0bb435484 Merged revisions 76282 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r76282 | senthil.kumaran | 2009-11-15 11:40:30 +0530 (Sun, 15 Nov 2009) | 3 lines

  Addition of some details in the code comments.
........
2009-11-15 06:14:36 +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
R. David Murray 384a4fc0e6 Merged revisions 76190 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r76190 | r.david.murray | 2009-11-10 13:58:02 -0500 (Tue, 10 Nov 2009) | 3 lines

  Update the FAQ entry that explains that assignments in the local scope
  shadow variables in the outer scope (issue 7290).
........
2009-11-14 22:08:02 +00:00
R. David Murray 12aaab01c7 Merged revisions 76265 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r76265 | r.david.murray | 2009-11-14 12:43:16 -0500 (Sat, 14 Nov 2009) | 3 lines

  Turn the bsddb replication startup timeout test into a
  warning, to improve buildbot stability.
........
2009-11-14 18:20:57 +00:00
R. David Murray 6c9d0b4a2a Blocked revisions 76260 via svnmerge
........
  r76260 | r.david.murray | 2009-11-14 10:18:22 -0500 (Sat, 14 Nov 2009) | 5 lines

  Issue #7312 (new feature): Add a -F flag to run the selected tests in
  a loop until a test fails.  Can be combined with -j.  Patch by Antoine
  Pitrou.
........
2009-11-14 16:21:12 +00:00
Benjamin Peterson af472026ff Merged revisions 76255 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r76255 | benjamin.peterson | 2009-11-13 17:11:54 -0600 (Fri, 13 Nov 2009) | 1 line

  use Sphinx 0.6.3
........
2009-11-13 23:14:55 +00:00
Antoine Pitrou eaaf66ca2b Merged revisions 76245 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r76245 | antoine.pitrou | 2009-11-13 23:31:18 +0100 (ven., 13 nov. 2009) | 6 lines

  Issue #7318: multiprocessing now uses a timeout when it fails to establish
  a connection with another process, rather than looping endlessly. The
  default timeout is 20 seconds, which should be amply sufficient for
  local connections.
........
2009-11-13 22:33:27 +00:00
Ezio Melotti 5a6f4218f0 fix highlight in the datetime example 2009-11-12 10:35:52 +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
R. David Murray 55669d04ad Merged revisions 76214 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r76214 | r.david.murray | 2009-11-11 13:07:27 -0500 (Wed, 11 Nov 2009) | 5 lines

  I got the relative magnitudes of the timeout increases reversed, so
  I'm bumping up the longer test to the 60 seconds I intended to make it.
  If this doesn't cure the intermittent buildbot timeouts, I'm going to
  turn that test into a warning rather than a failure.
........
2009-11-11 18:09:13 +00:00
Senthil Kumaran f25702a099 Merged revisions 76212 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r76212 | senthil.kumaran | 2009-11-11 22:52:35 +0530 (Wed, 11 Nov 2009) | 3 lines

  Fixing the NameError on Windows - issue1235
........
2009-11-11 17:24:53 +00:00
Senthil Kumaran 82759e4ab2 Merged revisions 76208 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r76208 | senthil.kumaran | 2009-11-11 07:04:44 +0530 (Wed, 11 Nov 2009) | 3 lines

  CGIHTTPRequestHandler.run_cgi() to use subprocess for Non Unix platforms. Fix
  based on Issue1235.
........
2009-11-11 04:07:09 +00:00
Mark Dickinson 11560a8b6b Blocked revisions 76176 via svnmerge
........
  r76176 | mark.dickinson | 2009-11-09 17:03:34 +0000 (Mon, 09 Nov 2009) | 7 lines

  Issue #7251: Break out round tests for large values into a separate
  test function, and skip that test on Linux/alpha systems with a broken
  system round function.

  This should turn the Debian/alpha buildbot green.
........
2009-11-09 20:00:39 +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
Eric Smith f4b581ed25 Merged revisions 76168 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r76168 | eric.smith | 2009-11-09 10:16:23 -0500 (Mon, 09 Nov 2009) | 1 line

  Issue 7294: Fixed URL in a comment.
........
2009-11-09 15:20:16 +00:00
R. David Murray 754d770ed3 Merged revisions 76163 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r76163 | r.david.murray | 2009-11-09 09:18:14 -0500 (Mon, 09 Nov 2009) | 2 lines

  Remove redundant sentence.
........
2009-11-09 14:20:12 +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