R. David Murray [Sun, 20 Dec 2009 17:12:58 +0000 (17:12 +0000)]
Blocked revisions 76934-76935 via svnmerge
........
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.
........
Mark Dickinson [Sun, 20 Dec 2009 16:04:10 +0000 (16:04 +0000)]
Blocked revisions 76930 via svnmerge
........
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'
........
Benjamin Peterson [Sun, 20 Dec 2009 15:25:18 +0000 (15:25 +0000)]
Merged revisions 76927 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r76927 | benjamin.peterson | 2009-12-20 09:23:22 -0600 (Sun, 20 Dec 2009) | 1 line
builtin-ins -> builtins
........
Mark Dickinson [Sun, 20 Dec 2009 14:08:45 +0000 (14:08 +0000)]
Blocked revisions 76916 via svnmerge
........
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.
........
Senthil Kumaran [Sun, 20 Dec 2009 06:32:46 +0000 (06:32 +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.
........
Ezio Melotti [Sat, 19 Dec 2009 22:59:01 +0000 (22:59 +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
........
Antoine Pitrou [Sat, 19 Dec 2009 21:07:24 +0000 (21:07 +0000)]
Blocked revisions 76898 via svnmerge
........
r76898 | antoine.pitrou | 2009-12-19 22:06:36 +0100 (sam., 19 déc. 2009) | 3 lines
Remove superfetatory paragraph (left there by mistake).
........
Antoine Pitrou [Sat, 19 Dec 2009 21:03:36 +0000 (21:03 +0000)]
Merged revisions 76896 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().
........
Mark Dickinson [Sat, 19 Dec 2009 11:22:10 +0000 (11:22 +0000)]
Blocked revisions 76878 via svnmerge
........
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.
........
Ezio Melotti [Fri, 18 Dec 2009 20:23:24 +0000 (20:23 +0000)]
Merged revisions 70531 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r70531 | benjamin.peterson | 2009-03-23 00:24:58 +0200 (Mon, 23 Mar 2009) | 1 line
AttributeError can be thrown during recursion errors
........
Ezio Melotti [Fri, 18 Dec 2009 15:30:51 +0000 (15:30 +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
........
Mark Dickinson [Thu, 17 Dec 2009 08:34:53 +0000 (08:34 +0000)]
Blocked revisions 76865 via svnmerge
........
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.
........
Mark Dickinson [Wed, 16 Dec 2009 20:14:46 +0000 (20:14 +0000)]
Blocked revisions 76861 via svnmerge
........
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.
........
R. David Murray [Wed, 16 Dec 2009 15:19:57 +0000 (15:19 +0000)]
Blocked revisions 76856 via svnmerge
........
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.
........
Benjamin Peterson [Wed, 16 Dec 2009 04:27:27 +0000 (04:27 +0000)]
backport change from trunk
Benjamin Peterson [Wed, 16 Dec 2009 03:45:28 +0000 (03:45 +0000)]
Merged revisions 76852 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r76852 | benjamin.peterson | 2009-12-15 21:36:22 -0600 (Tue, 15 Dec 2009) | 1 line
remove type_compare, since type_richcompare does the same trick
........
Benjamin Peterson [Tue, 15 Dec 2009 03:28:17 +0000 (03:28 +0000)]
Merged revisions 76847 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r76847 | benjamin.peterson | 2009-12-14 21:25:27 -0600 (Mon, 14 Dec 2009) | 1 line
adverb
........
R. David Murray [Mon, 14 Dec 2009 22:18:57 +0000 (22:18 +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.
........
R. David Murray [Mon, 14 Dec 2009 18:03:08 +0000 (18:03 +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.
........
R. David Murray [Mon, 14 Dec 2009 17:24:36 +0000 (17:24 +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.
........
Tarek Ziadé [Sun, 13 Dec 2009 23:25:09 +0000 (23:25 +0000)]
Blocked revisions 76826 via svnmerge
........
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
........
Mark Dickinson [Sun, 13 Dec 2009 21:11:53 +0000 (21:11 +0000)]
Blocked revisions 76813 via svnmerge
........
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.
........
R. David Murray [Sun, 13 Dec 2009 17:55:03 +0000 (17:55 +0000)]
Blocked revisions 73819,73821-73822,73877,73986,74098,74100 via svnmerge
All of these are descendants of the issue 6267 patch (r73638), which was
an enhancement patch and thus blocked from backport (even though it may
have contained a couple fixes...)
........
r73819 | kristjan.jonsson | 2009-07-03 19:07:07 -0400 (Fri, 03 Jul 2009) | 2 lines
http://bugs.python.org/issue6381
some platforms may raise ENOTCONN if the stack has disconnected the socket on behalf of the peer.
........
r73821 | kristjan.jonsson | 2009-07-03 19:26:02 -0400 (Fri, 03 Jul 2009) | 2 lines
http://bugs.python.org/issue6267
Incorrect exception handling for xmlrp client retry
........
r73822 | kristjan.jonsson | 2009-07-03 19:29:50 -0400 (Fri, 03 Jul 2009) | 2 lines
http://bugs.python.org/issue6267
Incorrect exception handling for xmlrpc client retry
........
r73877 | kristjan.jonsson | 2009-07-07 05:01:34 -0400 (Tue, 07 Jul 2009) | 2 lines
http://bugs.python.org/issue6382
added the shutdown_request() which can perform shutdown before calling close. This is needed for the ForkingMixIn because different close semantics are required for child and parent process. shutdown_request(), for TCP servers, calls socket.shutdown() and then calls close_request(). Therefore, this is not an backwards incompatible change, since subclasses that continue to override close_request() continue to work.
........
r73986 | kristjan.jonsson | 2009-07-12 18:42:08 -0400 (Sun, 12 Jul 2009) | 2 lines
http://bugs.python.org/issue6267
Add more tests for the xlmrpc.ServerProxy
........
r74098 | kristjan.jonsson | 2009-07-19 18:14:00 -0400 (Sun, 19 Jul 2009) | 2 lines
http://bugs.python.org/issue6499
zlib/gzip may not be present for all builds. Make xmlrpclib gracefully not supporg gzip encoding in this case
........
r74100 | kristjan.jonsson | 2009-07-19 18:35:44 -0400 (Sun, 19 Jul 2009) | 2 lines
http://bugs.python.org/issue6499
gzip.GzipFile may not exist as a parent class
........
Benjamin Peterson [Sun, 13 Dec 2009 17:34:05 +0000 (17:34 +0000)]
Merged revisions 76798-76799 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
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
........
Benjamin Peterson [Sun, 13 Dec 2009 16:41:44 +0000 (16:41 +0000)]
Merged revisions 76794 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
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
........
Antoine Pitrou [Sun, 13 Dec 2009 16:19:43 +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)
........
Benjamin Peterson [Sun, 13 Dec 2009 14:20:15 +0000 (14:20 +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
........
Lars Gustäbel [Sun, 13 Dec 2009 11:38:07 +0000 (11:38 +0000)]
Blocked revisions 76780 via svnmerge
........
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.
........
Benjamin Peterson [Sun, 13 Dec 2009 00:59:01 +0000 (00:59 +0000)]
Merged revisions 76774 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
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
........
Antoine Pitrou [Sat, 12 Dec 2009 19:27:08 +0000 (19:27 +0000)]
Blocked revisions 76763 via svnmerge
........
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)
........
R. David Murray [Sat, 12 Dec 2009 18:36:47 +0000 (18:36 +0000)]
Merged revisions 76726-76727 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
This merge changes the test harness to manually do the socket
shutdown that was made automatic in trunk by enhancement patch r73638
(issue 6267). Patch modification 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.
........
Mark Dickinson [Fri, 11 Dec 2009 20:18:18 +0000 (20:18 +0000)]
Blocked revisions 76755 via svnmerge
........
r76755 | mark.dickinson | 2009-12-11 17:29:33 +0000 (Fri, 11 Dec 2009) | 2 lines
Issue #3366: Add lgamma function to math module.
........
Mark Dickinson [Fri, 11 Dec 2009 20:09:24 +0000 (20:09 +0000)]
Restore the svn property changes in r76754
Vinay Sajip [Fri, 11 Dec 2009 09:16:01 +0000 (09:16 +0000)]
Issue #7470: logging: fix bug in Unicode encoding fallback.
Tarek Ziadé [Thu, 10 Dec 2009 19:31:02 +0000 (19:31 +0000)]
Blocked revisions 76750 via svnmerge
........
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
........
Tarek Ziadé [Thu, 10 Dec 2009 15:31:03 +0000 (15:31 +0000)]
Blocked revisions 76746 via svnmerge
........
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
........
Mark Dickinson [Thu, 10 Dec 2009 10:39:49 +0000 (10:39 +0000)]
Blocked revisions 76740 via svnmerge
........
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.
........
Ronald Oussoren [Thu, 10 Dec 2009 10:29:05 +0000 (10:29 +0000)]
Merged revisions 76738 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r76738 | ronald.oussoren | 2009-12-10 11:27:09 +0100 (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.
........
Raymond Hettinger [Thu, 10 Dec 2009 05:56:49 +0000 (05:56 +0000)]
Fix variants of deque.extend: d.extend(d) d+=d d.extendleft(d)
Ronald Oussoren [Tue, 8 Dec 2009 16:39:36 +0000 (16:39 +0000)]
Remove documentation for the no longer existing 'Python IDE'
from the Python.app bundle on OSX.
This fixes Issue7437, the documentation contained filenames that
broke the installer on OSX 10.3.
Antoine Pitrou [Tue, 8 Dec 2009 15:41:50 +0000 (15:41 +0000)]
Blocked revisions 76708 via svnmerge
........
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.
........
Tarek Ziadé [Tue, 8 Dec 2009 09:40:27 +0000 (09:40 +0000)]
Blocked revisions 76704 via svnmerge
........
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
........
Tarek Ziadé [Tue, 8 Dec 2009 08:58:10 +0000 (08:58 +0000)]
Blocked revisions 76702 via svnmerge
........
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
........
Tarek Ziadé [Sun, 6 Dec 2009 09:26:45 +0000 (09:26 +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
........
Mark Dickinson [Fri, 4 Dec 2009 11:30:45 +0000 (11:30 +0000)]
Blocked revisions 76668 via svnmerge
........
r76668 | mark.dickinson | 2009-12-04 11:30:16 +0000 (Fri, 04 Dec 2009) | 1 line
Add missing issue number in Misc/NEWS entry.
........
Mark Dickinson [Fri, 4 Dec 2009 11:25:29 +0000 (11:25 +0000)]
Merged revisions 76665 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
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).
........
R. David Murray [Fri, 4 Dec 2009 00:01:31 +0000 (00:01 +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.
........
Martin v. Löwis [Thu, 3 Dec 2009 20:56:15 +0000 (20:56 +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.
........
Mark Dickinson [Thu, 3 Dec 2009 12:09:33 +0000 (12:09 +0000)]
Blocked revisions 76648 via svnmerge
........
r76648 | mark.dickinson | 2009-12-03 12:08:56 +0000 (Thu, 03 Dec 2009) | 3 lines
Issue #6985: number of range() items should be constrained to lie
in a Py_ssize_t, not an int.
........
Eric Smith [Wed, 2 Dec 2009 17:46:47 +0000 (17:46 +0000)]
Blocked revisions 76632 via svnmerge
........
r76632 | eric.smith | 2009-12-02 12:43:06 -0500 (Wed, 02 Dec 2009) | 1 line
Issue #4482: Add tests for special float value formatting.
........
Mark Dickinson [Wed, 2 Dec 2009 17:36:34 +0000 (17:36 +0000)]
Merged revisions 76629 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r76629 | mark.dickinson | 2009-12-02 17:33:41 +0000 (Wed, 02 Dec 2009) | 3 lines
Issue #7406: Fix some occurrences of potential signed overflow in int
arithmetic.
........
Mark Dickinson [Mon, 30 Nov 2009 21:53:09 +0000 (21:53 +0000)]
Blocked revisions 76603,76605 via svnmerge
........
r76603 | raymond.hettinger | 2009-11-30 21:14:25 +0000 (Mon, 30 Nov 2009) | 1 line
Update project file for new file: dtoa.c
........
r76605 | mark.dickinson | 2009-11-30 21:51:30 +0000 (Mon, 30 Nov 2009) | 2 lines
Add dtoa.c and dtoa.h to the relevant project files.
........
Raymond Hettinger [Mon, 30 Nov 2009 21:33:31 +0000 (21:33 +0000)]
Add sentinel
Raymond Hettinger [Mon, 30 Nov 2009 11:15:28 +0000 (11:15 +0000)]
Issue #7410: deepcopy of itertools.count() erroneously reset the count.
Tarek Ziadé [Sun, 29 Nov 2009 22:22:40 +0000 (22:22 +0000)]
Blocked revisions 76588 via svnmerge
........
r76588 | tarek.ziade | 2009-11-29 23:20:30 +0100 (Sun, 29 Nov 2009) | 1 line
Fixed #7408: dropped group ownership checking because it relies on os-specific rules
........
Eric Smith [Sun, 29 Nov 2009 17:42:05 +0000 (17:42 +0000)]
Blocked revisions 76583 via svnmerge
........
r76583 | eric.smith | 2009-11-29 12:40:57 -0500 (Sun, 29 Nov 2009) | 1 line
Issue #3382: Make '%F' and float.__format__('F') convert results to upper case. Much of the patch came from Mark Dickinson.
........
Mark Dickinson [Sat, 28 Nov 2009 16:37:36 +0000 (16:37 +0000)]
Merged revisions 76575 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r76575 | mark.dickinson | 2009-11-28 16:32:27 +0000 (Sat, 28 Nov 2009) | 5 lines
Issue #
1678380: When distinguishing between -0.0 and 0.0 in
compiler_add_o, use copysign instead of examining the first and last
bytes of the double. The latter method fails for little-endian
ARM, OABI, where doubles are little-endian but with the words swapped.
........
Mark Dickinson [Sat, 28 Nov 2009 13:13:39 +0000 (13:13 +0000)]
Blocked revisions 76568 via svnmerge
........
r76568 | mark.dickinson | 2009-11-28 13:13:13 +0000 (Sat, 28 Nov 2009) | 1 line
Multiprocessing configure checks don't need LIBM
........
Mark Dickinson [Sat, 28 Nov 2009 12:39:54 +0000 (12:39 +0000)]
Blocked revisions 76432,76558 via svnmerge
........
r76432 | mark.dickinson | 2009-11-20 19:30:22 +0000 (Fri, 20 Nov 2009) | 5 lines
Issue #7272: Add configure test to detect whether sem_open works
properly, and use this to skip test_multiprocessing on platforms
where sem_open raises a signal. This should fix some FreeBSD buildbot
failures for test_multiprocessing.
........
r76558 | mark.dickinson | 2009-11-28 10:44:20 +0000 (Sat, 28 Nov 2009) | 4 lines
Issue #7272, continued: don't re-use existing HAVE_BROKEN_POSIX_SEMAPHORES
to indicate that semaphores aren't available; define a new variable
POSIX_SEMAPHORES_NOT_ENABLED instead.
........
Mark Dickinson [Sat, 28 Nov 2009 12:33:35 +0000 (12:33 +0000)]
Blocked revisions 76561 via svnmerge
........
r76561 | mark.dickinson | 2009-11-28 12:30:36 +0000 (Sat, 28 Nov 2009) | 5 lines
Include ieeefp.h (when available) in pyport.h instead of individually in
Objects/floatobject.c and Objects/complexobject.c. This should silence
compiler warnings about implicit declaration of the 'finite' function
on Solaris.
........
Vinay Sajip [Fri, 27 Nov 2009 14:03:36 +0000 (14:03 +0000)]
Issue #7403: Fixed possible race condition in lock creation.
Barry Warsaw [Wed, 25 Nov 2009 18:38:24 +0000 (18:38 +0000)]
Add mktime_tz to __all__. It's documented as being available in email.utils.
Mark Dickinson [Tue, 24 Nov 2009 20:55:17 +0000 (20:55 +0000)]
Blocked revisions 76502 via svnmerge
........
r76502 | mark.dickinson | 2009-11-24 20:51:48 +0000 (Tue, 24 Nov 2009) | 3 lines
Issue #7228: Fix format mismatch when printing something of type off_t.
(Should silence some compiler warnings.)
........
Alexandre Vassalotti [Tue, 24 Nov 2009 18:06:51 +0000 (18:06 +0000)]
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.
........
Mark Dickinson [Tue, 24 Nov 2009 15:12:55 +0000 (15:12 +0000)]
Blocked revisions 76495 via svnmerge
........
r76495 | mark.dickinson | 2009-11-24 15:12:20 +0000 (Tue, 24 Nov 2009) | 2 lines
Issue #7117: Update float formatting testcases to match those in py3k.
........
Mark Dickinson [Tue, 24 Nov 2009 14:27:30 +0000 (14:27 +0000)]
Blocked revisions 76489 via svnmerge
........
r76489 | mark.dickinson | 2009-11-24 14:27:02 +0000 (Tue, 24 Nov 2009) | 1 line
Fix some documentation examples involving the repr of a float.
........
Mark Dickinson [Tue, 24 Nov 2009 10:55:38 +0000 (10:55 +0000)]
Blocked revisions 76483 via svnmerge
........
r76483 | mark.dickinson | 2009-11-24 10:54:58 +0000 (Tue, 24 Nov 2009) | 2 lines
round(0, "ermintrude") succeeded instead of producing a TypeError. Fix this.
........
Mark Dickinson [Mon, 23 Nov 2009 20:54:56 +0000 (20:54 +0000)]
Blocked revisions 76472 via svnmerge
........
r76472 | mark.dickinson | 2009-11-23 20:54:09 +0000 (Mon, 23 Nov 2009) | 4 lines
Issue #7117, continued: Remove substitution of %g-style formatting for
%f-style formatting, which used to occur at high precision. Float formatting
should now be consistent between 2.7 and 3.1.
........
Senthil Kumaran [Mon, 23 Nov 2009 18:54:33 +0000 (18:54 +0000)]
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.
........
Mark Dickinson [Mon, 23 Nov 2009 18:49:28 +0000 (18:49 +0000)]
Blocked revisions 76465 via svnmerge
........
r76465 | mark.dickinson | 2009-11-23 18:46:41 +0000 (Mon, 23 Nov 2009) | 4 lines
Remove restriction on precision when formatting floats. This is the
first step towards removing the %f -> %g switch (see issues 7117,
5859).
........
Mark Dickinson [Mon, 23 Nov 2009 16:39:46 +0000 (16:39 +0000)]
Merged revisions 76460 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r76460 | mark.dickinson | 2009-11-23 16:39:05 +0000 (Mon, 23 Nov 2009) | 2 lines
Issue #7369: Fibonacci series should start at 0 in tutorial example.
........
Mark Dickinson [Mon, 23 Nov 2009 16:25:51 +0000 (16:25 +0000)]
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.
........
Lars Gustäbel [Mon, 23 Nov 2009 16:01:56 +0000 (16:01 +0000)]
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).
........
Lars Gustäbel [Sun, 22 Nov 2009 18:56:32 +0000 (18:56 +0000)]
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.
........
Jesse Noller [Sat, 21 Nov 2009 14:23:46 +0000 (14:23 +0000)]
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.
........
Benjamin Peterson [Fri, 20 Nov 2009 01:19:48 +0000 (01:19 +0000)]
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
........
Benjamin Peterson [Thu, 19 Nov 2009 23:25:14 +0000 (23:25 +0000)]
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
........
Benjamin Peterson [Thu, 19 Nov 2009 23:01:36 +0000 (23:01 +0000)]
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
........
Mark Dickinson [Thu, 19 Nov 2009 18:42:18 +0000 (18:42 +0000)]
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.
........
Ronald Oussoren [Thu, 19 Nov 2009 17:43:53 +0000 (17:43 +0000)]
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)
........
Ronald Oussoren [Thu, 19 Nov 2009 16:37:33 +0000 (16:37 +0000)]
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.
........
Tarek Ziadé [Thu, 19 Nov 2009 05:34:14 +0000 (05:34 +0000)]
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
........
Benjamin Peterson [Thu, 19 Nov 2009 03:11:09 +0000 (03:11 +0000)]
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
........
Raymond Hettinger [Thu, 19 Nov 2009 01:26:23 +0000 (01:26 +0000)]
Fix docstrings for itertools combinatoric functions.
Lars Gustäbel [Wed, 18 Nov 2009 21:09:35 +0000 (21:09 +0000)]
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.
........
Mark Dickinson [Wed, 18 Nov 2009 20:31:07 +0000 (20:31 +0000)]
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!
........
Raymond Hettinger [Wed, 18 Nov 2009 20:13:27 +0000 (20:13 +0000)]
Issue 7263: Fix set.intersection() docstring.
Mark Dickinson [Wed, 18 Nov 2009 19:34:33 +0000 (19:34 +0000)]
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.
........
Georg Brandl [Wed, 18 Nov 2009 18:54:21 +0000 (18:54 +0000)]
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.
........
Georg Brandl [Wed, 18 Nov 2009 18:53:59 +0000 (18:53 +0000)]
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.
........
Nick Coghlan [Wed, 18 Nov 2009 11:29:42 +0000 (11:29 +0000)]
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
........
Tarek Ziadé [Wed, 18 Nov 2009 08:52:10 +0000 (08:52 +0000)]
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
........
Benjamin Peterson [Tue, 17 Nov 2009 21:33:08 +0000 (21:33 +0000)]
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
........
Mark Dickinson [Mon, 16 Nov 2009 19:17:54 +0000 (19:17 +0000)]
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.
........
Mark Dickinson [Mon, 16 Nov 2009 17:34:11 +0000 (17:34 +0000)]
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.
........
Mark Dickinson [Mon, 16 Nov 2009 16:57:52 +0000 (16:57 +0000)]
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.
........
Nick Coghlan [Mon, 16 Nov 2009 04:01:51 +0000 (04:01 +0000)]
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
........
Nick Coghlan [Sun, 15 Nov 2009 22:58:27 +0000 (22:58 +0000)]
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
........
Mark Dickinson [Sun, 15 Nov 2009 13:48:02 +0000 (13:48 +0000)]
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.
........
Mark Dickinson [Sun, 15 Nov 2009 12:34:12 +0000 (12:34 +0000)]
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.)
........