]> granicus.if.org Git - python/log
python
15 years agoKeep PyLong_AsLongAndOverflow documentation and implementation in sync
Mark Dickinson [Mon, 21 Dec 2009 12:37:06 +0000 (12:37 +0000)]
Keep PyLong_AsLongAndOverflow documentation and implementation in sync
between py3k and trunk;  merge new tests from trunk to py3k.
(See issue #7528.)

15 years agoBlocked revisions 76967-76968 via svnmerge
Mark Dickinson [Mon, 21 Dec 2009 12:18:09 +0000 (12:18 +0000)]
Blocked revisions 76967-76968 via svnmerge

........
  r76967 | mark.dickinson | 2009-12-21 11:31:54 +0000 (Mon, 21 Dec 2009) | 1 line

  Fix reference counts for test_long_and_overflow.
........
  r76968 | mark.dickinson | 2009-12-21 12:15:48 +0000 (Mon, 21 Dec 2009) | 1 line

  Additional edge-case tests for test_long_and_overflow.
........

15 years agoBlocked revisions 76963 via svnmerge
Mark Dickinson [Mon, 21 Dec 2009 11:22:47 +0000 (11:22 +0000)]
Blocked revisions 76963 via svnmerge

........
  r76963 | mark.dickinson | 2009-12-21 11:21:25 +0000 (Mon, 21 Dec 2009) | 3 lines

  Issue #7528:  Backport PyLong_AsLongAndOverflow from py3k to trunk.
  Thanks Case Van Horsen for the patch.
........

15 years agoMerged revisions 76956 via svnmerge from
Tarek Ziadé [Mon, 21 Dec 2009 01:49:00 +0000 (01:49 +0000)]
Merged revisions 76956 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r76956 | tarek.ziade | 2009-12-21 02:22:46 +0100 (Mon, 21 Dec 2009) | 1 line

  massive import cleaning in Distutils
........

15 years agoMerged revisions 76952 via svnmerge from
Tarek Ziadé [Mon, 21 Dec 2009 00:02:20 +0000 (00:02 +0000)]
Merged revisions 76952 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r76952 | tarek.ziade | 2009-12-21 00:23:34 +0100 (Mon, 21 Dec 2009) | 1 line

  Fixed #7552: fixed distutils.command.upload failure on very long passwords
........

15 years agoMerged revisions 76948 via svnmerge from
Mark Dickinson [Sun, 20 Dec 2009 20:37:56 +0000 (20:37 +0000)]
Merged revisions 76948 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r76948 | mark.dickinson | 2009-12-20 20:34:44 +0000 (Sun, 20 Dec 2009) | 3 lines

  Issue #7554:  Various fixups in test_cmath.py:  remove code duplication,
  use new-style formatting.  Thanks Florent Xicluna for the patch.
........

15 years agoBlocked revisions 76945 via svnmerge
Mark Dickinson [Sun, 20 Dec 2009 20:24:18 +0000 (20:24 +0000)]
Blocked revisions 76945 via svnmerge

........
  r76945 | mark.dickinson | 2009-12-20 20:23:01 +0000 (Sun, 20 Dec 2009) | 1 line

  Silence -3 warnings.  Thanks Florent Xicluna.
........

15 years agoMerged revisions 76939,76941 via svnmerge from
Mark Dickinson [Sun, 20 Dec 2009 19:56:09 +0000 (19:56 +0000)]
Merged revisions 76939,76941 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r76939 | mark.dickinson | 2009-12-20 19:45:37 +0000 (Sun, 20 Dec 2009) | 1 line

  Issue #7554:  Fix incorrect usage of rAssertAlmostEqual.  Thanks Florent Xicluna.
........
  r76941 | mark.dickinson | 2009-12-20 19:52:36 +0000 (Sun, 20 Dec 2009) | 1 line

  Fix for consistency with py3k keyword-only version of assertAlmostEqual
........

15 years agoMerged revisions 76934-76935 via svnmerge from
R. David Murray [Sun, 20 Dec 2009 17:28:31 +0000 (17:28 +0000)]
Merged revisions 76934-76935 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r76934 | r.david.murray | 2009-12-20 11:24:46 -0500 (Sun, 20 Dec 2009) | 2 lines

  Fix comment typo.
........
  r76935 | r.david.murray | 2009-12-20 11:46:06 -0500 (Sun, 20 Dec 2009) | 10 lines

  Issue #7376: When called with no arguments doctest was running a
  self-test.  Because of a change to the way tracebacks are printed,
  this self-test was failing.  The test is run (and passes) during normal
  regression testing.  So instead of running the failing self-test this
  patch makes doctest emit a usage message.  This is better behavior anyway
  since passing in arguments is the real reason to run doctest as a command.

  Bug discovery and initial patch by Florent Xicluna.
........

15 years agoMerged revisions 76930 via svnmerge from
Mark Dickinson [Sun, 20 Dec 2009 16:03:30 +0000 (16:03 +0000)]
Merged revisions 76930 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r76930 | mark.dickinson | 2009-12-20 15:57:56 +0000 (Sun, 20 Dec 2009) | 1 line

  Add missing tests for PyArg_Parse* with format 'h'
........

15 years agoBlocked revisions 76927 via svnmerge
Benjamin Peterson [Sun, 20 Dec 2009 15:24:32 +0000 (15:24 +0000)]
Blocked revisions 76927 via svnmerge

........
  r76927 | benjamin.peterson | 2009-12-20 09:23:22 -0600 (Sun, 20 Dec 2009) | 1 line

  builtin-ins -> builtins
........

15 years agoRecorded merge of revisions 76925 via svnmerge from
Georg Brandl [Sun, 20 Dec 2009 14:38:23 +0000 (14:38 +0000)]
Recorded merge of revisions 76925 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r76925 | georg.brandl | 2009-12-20 15:33:20 +0100 (So, 20 Dez 2009) | 1 line

  #7381: subprocess documentation and library docstring consistency fixes.
........

15 years ago#7493: more review fixes.
Georg Brandl [Sun, 20 Dec 2009 14:24:06 +0000 (14:24 +0000)]
#7493: more review fixes.

15 years ago#7495: more review fixes.
Georg Brandl [Sun, 20 Dec 2009 14:21:27 +0000 (14:21 +0000)]
#7495: more review fixes.

15 years agoBlocked revisions 76920 via svnmerge
Georg Brandl [Sun, 20 Dec 2009 14:20:59 +0000 (14:20 +0000)]
Blocked revisions 76920 via svnmerge

........
  r76920 | georg.brandl | 2009-12-20 15:20:16 +0100 (So, 20 Dez 2009) | 1 line

  #7495: backport Programming FAQ review to trunk.
........

15 years agoMerged revisions 76916 via svnmerge from
Mark Dickinson [Sun, 20 Dec 2009 14:07:47 +0000 (14:07 +0000)]
Merged revisions 76916 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r76916 | mark.dickinson | 2009-12-20 13:58:18 +0000 (Sun, 20 Dec 2009) | 3 lines

  math.factorial depends on PyLong_AsLong correctly converting floats; rewrite
  it to do the conversion explicitly instead.  See issue #7550.
........

15 years agoFixed capitalization and markup; added imports in the example
Ezio Melotti [Sun, 20 Dec 2009 12:24:57 +0000 (12:24 +0000)]
Fixed capitalization and markup; added imports in the example

15 years agoDocument the headers parameter for set_tunnel.
Senthil Kumaran [Sun, 20 Dec 2009 07:31:21 +0000 (07:31 +0000)]
Document the headers parameter for set_tunnel.

15 years agoMerged revisions 76908 via svnmerge from
Senthil Kumaran [Sun, 20 Dec 2009 07:10:31 +0000 (07:10 +0000)]
Merged revisions 76908 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r76908 | senthil.kumaran | 2009-12-20 11:35:13 +0530 (Sun, 20 Dec 2009) | 4 lines

  Fix for issue 7291 - urllib2 cannot handle https with proxy requiring auth
  Refactored HTTPHandler tests and added testcase for proxy authorization.
........

15 years agoMerged revisions 76904 via svnmerge from
Ezio Melotti [Sat, 19 Dec 2009 23:26:38 +0000 (23:26 +0000)]
Merged revisions 76904 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r76904 | ezio.melotti | 2009-12-20 00:41:49 +0200 (Sun, 20 Dec 2009) | 1 line

  #7388: "python".capitalize() in the Doc
........

15 years agoFix typo (reported by terlop on IRC)
Mark Dickinson [Sat, 19 Dec 2009 21:19:35 +0000 (21:19 +0000)]
Fix typo (reported by terlop on IRC)

15 years agoMerged revisions 76896,76898 via svnmerge from
Antoine Pitrou [Sat, 19 Dec 2009 21:08:31 +0000 (21:08 +0000)]
Merged revisions 76896,76898 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r76896 | antoine.pitrou | 2009-12-19 22:01:10 +0100 (sam., 19 déc. 2009) | 3 lines

  Issue #7545: improve documentation of the `buffering` argument in io.open().
........
  r76898 | antoine.pitrou | 2009-12-19 22:06:36 +0100 (sam., 19 déc. 2009) | 3 lines

  Remove superfetatory paragraph (left there by mistake).
........

15 years ago#7380: Fix some str/bytearray/bytes issues in uuid docs and implementation.
Georg Brandl [Sat, 19 Dec 2009 18:23:28 +0000 (18:23 +0000)]
#7380: Fix some str/bytearray/bytes issues in uuid docs and implementation.

15 years agoIssue #7508: remove obsolete documentation about built-in file objects.
Antoine Pitrou [Sat, 19 Dec 2009 18:22:15 +0000 (18:22 +0000)]
Issue #7508: remove obsolete documentation about built-in file objects.

15 years ago#7500: add "Python 3 review needed" comments and fix a few obvious errors.
Georg Brandl [Sat, 19 Dec 2009 17:59:59 +0000 (17:59 +0000)]
#7500: add "Python 3 review needed" comments and fix a few obvious errors.

15 years ago#7499: Review of Library FAQ by Florent Xicluna.
Georg Brandl [Sat, 19 Dec 2009 17:57:51 +0000 (17:57 +0000)]
#7499: Review of Library FAQ by Florent Xicluna.

15 years ago#7495: Review of Programming FAQ by Florent Xicluna.
Georg Brandl [Sat, 19 Dec 2009 17:51:41 +0000 (17:51 +0000)]
#7495: Review of Programming FAQ by Florent Xicluna.

15 years agoRecorded merge of revisions 76886 via svnmerge from
Georg Brandl [Sat, 19 Dec 2009 17:46:40 +0000 (17:46 +0000)]
Recorded merge of revisions 76886 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r76886 | georg.brandl | 2009-12-19 18:43:33 +0100 (Sa, 19 Dez 2009) | 1 line

  #7493: review of Design FAQ by Florent Xicluna.
........

15 years ago#7521: remove PyEval_GetRestricted() from the docs.
Georg Brandl [Sat, 19 Dec 2009 17:36:20 +0000 (17:36 +0000)]
#7521: remove PyEval_GetRestricted() from the docs.

15 years agoMerged revisions 76883 via svnmerge from
Georg Brandl [Sat, 19 Dec 2009 17:35:49 +0000 (17:35 +0000)]
Merged revisions 76883 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r76883 | georg.brandl | 2009-12-19 18:34:32 +0100 (Sa, 19 Dez 2009) | 1 line

  #7521: remove Py_GetBuildNumber(), which was removed in favor of Py_GetBuildInfo().
........

15 years agoMerged revisions 76878 via svnmerge from
Mark Dickinson [Sat, 19 Dec 2009 11:20:49 +0000 (11:20 +0000)]
Merged revisions 76878 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r76878 | mark.dickinson | 2009-12-19 11:07:23 +0000 (Sat, 19 Dec 2009) | 3 lines

  Issue #3366: Add error function and complementary error function to
  math module.
........

15 years agoMerged revisions 76804 via svnmerge from
Ezio Melotti [Fri, 18 Dec 2009 15:35:27 +0000 (15:35 +0000)]
Merged revisions 76804 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r76804 | ezio.melotti | 2009-12-13 20:54:53 +0200 (Sun, 13 Dec 2009) | 1 line

  #7342: make sure that the datetime object in test_fraction always has a number of microseconds != 0
........

15 years agoMerged revisions 76865 via svnmerge from
Mark Dickinson [Thu, 17 Dec 2009 08:35:56 +0000 (08:35 +0000)]
Merged revisions 76865 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r76865 | mark.dickinson | 2009-12-17 08:33:56 +0000 (Thu, 17 Dec 2009) | 1 line

  Add _math.h to math module dependencies in setup.py.
........

15 years agoMerged revisions 76861 via svnmerge from
Mark Dickinson [Wed, 16 Dec 2009 20:23:42 +0000 (20:23 +0000)]
Merged revisions 76861 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r76861 | mark.dickinson | 2009-12-16 20:13:40 +0000 (Wed, 16 Dec 2009) | 3 lines

  Issue #3366: Add expm1 function to math module.  Thanks Eric Smith for
  testing on Windows.
........

15 years agoMerged revisions 76856 via svnmerge from
R. David Murray [Wed, 16 Dec 2009 15:19:27 +0000 (15:19 +0000)]
Merged revisions 76856 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r76856 | r.david.murray | 2009-12-16 06:49:46 -0500 (Wed, 16 Dec 2009) | 2 lines

  Issue #7396: fix -s, which was broken by the -j enhancement.
........

15 years agoMerged revisions 74558 via svnmerge from
Kristján Valur Jónsson [Wed, 16 Dec 2009 10:50:44 +0000 (10:50 +0000)]
Merged revisions 74558 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r74558 | kristjan.jonsson | 2009-08-27 23:13:18 +0000 (fim., 27 ÃŸg·. 2009) | 2 lines

  Issue 6654
  Allow the XML-RPC server to use the HTTP request path when dispatching.  Added a MultiPathXMLRPCServer class that uses the feature, plus unit tests.
........

15 years agoBlocked revisions 76849 via svnmerge
Tarek Ziadé [Tue, 15 Dec 2009 06:30:35 +0000 (06:30 +0000)]
Blocked revisions 76849 via svnmerge

........
  r76849 | tarek.ziade | 2009-12-15 07:29:19 +0100 (Tue, 15 Dec 2009) | 1 line

  cleaned up the module (PEP 8 + old fashion test removal)
........

15 years agoFix typo in NEWS item for Issue 7498.
R. David Murray [Mon, 14 Dec 2009 23:06:11 +0000 (23:06 +0000)]
Fix typo in NEWS item for Issue 7498.

15 years agoMerged revisions 76840 via svnmerge from
R. David Murray [Mon, 14 Dec 2009 22:45:15 +0000 (22:45 +0000)]
Merged revisions 76840 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r76840 | r.david.murray | 2009-12-14 16:57:39 -0500 (Mon, 14 Dec 2009) | 3 lines

  Issue #7498: make test_multiprocessing use test_support.find_unused_port
  instead of a hard coded port number in test_rapid_restart.
........

15 years agoIssue #4757: `zlib.compress` and other methods in the zlib module now
Antoine Pitrou [Mon, 14 Dec 2009 18:00:06 +0000 (18:00 +0000)]
Issue #4757: `zlib.compress` and other methods in the zlib module now
raise a TypeError when given an `str` object (rather than a `bytes`-like
object).  Patch by Victor Stinner and Florent Xicluna.

15 years agoMerged revisions 76819,76830 via svnmerge from
R. David Murray [Mon, 14 Dec 2009 17:27:08 +0000 (17:27 +0000)]
Merged revisions 76819,76830 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r76819 | benjamin.peterson | 2009-12-13 16:15:31 -0500 (Sun, 13 Dec 2009) | 1 line

  avoid having to update this statement all the time
........
  r76830 | r.david.murray | 2009-12-13 21:50:32 -0500 (Sun, 13 Dec 2009) | 2 lines

  Clarify phrasing that explains that there are currently two branches.
........

15 years agoBlocked revisions 76831 via svnmerge
R. David Murray [Mon, 14 Dec 2009 17:11:00 +0000 (17:11 +0000)]
Blocked revisions 76831 via svnmerge

........
  r76831 | r.david.murray | 2009-12-14 11:28:26 -0500 (Mon, 14 Dec 2009) | 6 lines

  Issue #1680159: unicode coercion during an 'in' operation was masking
  any errors that might occur during coercion of the left operand and
  turning them into a TypeError with a message text that was confusing in
  the given context.  This patch lets any errors through, as was already
  done during coercion of the right hand side.
........

15 years agoMerged revisions 76826 via svnmerge from
Tarek Ziadé [Sun, 13 Dec 2009 23:26:18 +0000 (23:26 +0000)]
Merged revisions 76826 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r76826 | tarek.ziade | 2009-12-14 00:24:13 +0100 (Mon, 14 Dec 2009) | 1 line

  reorganized the distutils doc a bit : the MANIFEST.in template system has its own section now. This is easier to find and follow
........

15 years agoMerged revisions 76822,76824 via svnmerge from
Benjamin Peterson [Sun, 13 Dec 2009 21:30:54 +0000 (21:30 +0000)]
Merged revisions 76822,76824 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r76822 | benjamin.peterson | 2009-12-13 15:21:43 -0600 (Sun, 13 Dec 2009) | 1 line

  initialize to NULL
........
  r76824 | benjamin.peterson | 2009-12-13 15:27:53 -0600 (Sun, 13 Dec 2009) | 1 line

  add a test of loading the datetime capi
........

15 years agoFix a minor grammatical error.
Brett Cannon [Sun, 13 Dec 2009 21:25:28 +0000 (21:25 +0000)]
Fix a minor grammatical error.

15 years agoMake the example paths in Mac/README no longer directly refer to 2.6.
Brett Cannon [Sun, 13 Dec 2009 21:15:41 +0000 (21:15 +0000)]
Make the example paths in Mac/README no longer directly refer to 2.6.

15 years agoMerged revisions 76813 via svnmerge from
Mark Dickinson [Sun, 13 Dec 2009 21:10:57 +0000 (21:10 +0000)]
Merged revisions 76813 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r76813 | mark.dickinson | 2009-12-13 21:06:06 +0000 (Sun, 13 Dec 2009) | 3 lines

  Issue #7492: Autoconf tests were leaving semaphore files behind.  Add
  sem_unlink calls to delete those semaphore files.
........

15 years agoremove references to cPickle
Benjamin Peterson [Sun, 13 Dec 2009 21:04:16 +0000 (21:04 +0000)]
remove references to cPickle

15 years agoMake sure that test_capsule always returns NULL on error; this may
Mark Dickinson [Sun, 13 Dec 2009 20:03:21 +0000 (20:03 +0000)]
Make sure that test_capsule always returns NULL on error; this may
help diagnose the sporadic test_capi failures on Solaris.

15 years agoMerged revisions 76807 via svnmerge from
Benjamin Peterson [Sun, 13 Dec 2009 19:28:09 +0000 (19:28 +0000)]
Merged revisions 76807 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r76807 | benjamin.peterson | 2009-12-13 13:27:02 -0600 (Sun, 13 Dec 2009) | 1 line

  remove unused variable
........

15 years agoMerged revisions 76805 via svnmerge from
Benjamin Peterson [Sun, 13 Dec 2009 19:25:34 +0000 (19:25 +0000)]
Merged revisions 76805 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r76805 | benjamin.peterson | 2009-12-13 13:19:07 -0600 (Sun, 13 Dec 2009) | 7 lines

  accept None as the same as having passed no argument in file types #7349

  This is for consistency with imitation file objects like StringIO and BytesIO.

  This commit also adds a few tests, where they were lacking for concerned
  methods.
........

15 years agoBlocked revisions 76798-76799 via svnmerge
Benjamin Peterson [Sun, 13 Dec 2009 17:32:59 +0000 (17:32 +0000)]
Blocked revisions 76798-76799 via svnmerge

........
  r76798 | benjamin.peterson | 2009-12-13 11:29:16 -0600 (Sun, 13 Dec 2009) | 1 line

  make StringIO like other file objects in that readline(-1) has no effect #7348
........
  r76799 | benjamin.peterson | 2009-12-13 11:31:31 -0600 (Sun, 13 Dec 2009) | 1 line

  add NEWS note
........

15 years agoBlocked revisions 76738 via svnmerge
Benjamin Peterson [Sun, 13 Dec 2009 16:42:09 +0000 (16:42 +0000)]
Blocked revisions 76738 via svnmerge

........
  r76738 | ronald.oussoren | 2009-12-10 04:27:09 -0600 (Thu, 10 Dec 2009) | 6 lines

  Fix an issue with the detection of a non-existing SDK
  on OSX. Without this patch it wasn't possible after all
  to compile extensions on OSX 10.6 with the binary
  installer unless the user had installed the (non-default)
  10.4u SDK.
........

15 years agoBlocked revisions 76794 via svnmerge
Benjamin Peterson [Sun, 13 Dec 2009 16:39:38 +0000 (16:39 +0000)]
Blocked revisions 76794 via svnmerge

........
  r76794 | benjamin.peterson | 2009-12-13 10:36:53 -0600 (Sun, 13 Dec 2009) | 2 lines

  fix the ignoring of __cmp__ method on metaclasses #7491
........

15 years agoBlocked revisions 76791 via svnmerge
Antoine Pitrou [Sun, 13 Dec 2009 16:19:46 +0000 (16:19 +0000)]
Blocked revisions 76791 via svnmerge

........
  r76791 | antoine.pitrou | 2009-12-13 17:18:14 +0100 (dim., 13 déc. 2009) | 5 lines

  Add NEWS entry as per RDM's suggestion (the bug was actually present
  in 2.7 alpha 1)
........

15 years agoupdate 3.x versions
Benjamin Peterson [Sun, 13 Dec 2009 14:26:42 +0000 (14:26 +0000)]
update 3.x versions

15 years agofix markup
Benjamin Peterson [Sun, 13 Dec 2009 14:23:30 +0000 (14:23 +0000)]
fix markup

15 years agoMerged revisions 76785 via svnmerge from
Benjamin Peterson [Sun, 13 Dec 2009 14:21:46 +0000 (14:21 +0000)]
Merged revisions 76785 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r76785 | benjamin.peterson | 2009-12-13 08:18:08 -0600 (Sun, 13 Dec 2009) | 1 line

  add 2.6.x point releases
........

15 years agoMerged revisions 76780 via svnmerge from
Lars Gustäbel [Sun, 13 Dec 2009 11:42:29 +0000 (11:42 +0000)]
Merged revisions 76780 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r76780 | lars.gustaebel | 2009-12-13 12:32:27 +0100 (Sun, 13 Dec 2009) | 21 lines

  Issue #7357: No longer suppress fatal extraction errors by
  default.

  TarFile's errorlevel argument controls how errors are
  handled that occur during extraction. There are three
  possible levels 0, 1 and 2. If errorlevel is set to 1 or 2
  fatal errors (e.g. a full filesystem) are raised as
  exceptions. If it is set to 0, which is the default value,
  extraction errors are suppressed, and error messages are
  written to the debug log instead. But, if the debug log is
  not activated, which is the default as well, all these
  errors go unnoticed.

  The original intention was to imitate GNU tar which tries
  to extract as many members as possible instead of stopping
  on the first error. It turns out that this is no good
  default behaviour for a tar library. This patch simply
  changes the default value for the errorlevel argument from
  0 to 1, so that fatal extraction errors are raised as
  EnvironmentError exceptions.
........

15 years agoMerged revisions 76052,76522,76591,76689,76697,76733 via svnmerge from
Benjamin Peterson [Sun, 13 Dec 2009 02:10:36 +0000 (02:10 +0000)]
Merged revisions 76052,76522,76591,76689,76697,76733 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r76052 | gregory.p.smith | 2009-11-01 20:02:38 -0600 (Sun, 01 Nov 2009) | 5 lines

  see issue1006238, this merges in the following patch to ease cross
  compiling the printf %zd check.

   http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/python/files/python-2.5-cross-printf.patch?rev=1.1&view=markup
........
  r76522 | barry.warsaw | 2009-11-25 12:38:32 -0600 (Wed, 25 Nov 2009) | 2 lines

  Add mktime_tz to __all__.  It's documented as being available in email.utils.
........
  r76591 | benjamin.peterson | 2009-11-29 16:26:26 -0600 (Sun, 29 Nov 2009) | 4 lines

  now that deepcopy can handle instance methods, this hack can be removed #7409

  Thanks Robert Collins
........
  r76689 | benjamin.peterson | 2009-12-06 11:37:48 -0600 (Sun, 06 Dec 2009) | 1 line

  rewrite translate_newlines for clarity
........
  r76697 | benjamin.peterson | 2009-12-06 15:24:30 -0600 (Sun, 06 Dec 2009) | 2 lines

  fix test_parser from tokenizer tweak
........
  r76733 | benjamin.peterson | 2009-12-09 21:37:59 -0600 (Wed, 09 Dec 2009) | 1 line

  substitute PyDict_Check() for PyObject_IsInstance
........

15 years agoregenerate Python-ast.c
Benjamin Peterson [Sun, 13 Dec 2009 01:24:58 +0000 (01:24 +0000)]
regenerate Python-ast.c

15 years agoMerged revisions 76534,76538,76628,76701,76774 via svnmerge from
Benjamin Peterson [Sun, 13 Dec 2009 01:23:39 +0000 (01:23 +0000)]
Merged revisions 76534,76538,76628,76701,76774 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r76534 | martin.v.loewis | 2009-11-26 02:42:05 -0600 (Thu, 26 Nov 2009) | 2 lines

  Fix typo.
........
  r76538 | georg.brandl | 2009-11-26 14:48:25 -0600 (Thu, 26 Nov 2009) | 1 line

  #7400: typo.
........
  r76628 | andrew.kuchling | 2009-12-02 08:27:11 -0600 (Wed, 02 Dec 2009) | 1 line

  Markup fixes
........
  r76701 | andrew.kuchling | 2009-12-07 20:37:05 -0600 (Mon, 07 Dec 2009) | 1 line

  Typo fix; grammar fix
........
  r76774 | benjamin.peterson | 2009-12-12 18:54:15 -0600 (Sat, 12 Dec 2009) | 1 line

  account for PyObject_IsInstance's new ability to fail
........

15 years agoBlocked revisions 76602,76690-76691,76736-76737,76754 via svnmerge
Benjamin Peterson [Sun, 13 Dec 2009 00:38:59 +0000 (00:38 +0000)]
Blocked revisions 76602,76690-76691,76736-76737,76754 via svnmerge

........
  r76602 | raymond.hettinger | 2009-11-30 15:13:52 -0600 (Mon, 30 Nov 2009) | 1 line

  Handle step values other than one.
........
  r76690 | vinay.sajip | 2009-12-06 11:57:11 -0600 (Sun, 06 Dec 2009) | 1 line

  logging: Added optional 'secure' parameter to SMTPHandler.
........
  r76691 | vinay.sajip | 2009-12-06 12:05:04 -0600 (Sun, 06 Dec 2009) | 1 line

  logging: Improved support for SMTP over TLS.
........
  r76736 | raymond.hettinger | 2009-12-10 00:00:33 -0600 (Thu, 10 Dec 2009) | 1 line

  Fix variants of deque.extend:  d.extend(d)   d+=d  d.extendleft(d)
........
  r76737 | raymond.hettinger | 2009-12-10 00:42:54 -0600 (Thu, 10 Dec 2009) | 1 line

  Add a reverse() method to collections.deque().
........
  r76754 | vinay.sajip | 2009-12-11 03:16:01 -0600 (Fri, 11 Dec 2009) | 1 line

  Issue #7470: logging: fix bug in Unicode encoding fallback.
........

15 years agodeath to exec statement
Benjamin Peterson [Sun, 13 Dec 2009 00:32:14 +0000 (00:32 +0000)]
death to exec statement

15 years agoClarify importlib.abc.PyPycLoader.write_bytecode().
Brett Cannon [Sat, 12 Dec 2009 22:35:59 +0000 (22:35 +0000)]
Clarify importlib.abc.PyPycLoader.write_bytecode().

15 years agoMerged revisions 76763 via svnmerge from
Antoine Pitrou [Sat, 12 Dec 2009 19:18:27 +0000 (19:18 +0000)]
Merged revisions 76763 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r76763 | antoine.pitrou | 2009-12-12 20:13:08 +0100 (sam., 12 déc. 2009) | 7 lines

  Issue #7466: segmentation fault when the garbage collector is called
  in the middle of populating a tuple.  Patch by Florent Xicluna.

  (note: no NEWS entry for trunk since the bug was introduced in 2.7/3.1)
........

15 years agoMerged revisions 76755 via svnmerge from
Mark Dickinson [Fri, 11 Dec 2009 20:17:17 +0000 (20:17 +0000)]
Merged revisions 76755 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r76755 | mark.dickinson | 2009-12-11 17:29:33 +0000 (Fri, 11 Dec 2009) | 2 lines

  Issue #3366:  Add lgamma function to math module.
........

15 years agoRestore the svn property changes in r76754
Mark Dickinson [Fri, 11 Dec 2009 20:09:24 +0000 (20:09 +0000)]
Restore the svn property changes in r76754

15 years agoIssue #7470: logging: fix bug in Unicode encoding fallback.
Vinay Sajip [Fri, 11 Dec 2009 09:16:01 +0000 (09:16 +0000)]
Issue #7470: logging: fix bug in Unicode encoding fallback.

15 years agoMerged revisions 76750 via svnmerge from
Tarek Ziadé [Thu, 10 Dec 2009 19:37:05 +0000 (19:37 +0000)]
Merged revisions 76750 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r76750 | tarek.ziade | 2009-12-10 20:29:53 +0100 (Thu, 10 Dec 2009) | 1 line

  using an existing file to avoid dealing with a sleep to test file ages
........

15 years agoMerged revisions 76746 via svnmerge from
Tarek Ziadé [Thu, 10 Dec 2009 15:35:35 +0000 (15:35 +0000)]
Merged revisions 76746 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r76746 | tarek.ziade | 2009-12-10 16:29:03 +0100 (Thu, 10 Dec 2009) | 1 line

  added test coverage for distutils.dep_util, and cleaned up the module
........

15 years agoMerged revisions 76740 via svnmerge from
Mark Dickinson [Thu, 10 Dec 2009 10:39:08 +0000 (10:39 +0000)]
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.
........

15 years agoFix variants of deque.extend: d.extend(d) d+=d d.extendleft(d)
Raymond Hettinger [Thu, 10 Dec 2009 03:03:02 +0000 (03:03 +0000)]
Fix variants of deque.extend:  d.extend(d)   d+=d  d.extendleft(d)

15 years agoremove magic number bumping from the 2.x -U option #7459
Benjamin Peterson [Thu, 10 Dec 2009 02:09:08 +0000 (02:09 +0000)]
remove magic number bumping from the 2.x -U option #7459

15 years agoMerged revisions 76726-76727 via svnmerge from
R. David Murray [Thu, 10 Dec 2009 02:08:06 +0000 (02:08 +0000)]
Merged revisions 76726-76727 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

The merge adds a test with an invalid rather than a missing line end, since
the py3K code passed the original issue 5949 test.  New test also by Scott
Dial.

........
  r76726 | r.david.murray | 2009-12-09 10:15:31 -0500 (Wed, 09 Dec 2009) | 6 lines

  Issue 5949: fixed IMAP4_SSL hang when the IMAP server response is
  missing proper end-of-line termination.  Patch and tests by
  Scott Dial.  The new tests include a test harness which will
  make it easier to add additional tests.
........
  r76727 | r.david.murray | 2009-12-09 11:41:39 -0500 (Wed, 09 Dec 2009) | 2 lines

  Skip new imaplib SSL tests if ssl is not available.
........

15 years agoAdd a reverse() method to collections.deque().
Raymond Hettinger [Thu, 10 Dec 2009 00:47:21 +0000 (00:47 +0000)]
Add a reverse() method to collections.deque().

15 years agoWording clarification.
Brett Cannon [Thu, 10 Dec 2009 00:24:21 +0000 (00:24 +0000)]
Wording clarification.

15 years agoClarify the intention of raising ImportError for importlib.abc.PyLoader.(source|bytec...
Brett Cannon [Wed, 9 Dec 2009 01:48:31 +0000 (01:48 +0000)]
Clarify the intention of raising ImportError for importlib.abc.PyLoader.(source|bytecode)_path.

15 years agoIssue #7461: objects returned by os.popen() should support the context manager protocol
Antoine Pitrou [Wed, 9 Dec 2009 00:01:27 +0000 (00:01 +0000)]
Issue #7461: objects returned by os.popen() should support the context manager protocol

15 years agoMerged revisions 76720 via svnmerge from
Antoine Pitrou [Tue, 8 Dec 2009 19:53:23 +0000 (19:53 +0000)]
Merged revisions 76720 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r76720 | antoine.pitrou | 2009-12-08 20:46:38 +0100 (mar., 08 déc. 2009) | 3 lines

  Make test_pipes a little bit more robust.
........

15 years agoMerged revisions 76718 via svnmerge from
Antoine Pitrou [Tue, 8 Dec 2009 19:38:17 +0000 (19:38 +0000)]
Merged revisions 76718 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r76718 | antoine.pitrou | 2009-12-08 20:35:12 +0100 (mar., 08 déc. 2009) | 3 lines

  Fix transient refleaks in test_urllib. Thanks to Florent Xicluna.
........

15 years agoMerged revisions 76716 via svnmerge from
Antoine Pitrou [Tue, 8 Dec 2009 19:27:24 +0000 (19:27 +0000)]
Merged revisions 76716 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r76716 | antoine.pitrou | 2009-12-08 20:25:51 +0100 (mar., 08 déc. 2009) | 4 lines

  Fix the transient refleaks in test_zipimport_support.
  Diagnosis and original patch by Florent Xicluna (flox).
........

15 years agoMerged revisions 76712 via svnmerge from
Ronald Oussoren [Tue, 8 Dec 2009 16:35:28 +0000 (16:35 +0000)]
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.
........

15 years agoMerged revisions 76708 via svnmerge from
Antoine Pitrou [Tue, 8 Dec 2009 15:57:31 +0000 (15:57 +0000)]
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.
........

15 years agoMerged revisions 76702,76704 via svnmerge from
Tarek Ziadé [Tue, 8 Dec 2009 09:45:25 +0000 (09:45 +0000)]
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
........

15 years agoFix error message, for consistency with messages for % and //, and for consistency...
Mark Dickinson [Mon, 7 Dec 2009 19:34:59 +0000 (19:34 +0000)]
Fix error message, for consistency with messages for % and //, and for consistency with trunk

15 years agoMerged revisions 76692 via svnmerge from
Martin v. Löwis [Sun, 6 Dec 2009 18:34:14 +0000 (18:34 +0000)]
Merged revisions 76692 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r76692 | martin.v.loewis | 2009-12-06 19:27:29 +0100 (So, 06 Dez 2009) | 2 lines

  Add UUIDs for 2.7. Drop UUIDs for 2.4.
........

15 years agologging: Improved support for SMTP over TLS.
Vinay Sajip [Sun, 6 Dec 2009 18:05:04 +0000 (18:05 +0000)]
logging: Improved support for SMTP over TLS.

15 years agologging: Added optional 'secure' parameter to SMTPHandler.
Vinay Sajip [Sun, 6 Dec 2009 17:57:11 +0000 (17:57 +0000)]
logging: Added optional 'secure' parameter to SMTPHandler.

15 years agoBlocked revisions 76551,76600 via svnmerge
Benjamin Peterson [Sun, 6 Dec 2009 17:36:44 +0000 (17:36 +0000)]
Blocked revisions 76551,76600 via svnmerge

........
  r76551 | vinay.sajip | 2009-11-27 08:03:36 -0600 (Fri, 27 Nov 2009) | 1 line

  Issue #7403: Fixed possible race condition in lock creation.
........
  r76600 | raymond.hettinger | 2009-11-30 13:44:40 -0600 (Mon, 30 Nov 2009) | 3 lines

  Issue 7410: deepcopy of itertools.count resets the count
........

15 years agoMerged revisions 76684 via svnmerge from
Tarek Ziadé [Sun, 6 Dec 2009 09:28:17 +0000 (09:28 +0000)]
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
........

15 years agoIssue #7435: Remove duplicate int/long tests, and other
Mark Dickinson [Sat, 5 Dec 2009 20:28:34 +0000 (20:28 +0000)]
Issue #7435:  Remove duplicate int/long tests, and other
references to long in py3k.  Patch provided by flox.

15 years agoBlocked revisions 76679 via svnmerge
Benjamin Peterson [Sat, 5 Dec 2009 18:51:13 +0000 (18:51 +0000)]
Blocked revisions 76679 via svnmerge

........
  r76679 | benjamin.peterson | 2009-12-05 12:48:13 -0600 (Sat, 05 Dec 2009) | 1 line

  fix date
........

15 years agoBlocked revisions 76672-76674,76676 via svnmerge
Benjamin Peterson [Sat, 5 Dec 2009 18:42:10 +0000 (18:42 +0000)]
Blocked revisions 76672-76674,76676 via svnmerge

........
  r76672 | benjamin.peterson | 2009-12-05 11:45:40 -0600 (Sat, 05 Dec 2009) | 1 line

  regenerate pydoc_topics
........
  r76673 | benjamin.peterson | 2009-12-05 11:46:33 -0600 (Sat, 05 Dec 2009) | 2 lines

  move RPM spec for 2.7
........
  r76674 | benjamin.peterson | 2009-12-05 11:47:56 -0600 (Sat, 05 Dec 2009) | 1 line

  bump version to 2.7a1
........
  r76676 | benjamin.peterson | 2009-12-05 12:40:02 -0600 (Sat, 05 Dec 2009) | 1 line

  post release version bump
........

15 years agoMerged revisions 76668 via svnmerge from
Mark Dickinson [Fri, 4 Dec 2009 11:32:26 +0000 (11:32 +0000)]
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.
........

15 years agoBlocked revisions 76665 via svnmerge
Mark Dickinson [Fri, 4 Dec 2009 11:26:06 +0000 (11:26 +0000)]
Blocked revisions 76665 via svnmerge

........
  r76665 | mark.dickinson | 2009-12-04 11:24:38 +0000 (Fri, 04 Dec 2009) | 2 lines

  Avoid undefined behaviour due to overflow in i_divmod (Objects/intobject.c).
........

15 years agoIssue #7430: Remove lingering reference to cmp in recursion error message.
Mark Dickinson [Fri, 4 Dec 2009 10:06:06 +0000 (10:06 +0000)]
Issue #7430: Remove lingering reference to cmp in recursion error message.

15 years agoMerged revisions 76659 via svnmerge from
R. David Murray [Fri, 4 Dec 2009 00:09:14 +0000 (00:09 +0000)]
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.
........

15 years agoMerged revisions 76655 via svnmerge from
Martin v. Löwis [Thu, 3 Dec 2009 21:01:55 +0000 (21:01 +0000)]
Merged revisions 76655 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r76655 | martin.v.loewis | 2009-12-03 22:01:16 +0100 (Do, 03 Dez 2009) | 2 lines

  Add Christoph Gohlke, for the issue 4120 work.
........

15 years agoMerged revisions 76651 via svnmerge from
Martin v. Löwis [Thu, 3 Dec 2009 20:57:49 +0000 (20:57 +0000)]
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.
........