Commit graph

45064 commits

Author SHA1 Message Date
Ronald Oussoren
3320696371 The C function used by uuid.uuid4 is broken on
OSX 10.6 in that after os.fork() the parent and
child generate the same sequence of UUIDs.

This patch falls back to the the Python implementation
on OSX 10.6 or later.

Fixes issue #8621.
2010-05-05 14:48:37 +00:00
Marc-André Lemburg
9b90f7af49 Update the NEWS entry for issue #8211. 2010-05-05 13:30:01 +00:00
Victor Stinner
926fd4ee32 Issue #8313: traceback.format_exception_only() encodes unicode message to
ASCII with backslashreplace error handler if str(value) failed
2010-05-05 12:40:49 +00:00
Thomas Heller
f3c157f639 Remove reference to unused source file. 2010-05-04 19:08:18 +00:00
Mark Dickinson
3b0b4ff19e Fix test_gzip failure on OS X. The failure was a result of trying to fflush
a file that wasn't open for writing.  Patch by Antoine Pitrou.
2010-05-04 18:45:27 +00:00
Thomas Heller
06a7e2069a On Windows, ctypes does no longer check the stack before and after
calling a foreign function.  This allows to use the unmodified libffi
library.

Remove most files from _ctypes/libffi_msvc, only two include files
stay (updated from _ctypes/libffi/...).  Other files are used in the
cross-platform _ctypes/libffi directory.
2010-05-04 18:44:42 +00:00
Mark Dickinson
ef9b4abfea Fix trailing whitespace. 2010-05-04 16:19:06 +00:00
Mark Dickinson
a8d2668818 Issue #1533: fix inconsistency in range function argument processing:
any non-float non-integer argument is now converted to an integer (if
possible) using its __int__ method.  Previously, only small arguments
were treated this way; larger arguments (those whose __int__ was
outside the range of a C long) would produce a TypeError.

Patch by Alexander Belopolsky (with minor modifications).
2010-05-04 16:18:25 +00:00
Mark Dickinson
4f96f5ffc6 Issue #8567: Fix incorrect precedence of signals in Decimal module.
When a Decimal operation raises multiple signals and more than one of
those signals is trapped, the specification determines the order in
which the signals should be handled.  In many cases this order wasn't
being followed, leading to the wrong Python exception being raised.
This commit fixes those cases, and adds extra tests.  The tests are
only enabled when EXTENDEDERRORTESTS is True, since they involve
rerunning each Decimal testcase several times.
2010-05-04 14:25:50 +00:00
Victor Stinner
7120219918 _pyio: Fix TextIOWrapper constructor: os has no device_encoding() function
_io module doesn't call this function which was introduced in Python3.
2010-05-04 11:35:36 +00:00
Alexandre Vassalotti
268e4872d3 Issue #8404: Fix set operations on dictionary views. 2010-05-04 03:21:51 +00:00
Andrew M. Kuchling
04b99cc68d Add some more items; the urlparse change is added twice 2010-05-04 01:24:22 +00:00
Brett Cannon
0d8a859a85 Pull a NULL pointer check up to cover more cases in the function.
Found using Clang's static analyzer.
2010-05-04 01:23:36 +00:00
Brett Cannon
a7f13ee3f5 Remove an unneeded variable and assignment.
Found using Clang's static analyzer.
2010-05-04 01:16:51 +00:00
Brett Cannon
945df9a388 Mention the code clean-up thanks to Clang's static analyzer in Modules.
Was not applied to modules that will not compile under OS X, dbmmodule.c,
getaddrinfo.c, and getnameinfo.c.
2010-05-04 01:04:53 +00:00
Brett Cannon
d0d2d31589 Fix some whitespace. 2010-05-04 01:01:00 +00:00
Brett Cannon
6d7b7be990 Remove an unneeded variable assignment.
Found using Clang's static analyzer.
2010-05-04 00:57:44 +00:00
Brett Cannon
23b581a6f4 Strip out extraneous whitespace, cast a some const char * to void * when
passed to free() and make a `char *` to a `const char *` as found by Clang's
static analyzer.
2010-05-04 00:52:41 +00:00
Brett Cannon
33e5dd8466 Fix a Py_DECREF to a Py_XDECREF.
Found using Clang's static analyzer.
2010-05-04 00:48:11 +00:00
Brett Cannon
87ab6ad4d6 Prevent a possible NULL de-reference and an unneeded variable assignment.
Found using Clang's static analyzer.
2010-05-04 00:36:00 +00:00
Brett Cannon
e894e93f4c Remove a redundant string length check and variable assignment.
Found with Clang's static analyzer.
2010-05-04 00:30:17 +00:00
Brett Cannon
7983284472 Fix two potential uninitialization errors and an unneeded assignment.
Found using Clang's static analyzer.
2010-05-03 23:57:15 +00:00
Brett Cannon
8ffe7bbb72 Remove unused variables and a variable initialization.
Found using Clang's static analyzer.
2010-05-03 23:51:28 +00:00
Brett Cannon
5d947cb324 Remove unneeded variable assignment.
Found using Clang's static analyzer.
2010-05-03 23:44:54 +00:00
Brett Cannon
8e9757e432 Remove unneeded variable mutation and initializations.
Found using Clang's static analyzer.
2010-05-03 23:43:49 +00:00
Brett Cannon
9824e7f57c Clean up whitespace and remove unneeded variable initialization as found by
Clang.
2010-05-03 23:42:40 +00:00
Brett Cannon
99ac9147cb Remove an unused variable.
Found using Clang's static analyzer.
2010-05-03 23:41:51 +00:00
Brett Cannon
949476ee58 Remove unneeded variable initialization.
Found using Clang's static analyzer.
2010-05-03 23:41:23 +00:00
Antoine Pitrou
f7fd8e4c94 Issue #7865: The close() method of :mod:io objects should not swallow
exceptions raised by the implicit flush().  Also ensure that calling
close() several times is supported.  Patch by Pascal Chambon.
2010-05-03 16:25:33 +00:00
Jesus Cea
c3ce9e357d wbits negative was documented SEVEN years ago 2010-05-03 16:09:21 +00:00
Vinay Sajip
27a1370ae0 Issue #8576: logging updated to remove usage of find_unused_port(). 2010-05-03 15:11:53 +00:00
Brett Cannon
c1f5c2f333 Update the Vim syntax highlight file. 2010-05-02 21:51:23 +00:00
Michael Foord
f9ffccea56 Fix unittest tests to not abuse traceback.format_exception 2010-05-02 20:39:42 +00:00
Antoine Pitrou
951919f558 Issue #4687: Fix accuracy of garbage collection runtimes displayed with
gc.DEBUG_STATS.
2010-05-02 19:51:14 +00:00
Ronald Oussoren
b0153cf7ac Small update to r80698 to ensure that webbrowser.open
uses the default browser.
2010-05-02 09:55:57 +00:00
Ronald Oussoren
4ef1c7e7ef For for issue #7192: with this patch webbrowser.get("firefox")
works on OSX
2010-05-02 09:48:21 +00:00
Mark Dickinson
328284adcf Improve error message from nb_int returning a non-integer, in various PyInt_As* functions: 2010-05-02 09:38:43 +00:00
Antoine Pitrou
8651810df9 Remove duplicate test 2010-05-01 20:26:58 +00:00
Antoine Pitrou
5cace78c87 Fix attribution. Travis didn't do much and he did a bad work.
(yes, this is a sensitive subject, sorry)
2010-05-01 12:16:39 +00:00
Andrew M. Kuchling
9fbbd3b83d Describe memoryview 2010-05-01 12:06:51 +00:00
Andrew M. Kuchling
7de14ac034 Minor grammar fix 2010-05-01 12:05:52 +00:00
Mark Dickinson
16cd2bea1d Fix incorrect use of a list as the target of an 'except' clause in test_decimal.py. 2010-05-01 11:46:20 +00:00
Senthil Kumaran
1b7f9e53b3 Fix issue8582: urllib.urlretrieve fails with ValueError: Invalid format string 2010-05-01 08:01:56 +00:00
Andrew M. Kuchling
d3b6022d0a Add various items 2010-05-01 01:19:16 +00:00
Antoine Pitrou
54f9f83e5c Issue #8576: Remove use of find_unused_port() in test_smtplib and
test_multiprocessing.  Patch by Paul Moore.
2010-04-30 23:08:48 +00:00
Marc-André Lemburg
6d5e579cc5 [issue8211] configure: ignore AC_PROG_CC hardcoded CFLAGS
Only override the AC_PROG_CC determined CFLAGS if they were set by the user.
This restores the default behavior in the common case of not having CFLAGS
defined when running configure.
2010-04-30 17:20:14 +00:00
Ronald Oussoren
9663ddaa74 Add notes about uninstalling a framework install to
Mac/README. Fixes issue 7107.
2010-04-30 15:11:22 +00:00
Ronald Oussoren
5d18cc6b46 Fix for issue 8476 2010-04-30 14:58:39 +00:00
Andrew M. Kuchling
c4ae73e5f7 Add item 2010-04-30 13:47:34 +00:00
Andrew M. Kuchling
b3437c9f95 Minor grammar re-wording 2010-04-30 13:46:55 +00:00