Commit Graph

5649 Commits

Author SHA1 Message Date
Mark Dickinson 37a79fb75b Issue 11131: Fix sign of zero result on decimal.Decimal plus and minus operations in ROUND_FLOOR rounding mode. 2011-03-12 11:12:52 +00:00
Antoine Pitrou 375ff587c2 Issue #11179: Make ccbench work under Python 3.1 and 2.7 again. 2011-03-11 20:57:11 +01:00
R David Murray 5647c473bc Merge #10999 fix. 2011-03-10 17:22:33 -05:00
R David Murray 30178068d9 #10999: Add missing documentation for chflags constants to stat module docs
Patch by Michal Nowikowski.
2011-03-10 17:18:33 -05:00
Antoine Pitrou 35db8a80c1 Merge fix for issue #11450 2011-03-09 12:47:20 +01:00
Antoine Pitrou 7983d33f54 Issue #11450: Don't truncate hg version info in Py_GetBuildInfo() when
there are many tags (e.g. when using mq).  Patch by Nadeem Vawda.
2011-03-09 12:34:41 +01:00
Ned Deily 2d12f96658 Issue #5622: merge fix from 3.1. 2011-03-09 02:42:23 -08:00
Ned Deily d2853180df Issue #5622: Fix curses.wrapper to raise correct exception if curses
initialization fails.
2011-03-09 02:36:51 -08:00
Senthil Kumaran d0654ef289 Merge NEWS entry edit. 2011-03-20 09:27:25 +08:00
Antoine Pitrou 1679f4daa1 Issue #11459: A `bufsize` value of 0 in subprocess.Popen() really creates
unbuffered pipes, such that select() works properly on them.
2011-03-19 17:06:22 +01:00
Antoine Pitrou 8d2813442e Merge NEWS fix 2011-03-17 23:41:25 +01:00
Antoine Pitrou 6826d2966b Merge 2011-03-17 23:37:06 +01:00
Antoine Pitrou fee6684f3c Issue #5421: merge fix 2011-03-17 22:46:17 +01:00
Ross Lagerwall 7807c3545d Issue #10812: Add some extra posix functions to the os module. 2011-03-17 20:20:30 +02:00
Michael Foord e9ff2ef204 Closes issue 10979. unittest buffering now works with class and module setup and teardown 2011-03-17 13:58:22 -04:00
Nick Coghlan bab07a652d Tidy up merge with remote 2011-03-16 22:11:09 -04:00
Nick Coghlan ce4ee1f34d Merge from 3.2 2011-03-16 21:48:30 -04:00
Nick Coghlan 49cb9593a0 Add missing NEWS item for previous commit 2011-03-16 20:23:58 -04:00
R David Murray cfec350e63 Merge #11401 fix from 3.2. 2011-03-16 18:28:07 -04:00
R David Murray 832ebeb9d4 Merge #11578 test from 3.2. 2011-03-16 17:33:24 -04:00
Michael Foord 4b31818042 merge 3.2 2011-03-16 17:28:51 -04:00
R David Murray bb35299fcd Merge #9298 fix. 2011-03-16 16:14:43 -04:00
Nick Coghlan 252183e4b6 Record backport of string.py patch and add credit to NEWS 2011-03-16 14:37:06 -04:00
Nick Coghlan 35ec8a4806 Merge NEWS entries from 3.2 2011-03-16 14:18:29 -04:00
Ross Lagerwall ba102ec10d Issue #5870: Add subprocess.DEVNULL constant. 2011-03-16 18:40:25 +02:00
Benjamin Peterson 09bb8f46aa merge 3.2 2011-03-16 10:29:37 -05:00
Ronald Oussoren 4d5fe33a70 Merge with 3.2 2011-03-16 09:44:26 -04:00
Michael Foord ed1fce2ee5 merge 3.2 2011-03-15 19:22:19 -04:00
Michael Foord b2874b7a4c Changes to Wing IDE project file. Merge of peepholer changesets that were applied separately. 2011-03-15 18:38:09 -04:00
Antoine Pitrou 8213cafd62 Merge 2011-03-15 21:10:33 +01:00
Antoine Pitrou 0e63f59492 Merge fix for issue #11501 2011-03-15 21:08:50 +01:00
Benjamin Peterson ffd1f48306 merge heads 2011-03-15 15:08:05 -05:00
Benjamin Peterson 485119eb1e kill PY_PATCHLEVEL_REVISION 2011-03-15 15:07:20 -05:00
Gregory P. Smith 31a248bded Misc/NEWS entry for issue 11432 2011-03-15 16:04:15 -04:00
Benjamin Peterson e97a5b2bda merge heads 2011-03-15 14:45:20 -05:00
Benjamin Peterson d6afe724cb improve dis test coverage (closes #11559)
Thanks Matias Bordese. (a few modifications of my own)
2011-03-15 14:44:52 -05:00
Barry Warsaw 254800e150 Merge and resolve Misc/NEWS. 2011-03-15 15:22:42 -04:00
Barry Warsaw 1f5c958721 - Issue #11289: `smtp.SMTP` class becomes a context manager so it can be used
in a `with` statement.  Contributed by Giampaolo Rodola.
2011-03-15 15:04:44 -04:00
R David Murray df1d00a1e3 Merge #11554 test_email_codecs activation from 3.2. 2011-03-15 12:24:47 -04:00
briancurtin 2ef76981a0 Add news item for #11509. 2011-03-15 11:51:28 -04:00
Michael Foord ee354eabc9 merge default 2011-03-14 19:03:30 -04:00
Michael Foord 1341bb0019 Closes issue 11407. TestCase.run returns the result object used or created 2011-03-14 19:01:46 -04:00
Nick Coghlan 5596a8c179 Merge with remote 2011-03-15 08:59:20 +10:00
Nick Coghlan d25fd4d710 Close #11505: Improve string.py coverage 2011-03-15 08:54:37 +10:00
Ronald Oussoren ba3a978fc1 Issue #11500: Fixed a bug in the os x proxy bypass code for fully qualified IP addresses in the proxy exception list. 2011-03-14 18:48:31 -04:00
briancurtin 30bb6e0360 Fix #11491. When dbm.open was called with a file which already exists and
the "flag" argument is "n", dbm.error was being raised. As documented,
dbm.open(...,flag='n') will now "Always create a new, empty database,
open for reading and writing", regardless of a previous file existing.
2011-03-14 16:36:31 -04:00
Jesus Cea 736e7fc0f6 Issue #11495: OSF support is eliminated. It was deprecated in Python 3.2 2011-03-14 17:36:54 +01:00
Ronald Oussoren a05a503342 merge 2011-03-14 12:12:23 -04:00
Eric V. Smith 91f0359ee4 Skip test if zlib not present. Closes #11498. Patch by Natalia B. Bidart. 2011-03-14 11:57:16 -04:00
Ronald Oussoren a9d397bb05 Issue #1099: Fix the build on MacOSX when building a framework with pydebug
using GCC 4.0.
2011-03-14 11:34:21 -04:00
R David Murray af9be20060 Merge #11488 patch from 3.2. 2011-03-14 09:58:59 -04:00
R David Murray dcd79a2d15 Merge fix for #11490 from 3.2. 2011-03-13 22:31:35 -04:00
R David Murray accd1c040f #1162477: accept '.' in addition to ':' when parsing time in date header.
Some non-compliant MUAs use '.'s, so by the Postel Principle we should
accept them.  Patch by Thomas Herve.
2011-03-13 20:06:23 -04:00
Antoine Pitrou f74dee4b88 Merge commit for #11233 2011-03-13 19:16:03 +01:00
Benjamin Peterson 6cb2b923e0 convert ast versioning to mercurial 2011-03-12 18:28:16 -06:00
Eric V. Smith b9cd3531c4 Issue 9856: Change object.__format__ with a non-empty format string from a PendingDeprecationWarning to a DeprecationWarning. 2011-03-12 10:08:48 -05:00
Mark Dickinson e8eabe7b16 Merge #11131 2011-03-12 11:18:46 +00:00
Antoine Pitrou 16c4ce1903 Issue #9935: Speed up pickling of instances of user-defined classes. 2011-03-11 21:30:43 +01:00
Antoine Pitrou f5f6288bbc Issue #11179: Make ccbench work under Python 3.1 and 2.7 again. 2011-03-11 20:58:31 +01:00
Antoine Pitrou 17b880a5d6 Issue #11244: The peephole optimizer is now able to constant-fold
arbitrarily complex expressions.  This also fixes a 3.2 regression where
operations involving negative numbers were not constant-folded.
2011-03-11 17:27:02 +01:00
R David Murray ee30a0be35 Merge #10999 fix. 2011-03-10 17:38:50 -05:00
Antoine Pitrou d2dee34a85 Merge fix for issue #11450 2011-03-09 12:53:30 +01:00
Ned Deily 33cb5c9017 Issue #5622: merge fix from 3.2. 2011-03-09 02:49:59 -08:00
Thomas Wouters 63bd5f9fe3 Merge 3.2. 2011-03-06 11:52:15 -08:00
Thomas Wouters 6b1034392c Merge 3.1. 2011-03-06 11:51:24 -08:00
Thomas Wouters 81638f1351 Issue #11411: Fix typo in the Makefile that prevented 'make DESTDIR=' from
working correctly with a relative path.
2011-03-06 11:49:15 -08:00
Antoine Pitrou 125d5c8770 Issue #11408: In threading.Lock.acquire(), only call gettimeofday() when
really necessary.  Patch by Charles-François Natali.
2011-03-06 08:40:35 +01:00
Antoine Pitrou f874debbf3 Merge fix for issue #11391 2011-03-06 01:53:19 +01:00
Antoine Pitrou 80d3610bc3 Merge fix for issue #11391 2011-03-06 01:50:56 +01:00
Antoine Pitrou 16a0a0b0a0 Issue #11391: Writing to a mmap object created with
`mmap.PROT_READ|mmap.PROT_EXEC` would segfault instead of raising a
TypeError.  Patch by Charles-François Natali.
2011-03-06 01:11:03 +01:00
Antoine Pitrou 533c79dc67 Add the map of SVN revision numbers to changeset ids.
This is mostly to help history-digging, especially when
focussing on feature branches.
Note that not all changesets are in the main repository,
but they are all in the full history repository.
2011-03-05 17:46:03 +01:00
Giampaolo Rodolà 3a9559b844 Update Misc/NEWS to include issue #9795 (nntplib context manager support) 2011-03-04 12:54:34 +00:00
Giampaolo Rodolà dc29e7dfd1 Include Марк Коренберг and Steffen Daode Nurpmeso in Mist/ACKS for contributions in issues 11265 and 11351. 2011-03-04 12:51:08 +00:00
Eli Bendersky 9479d1ade8 Issue #11388: Added a clear() method to MutableSequence 2011-03-04 05:34:58 +00:00
Eli Bendersky e0c8635d89 Merged revisions 88735 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r88735 | eli.bendersky | 2011-03-04 06:55:25 +0200 (Fri, 04 Mar 2011) | 2 lines

  Issue #11386: Fixed the exception thrown by bytearray.pop() for empty bytearrays
........
2011-03-04 05:10:57 +00:00
Eli Bendersky 1bc4f193d8 Issue #11386: Fixed the exception thrown by bytearray.pop() for empty bytearrays 2011-03-04 04:55:25 +00:00
Eli Bendersky 4db28d3343 Issue #10516: added copy() and clear() methods to bytearrays as well 2011-03-03 18:21:02 +00:00
R. David Murray 752b950e6b Merged revisions 88730 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r88730 | r.david.murray | 2011-03-03 13:03:36 -0500 (Thu, 03 Mar 2011) | 2 lines

  #11306: Treat EROFS like EACCES when making a 'file is read-only' decision
........
2011-03-03 18:12:34 +00:00
R. David Murray 91221f2857 #11306: Treat EROFS like EACCES when making a 'file is read-only' decision 2011-03-03 18:03:36 +00:00
Giampaolo Rodolà 2f95dc0225 Merged revisions 88722 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r88722 | giampaolo.rodola | 2011-03-03 14:57:47 +0100 (gio, 03 mar 2011) | 1 line

  Fix issue 11265: asyncore now correctly handles EPIPE, EBADF and EAGAIN errors on accept(), recv() and send().
........
2011-03-03 14:09:45 +00:00
Giampaolo Rodolà 9c9105dc81 Merged revisions 88722 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r88722 | giampaolo.rodola | 2011-03-03 14:57:47 +0100 (gio, 03 mar 2011) | 1 line

  Fix issue 11265: asyncore now correctly handles EPIPE, EBADF and EAGAIN errors on accept(), recv() and send().
........
2011-03-03 13:59:28 +00:00
Giampaolo Rodolà 1bc75c6cee Fix issue 11265: asyncore now correctly handles EPIPE, EBADF and EAGAIN errors on accept(), recv() and send(). 2011-03-03 13:57:47 +00:00
Victor Stinner 1dfd380306 Issue #11377: Deprecate platform.popen() and reimplement it with os.popen(). 2011-03-03 12:54:07 +00:00
Victor Stinner 7b3b20ad29 Issue #8513: On UNIX, subprocess supports bytes command string. 2011-03-03 12:54:05 +00:00
Benjamin Peterson 863a0c3f53 add tests for xml.pulldom #9373
Thanks to Mark Smith for the patch.
2011-03-02 23:40:36 +00:00
Daniel Stutzbach 8eda5f7cd9 #11335: Fix memory leak when a sort key function throws an exception 2011-03-02 23:37:50 +00:00
Victor Stinner a5c68c3cb7 Issue #8923: cache str.encode() result
When a string is encoded to UTF-8 in strict mode, the result is cached into the
object. Examples: str.encode(), str.encode('utf-8'), PyUnicode_AsUTF8String()
and PyUnicode_AsEncodedString(unicode, "utf-8", NULL).
2011-03-02 01:03:14 +00:00
Victor Stinner 6d970f4713 Issue #10831: PyUnicode_FromFormat() supports %li, %lli and %zi formats 2011-03-02 00:04:25 +00:00
Victor Stinner 968654515f Issue #10829: Refactor PyUnicode_FromFormat()
* Use the same function to parse the format string in the 3 steps
 * Fix crashs on invalid format strings
2011-03-01 23:44:09 +00:00
Victor Stinner f0e293cbcd Merged revisions 88700 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r88700 | victor.stinner | 2011-03-02 00:08:36 +0100 (mer., 02 mars 2011) | 3 lines

  Issue #10911: Add tests on CGI with non-ASCII characters

  Patch written by Pierre Quentel
........
2011-03-01 23:09:57 +00:00
Victor Stinner 096f1a85f0 Issue #10911: Add tests on CGI with non-ASCII characters
Patch written by Pierre Quentel
2011-03-01 23:08:36 +00:00
Antoine Pitrou 819c40ff35 Followup to issue #11140 and r88682: also patch _dummy_thread.
Patch by Aymeric Augustin.
2011-03-01 23:05:42 +00:00
Victor Stinner 2b574a2332 Merged revisions 88697 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r88697 | victor.stinner | 2011-03-01 23:46:52 +0100 (mar., 01 mars 2011) | 4 lines

  Issue #11246: Fix PyUnicode_FromFormat("%V")

  Decode the byte string from UTF-8 (with replace error handler) instead of
  ISO-8859-1 (in strict mode). Patch written by Ray Allen.
........
2011-03-01 22:48:49 +00:00
Victor Stinner 2512a8b62e Issue #11246: Fix PyUnicode_FromFormat("%V")
Decode the byte string from UTF-8 (with replace error handler) instead of
ISO-8859-1 (in strict mode). Patch written by Ray Allen.
2011-03-01 22:46:52 +00:00
Antoine Pitrou 9e719b6eba Merged revisions 88460,88464,88466,88486,88511,88652 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r88460 | antoine.pitrou | 2011-02-21 19:03:13 +0100 (lun., 21 févr. 2011) | 4 lines

  Issue #10276: Fix the results of zlib.crc32() and zlib.adler32() on buffers
  larger than 4GB.  Patch by Nadeem Vawda.
........
  r88464 | antoine.pitrou | 2011-02-21 20:05:08 +0100 (lun., 21 févr. 2011) | 3 lines

  Fix issues on 32-bit systems introduced by r88460
........
  r88466 | antoine.pitrou | 2011-02-21 20:28:40 +0100 (lun., 21 févr. 2011) | 3 lines

  Fix compile error under MSVC introduced by r88460.
........
  r88486 | antoine.pitrou | 2011-02-22 00:41:12 +0100 (mar., 22 févr. 2011) | 5 lines

  Issue #4681: Allow mmap() to work on file sizes and offsets larger than
  4GB, even on 32-bit builds.  Initial patch by Ross Lagerwall, adapted for
  32-bit Windows.
........
  r88511 | antoine.pitrou | 2011-02-22 22:42:56 +0100 (mar., 22 févr. 2011) | 4 lines

  Issue #11277: finally fix Snow Leopard crash following r88460.
  (probably an OS-related issue with mmap)
........
  r88652 | antoine.pitrou | 2011-02-26 16:58:05 +0100 (sam., 26 févr. 2011) | 4 lines

  Issue #9931: Fix hangs in GUI tests under Windows in certain conditions.
  Patch by Hirokazu Yamamoto.
........
2011-02-28 23:48:16 +00:00
Antoine Pitrou 061cfb5258 Issue #10866: Add socket.sethostname(). Initial patch by Ross Lagerwall. 2011-02-28 22:25:22 +00:00
Antoine Pitrou 8d0f257211 Add credit for r88682. 2011-02-28 22:06:48 +00:00
Antoine Pitrou fcf81fd031 Issue #11140: Lock.release() now raises a RuntimeError when attempting
to release an unacquired lock, as claimed in the threading documentation.
The _thread.error exception is now an alias of RuntimeError.
2011-02-28 22:03:34 +00:00
Giampaolo Rodolà 396ff06051 Fix issue 8594: adds a source_address parameter to ftplib module. 2011-02-28 19:19:51 +00:00
Antoine Pitrou 86cbfec50a Merged revisions 88664 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r88664 | antoine.pitrou | 2011-02-27 00:24:06 +0100 (dim., 27 févr. 2011) | 4 lines

  Issue #11326: Add the missing connect_ex() implementation for SSL sockets,
  and make it work for non-blocking connects.
........
2011-02-26 23:25:34 +00:00