Commit Graph

41006 Commits

Author SHA1 Message Date
R. David Murray 1f449143f4 Merged revisions 78137 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r78137 | r.david.murray | 2010-02-10 17:42:04 -0500 (Wed, 10 Feb 2010) | 8 lines

  Issue 7835:  Shelve's __del__ method calls its close method, and its
  close method refers to an identifier in the global module namespace.
  This means that when __del__ is called during interpreter shutdown (if,
  for example, the calling program still has a pointer to the shelf),
  sometimes that global identifier would wind up being None, causing
  mysterious 'ignored' exceptions.  This patch checks for the possible None
  value first before using the global, thus avoiding the error messages.
........
2010-02-11 00:15:05 +00:00
Michael Foord 0b581e58f9 Merged revisions 78132 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r78132 | michael.foord | 2010-02-10 15:50:58 +0000 (Wed, 10 Feb 2010) | 1 line

  Fix for unittest tests, to be merged to py3k
........
2010-02-10 15:53:19 +00:00
Michael Foord 0e31b992fa Merged revisions 78131 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r78131 | michael.foord | 2010-02-10 14:31:30 +0000 (Wed, 10 Feb 2010) | 1 line

  Remove deprecation on assert_. It is used too frequently.
........
2010-02-10 15:52:56 +00:00
Michael Foord 34c9462d71 Merged revisions 78130 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r78130 | michael.foord | 2010-02-10 14:25:12 +0000 (Wed, 10 Feb 2010) | 1 line

  Issue 7893 and Issue 7588
........
2010-02-10 15:51:42 +00:00
Antoine Pitrou 99f69ee7a1 Merged revisions 78125 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r78125 | antoine.pitrou | 2010-02-09 18:08:05 +0100 (mar., 09 févr. 2010) | 7 lines

  Issue #2746: Don't escape ampersands and angle brackets ("&", "<", ">")
  in XML processing instructions and comments.  These raw characters are
  allowed by the XML specification, and are necessary when outputting e.g.
  PHP code in a processing instruction.  Patch by Neil Muller.
........
2010-02-09 17:25:47 +00:00
Antoine Pitrou c77dd32be4 Issue #6233: ElementTree failed converting unicode characters to XML
entities when they could't be represented in the requested output
encoding.  Patch by Jerry Chen.
2010-02-09 16:51:16 +00:00
Michael Foord 28a817e3ba Fixing typo in unittest docs. 2010-02-09 00:03:57 +00:00
Michael Foord 299c4730a0 Blocked revisions 78119 via svnmerge
........
  r78119 | michael.foord | 2010-02-08 23:15:22 +0000 (Mon, 08 Feb 2010) | 1 line

  Doc fix for unittest.
........
2010-02-08 23:16:41 +00:00
Michael Foord 0283495c30 Merged revisions 78116 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r78116 | michael.foord | 2010-02-08 22:41:16 +0000 (Mon, 08 Feb 2010) | 1 line

  Make assertMultiLineEqual the default for comparing unicode strings.
........
2010-02-08 23:10:39 +00:00
Ezio Melotti 4900823027 Merged revisions 78091,78094,78109 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r78091 | georg.brandl | 2010-02-07 19:02:22 +0200 (Sun, 07 Feb 2010) | 1 line

  Rename "exc_value" attribute on assertRaises context manager to "exception".
........
  r78094 | michael.foord | 2010-02-07 20:44:12 +0200 (Sun, 07 Feb 2010) | 1 line

  assertRaises as context manager now allows you to access exception as documented
........
  r78109 | ezio.melotti | 2010-02-08 23:52:08 +0200 (Mon, 08 Feb 2010) | 1 line

  Fix exc_value -> exception in docstring
........
2010-02-08 21:57:48 +00:00
Mark Dickinson 7b26d7f82f Merged revisions 78099 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r78099 | mark.dickinson | 2010-02-07 20:31:10 +0000 (Sun, 07 Feb 2010) | 1 line

  Skip test_strtod entirely when correctly-rounded string->float isn't implemented
........
2010-02-07 20:32:50 +00:00
Ronald Oussoren ee5c885fd2 Merged revisions 78097 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r78097 | ronald.oussoren | 2010-02-07 21:18:02 +0100 (Sun, 07 Feb 2010) | 2 lines

  Issue 6003: ZipFile.writestr "compression_type" argument
........
2010-02-07 20:24:02 +00:00
Ronald Oussoren 755740f3ea Forward port a number of OSX bugfixes from the trunk to 3.2 2010-02-07 19:56:39 +00:00
Antoine Pitrou a5336b6000 Merged revisions 78088 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r78088 | antoine.pitrou | 2010-02-07 17:56:23 +0100 (dim., 07 févr. 2010) | 4 lines

  Issue #7870: Remove duplicate test methods.  Reported by Georg Brandl.
........
2010-02-07 17:00:43 +00:00
Mark Dickinson 5354a1fce0 Merged revisions 78082,78086 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r78082 | mark.dickinson | 2010-02-07 13:01:56 +0000 (Sun, 07 Feb 2010) | 1 line

  Add missing global declarations for 'overflowok'; remove 'overflowrequired', which is no longer needed.
........
  r78086 | mark.dickinson | 2010-02-07 13:09:52 +0000 (Sun, 07 Feb 2010) | 1 line

  Actually raise on failure, instead of doing nothing.
........
2010-02-07 13:15:37 +00:00
Ronald Oussoren 8af24c111b * Checks that the SDK specified with --enable-universalsk=VALUE exists.
* Fall back to the default system SDK when specifying --enable-universalsk
  without a value and the 10.4u SDK is not avaiable.

Port of fix for issue 4834 from the trunk.
2010-02-07 12:03:42 +00:00
Ronald Oussoren 9812a6cf24 Fix for issue 7714, ported from the trunk. 2010-02-07 11:53:18 +00:00
Ronald Oussoren f9adc37087 Mention a configure warning that almost certainly indicates that
configure is picking up a library that doesn't contain all architectures
required for a universal build on OSX.
2010-02-07 11:46:38 +00:00
Ronald Oussoren 19258d5a35 Merged revisions 78056 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r78056 | ronald.oussoren | 2010-02-07 12:29:31 +0100 (Sun, 07 Feb 2010) | 5 lines

  Remove call to gestalt('sysu') from platform.py. This gestalt call is
  not available on OSX an appearently causes problems for some users.

  Fixes issue 7812
........
2010-02-07 11:33:33 +00:00
Mark Dickinson 06b59e0c4b Merged revisions 78041 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r78041 | mark.dickinson | 2010-02-06 23:11:25 +0000 (Sat, 06 Feb 2010) | 1 line

  testCopysign was defined twice in test_math;  combine the definitions
........
2010-02-06 23:16:50 +00:00
Georg Brandl 01e4d57b0f Remove Python 1.x or 2.x compatibility code. 2010-02-06 22:27:51 +00:00
Georg Brandl c4a55fccab Recorded merge of revisions 78024 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r78024 | georg.brandl | 2010-02-06 19:44:44 +0100 (Sa, 06 Feb 2010) | 1 line

  #5341: fix "builtin" where used as an adjective ("built-in" is correct).
........
2010-02-06 18:46:57 +00:00
Benjamin Peterson 3102bd9afe Blocked revisions 78020,78022 via svnmerge
........
  r78020 | benjamin.peterson | 2010-02-06 10:37:32 -0600 (Sat, 06 Feb 2010) | 1 line

  bump version to 2.7a3
........
  r78022 | benjamin.peterson | 2010-02-06 12:26:27 -0600 (Sat, 06 Feb 2010) | 1 line

  post release updates
........
2010-02-06 18:29:29 +00:00
R. David Murray e9e9593803 Merged revisions 78014 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r78014 | r.david.murray | 2010-02-05 23:27:21 -0500 (Fri, 05 Feb 2010) | 5 lines

  issue #7728: test_timeout was using a hardcoded port, which was
  causing buildbot failures.  Changed to use test_support.bind_port.
  Patch by Florent Xicluna.
........
2010-02-06 05:00:15 +00:00
Michael Foord 41647d6dad Merged revisions 78010 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r78010 | michael.foord | 2010-02-06 00:22:26 +0000 (Sat, 06 Feb 2010) | 1 line

  unittest.TestLoader creates a TestSuite before calling load_tests. Issue 7799.
........
2010-02-06 00:26:13 +00:00
Michael Foord b112a41aa3 Merged revisions 78007 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r78007 | michael.foord | 2010-02-05 23:28:12 +0000 (Fri, 05 Feb 2010) | 1 line

  Minor doc change.
........
2010-02-05 23:32:33 +00:00
Michael Foord b57ac6dc05 Merged revisions 78005 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r78005 | michael.foord | 2010-02-05 23:22:37 +0000 (Fri, 05 Feb 2010) | 1 line

  Correction to docstring correction.
........
2010-02-05 23:26:29 +00:00
Michael Foord 1c42b12b35 Merged revisions 78003 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r78003 | michael.foord | 2010-02-05 22:55:09 +0000 (Fri, 05 Feb 2010) | 1 line

  Improving docstrings in unittest.TestCase
........
2010-02-05 22:58:21 +00:00
Michael Foord f5c851aa04 Adding versionadded to the test skipping section of the unittest doc. 2010-02-05 21:48:03 +00:00
Michael Foord 41531f2e19 Merged revisions 77999 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r77999 | michael.foord | 2010-02-05 21:07:38 +0000 (Fri, 05 Feb 2010) | 1 line

  Example of using assertRaises as a context manager in the unittest documentation.
........
2010-02-05 21:13:40 +00:00
Michael Foord e9abbeecf2 Merged revisions 77997 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r77997 | michael.foord | 2010-02-05 20:52:14 +0000 (Fri, 05 Feb 2010) | 1 line

  Closes issue 7030.
........
2010-02-05 20:54:27 +00:00
Barry Warsaw 615368fbfa Document the -J and -X options for CPython. Note that unlike for py2k, we
don't need to document -U becuase it's gone in py3k.
2010-02-05 19:12:30 +00:00
Barry Warsaw c78b05a9ea Blocked revisions 77992 via svnmerge
........
  r77992 | barry.warsaw | 2010-02-05 13:45:25 -0500 (Fri, 05 Feb 2010) | 4 lines

  Resolve bug 7847 by including documentation for -J, -U, and -X under "Options
  you shouldn't use".
........
2010-02-05 19:01:58 +00:00
Antoine Pitrou b5d008eb77 Blocked revisions 77989 via svnmerge
........
  r77989 | antoine.pitrou | 2010-02-05 18:05:54 +0100 (ven., 05 févr. 2010) | 6 lines

  Issue #5677: Explicitly forbid write operations on read-only file objects,
  and read operations on write-only file objects.  On Windows, the system C
  library would return a bogus result; on Solaris, it was possible to crash
  the interpreter.  Patch by Stefan Krah.
........
2010-02-05 17:14:05 +00:00
R. David Murray 73bc75bb41 Fix raw_input->input in Popen doc patch. 2010-02-05 16:25:12 +00:00
Benjamin Peterson 56f0aa6c89 Blocked revisions 77983 via svnmerge
........
  r77983 | benjamin.peterson | 2010-02-04 20:12:14 -0600 (Thu, 04 Feb 2010) | 9 lines

  normalize exceptions passed to the __exit__ method #7853

  In Python 2.x, exceptions in finally blocks are not normalized.  Since with
  statements are implemented using finally blocks, ceval.c had to be tweaked to
  distinguish between with finally blocks and normal ones.

  A test for the finalization of generators containing with statements was also
  added.
........
2010-02-05 02:14:20 +00:00
Benjamin Peterson d71b2c1f44 this works correctly in py3 already 2010-02-05 02:07:20 +00:00
Benjamin Peterson 77aa6a7176 Merged revisions 77980 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r77980 | benjamin.peterson | 2010-02-04 19:53:27 -0600 (Thu, 04 Feb 2010) | 1 line

  add a test for #7853; the exception must be normalized for with
........
2010-02-05 02:07:05 +00:00
Ezio Melotti 2d6c39b24f Merged revisions 77968 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r77968 | ezio.melotti | 2010-02-04 22:06:38 +0200 (Thu, 04 Feb 2010) | 1 line

  Use correct assert* methods in the examples.
........
2010-02-04 20:27:41 +00:00
Antoine Pitrou b6375f1266 Merged revisions 77970 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r77970 | antoine.pitrou | 2010-02-04 21:20:18 +0100 (jeu., 04 févr. 2010) | 6 lines

  Issue #4772: Raise a ValueError when an unknown Bluetooth protocol is
  specified, rather than fall through to AF_PACKET (in the `socket` module).
  Also, raise ValueError rather than TypeError when an unknown TIPC address
  type is specified.  Patch by Brian Curtin.
........
2010-02-04 20:23:24 +00:00
Antoine Pitrou 8f0b31ae4c Followup to r77918: fix build under Windows. 2010-02-04 17:02:07 +00:00
R. David Murray 5973e4d0a3 Merged revisions 77943,77959-77960 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r77943 | r.david.murray | 2010-02-03 08:36:23 -0500 (Wed, 03 Feb 2010) | 2 lines

  Explicitly mention the default value for formatdate's usegmt parameter.
........
  r77959 | nick.coghlan | 2010-02-04 07:43:58 -0500 (Thu, 04 Feb 2010) | 1 line

  Issue 6760: Clarify args handling for subprocess.Popen. Patch by Chris Rebert
........
  r77960 | r.david.murray | 2010-02-04 11:33:31 -0500 (Thu, 04 Feb 2010) | 2 lines

  Add Chris Rebert to ACKS for issue 6760 Popen doc improvements.
........
2010-02-04 16:41:57 +00:00
Brett Cannon ddb5e70e02 Merged revisions 77956-77957 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r77956 | brett.cannon | 2010-02-03 14:11:54 -0800 (Wed, 03 Feb 2010) | 1 line

  Update a docstring to suggest using importlib.import_module instead of calling __import__ directly.
........
  r77957 | brett.cannon | 2010-02-03 14:13:44 -0800 (Wed, 03 Feb 2010) | 1 line

  Fix a typo in a docstring introduced in r77956.
........
2010-02-03 22:16:11 +00:00
Tarek Ziadé 63187670ef Merged revisions 77949 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r77949 | tarek.ziade | 2010-02-03 16:38:12 +0100 (Wed, 03 Feb 2010) | 1 line

  leaving global attributes for backward compat
........
2010-02-03 16:10:34 +00:00
Eric Smith b0869407de Fixed accidental block of r77944. 2010-02-03 14:25:10 +00:00
Eric Smith 7a174e0afc Blocked revisions 77944 via svnmerge
........
  r77944 | eric.smith | 2010-02-03 09:17:50 -0500 (Wed, 03 Feb 2010) | 1 line

  Corrected list of attributes exposed by sys.getwindowsversion.
........
2010-02-03 14:19:27 +00:00
Benjamin Peterson d69fe2a8d3 Merged revisions 77712,77740-77741,77756,77886,77902,77936 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r77712 | tarek.ziade | 2010-01-23 11:52:57 -0600 (Sat, 23 Jan 2010) | 1 line

  fixed the 64bits tests for get_platform() - mac osx
........
  r77740 | benjamin.peterson | 2010-01-24 21:58:21 -0600 (Sun, 24 Jan 2010) | 1 line

  compare types with is not ==
........
  r77741 | facundo.batista | 2010-01-25 00:15:01 -0600 (Mon, 25 Jan 2010) | 3 lines

  Added a note about Event.is_set() syntax being new to 2.6
........
  r77756 | tarek.ziade | 2010-01-26 11:20:37 -0600 (Tue, 26 Jan 2010) | 1 line

  fixed bdist_msi imports and added a test module for distutils.command.bdist_msi
........
  r77886 | benjamin.peterson | 2010-01-31 12:09:34 -0600 (Sun, 31 Jan 2010) | 1 line

  move distutils.rst to different toc
........
  r77902 | andrew.kuchling | 2010-01-31 20:04:26 -0600 (Sun, 31 Jan 2010) | 1 line

  Add various items
........
  r77936 | andrew.kuchling | 2010-02-02 20:19:14 -0600 (Tue, 02 Feb 2010) | 1 line

  Add various items
........
2010-02-03 02:59:43 +00:00
Benjamin Peterson f044812f9b Blocked revisions 77575,77585,77587-77588 via svnmerge
........
  r77575 | ronald.oussoren | 2010-01-17 06:38:11 -0600 (Sun, 17 Jan 2010) | 3 lines

  Add text to Mac/README to warn about non-universal libraries when
  building a universal Python. Based on issue7679.
........
  r77585 | ronald.oussoren | 2010-01-17 10:25:57 -0600 (Sun, 17 Jan 2010) | 12 lines

  - Issue #7658: Ensure that the new pythonw executable works on OSX 10.4

  - Issue #7714: Use ``gcc -dumpversion`` to detect the version of GCC on
    MacOSX.

  - Make configure look for util.h as well as libutil.h. The former
    is the header file that on OSX contains the defition of openpty.

    (Needed to compile for OSX 10.4 on OSX 10.6)

  - Use the correct definition of CC to compile the pythonw executable
........
  r77587 | ronald.oussoren | 2010-01-17 13:27:57 -0600 (Sun, 17 Jan 2010) | 8 lines

  This patch ensures that the configure-script mentions checking for --enable-universalsdk
  and that it doesn't default to the 10.4u SDK when that SDK does not exist.

  (This affects OSX)

  This patch should fix most of issue 4834, although I haven't gotten enough
  information from the user to be sure.
........
  r77588 | ronald.oussoren | 2010-01-17 13:32:00 -0600 (Sun, 17 Jan 2010) | 2 lines

  Explicitly use /usr/bin/arch on OSX, fixes issue 7715
........
2010-02-03 02:53:11 +00:00
Benjamin Peterson 3fdb0ec11c Blocked revisions 77607,77609,77679 via svnmerge
........
  r77607 | gregory.p.smith | 2010-01-19 02:01:00 -0600 (Tue, 19 Jan 2010) | 6 lines

  Add a pydebug mode only debug print to help debug the errors in

   http://www.python.org/dev/buildbot/all/builders/x86%20gentoo%20trunk/builds/5700/

  Will be removed shortly.
........
  r77609 | gregory.p.smith | 2010-01-19 02:25:26 -0600 (Tue, 19 Jan 2010) | 2 lines

  Revert debugprint code in r77607.
........
  r77679 | matthias.klose | 2010-01-21 18:34:48 -0600 (Thu, 21 Jan 2010) | 2 lines

  - Mention CVE-2009-3720 for change in r74429.
........
2010-02-03 02:46:37 +00:00
Benjamin Peterson 5e55b3e204 Merged revisions 77484,77487,77561,77570,77593,77603,77608,77667,77702-77703,77739,77858,77887,77889 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r77484 | skip.montanaro | 2010-01-13 19:12:34 -0600 (Wed, 13 Jan 2010) | 4 lines

  Update PyEval_EvalFrame to PyEval_EvalFrameEx.  This looks to have been done
  partially before.  Also add a comment describing how this might have to work
  with different versions of the interpreter.
........
  r77487 | ezio.melotti | 2010-01-14 05:34:10 -0600 (Thu, 14 Jan 2010) | 1 line

  Fixed typo
........
  r77561 | georg.brandl | 2010-01-17 02:42:30 -0600 (Sun, 17 Jan 2010) | 1 line

  #7699: improve datetime docs: straightforward linking to strftime/strptime section, mark classmethods as such.
........
  r77570 | georg.brandl | 2010-01-17 06:14:42 -0600 (Sun, 17 Jan 2010) | 1 line

  Add note about usage of STRINGLIB_EMPTY.
........
  r77593 | georg.brandl | 2010-01-17 17:33:53 -0600 (Sun, 17 Jan 2010) | 1 line

  Fix internal reference.
........
  r77603 | benjamin.peterson | 2010-01-18 17:07:56 -0600 (Mon, 18 Jan 2010) | 8 lines

  data descriptors do not override the class dictionary if __get__ is not defined

  Adjust documentation and add a test to verify this behavior.

  See http://mail.python.org/pipermail/python-dev/2010-January/095637.html for
  discussion.
........
  r77608 | gregory.p.smith | 2010-01-19 02:19:03 -0600 (Tue, 19 Jan 2010) | 6 lines

  Do not compile stubs for the sha2 series hashes in the openssl hashlib
  module when the openssl version is too old to support them.  That
  leads both compiled code bloat and to unittests attempting to test
  implementations that don't exist for comparison purposes on such
  platforms.
........
  r77667 | mark.dickinson | 2010-01-21 12:32:27 -0600 (Thu, 21 Jan 2010) | 1 line

  Add two more test_strtod test values.
........
  r77702 | georg.brandl | 2010-01-23 02:43:31 -0600 (Sat, 23 Jan 2010) | 1 line

  #7762: fix refcount annotation of PyUnicode_Tailmatch().
........
  r77703 | georg.brandl | 2010-01-23 02:47:54 -0600 (Sat, 23 Jan 2010) | 1 line

  #7725: fix referencing issue.
........
  r77739 | benjamin.peterson | 2010-01-24 21:52:52 -0600 (Sun, 24 Jan 2010) | 1 line

  mention from_float() in error message
........
  r77858 | georg.brandl | 2010-01-30 11:57:48 -0600 (Sat, 30 Jan 2010) | 1 line

  #7802: fix invalid example (heh).
........
  r77887 | georg.brandl | 2010-01-31 12:51:49 -0600 (Sun, 31 Jan 2010) | 5 lines

  Fix-up ftplib documentation:
  move exception descriptions to toplevel, not inside a class
  remove attribution in "versionadded"
  spell and grammar check docstring of FTP_TLS
........
  r77889 | michael.foord | 2010-01-31 13:59:26 -0600 (Sun, 31 Jan 2010) | 1 line

  Minor modification to unittest documentation.
........
2010-02-03 02:35:45 +00:00