]>
granicus.if.org Git - python/log
Ezio Melotti [Sun, 10 Apr 2011 09:59:16 +0000 (12:59 +0300)]
#2650: re.escape() no longer escapes the "_".
Ross Lagerwall [Sun, 10 Apr 2011 07:34:35 +0000 (09:34 +0200)]
Merge with 3.2
Ross Lagerwall [Sun, 10 Apr 2011 07:30:04 +0000 (09:30 +0200)]
Issue #11818: Fix tempfile examples for Python 3.
Eli Bendersky [Sun, 10 Apr 2011 04:37:26 +0000 (07:37 +0300)]
Issue #9904: fix and clarify some comments + fix indentation in symtable code
Raymond Hettinger [Sun, 10 Apr 2011 02:41:31 +0000 (19:41 -0700)]
Beautify and modernize the SequenceMatcher example
Raymond Hettinger [Sun, 10 Apr 2011 02:41:00 +0000 (19:41 -0700)]
Beautify and modernize the SequenceMatcher example
Ned Deily [Sat, 9 Apr 2011 21:58:04 +0000 (14:58 -0700)]
Issue9670: Merge backout from 3.2.
Ned Deily [Sat, 9 Apr 2011 21:53:47 +0000 (14:53 -0700)]
Issue9670: Merge backout to 3.2.
Ned Deily [Sat, 9 Apr 2011 21:50:59 +0000 (14:50 -0700)]
Issue9670: Back out changeset
378b40d71175 ; test fails on other platforms
and on OS X with pydebug.
Antoine Pitrou [Sat, 9 Apr 2011 21:49:58 +0000 (23:49 +0200)]
Issue #11757: select.select() now raises ValueError when a negative timeout
is passed (previously, a select.error with EINVAL would be raised). Patch
by Charles-François Natali.
Raymond Hettinger [Sat, 9 Apr 2011 20:00:17 +0000 (13:00 -0700)]
Replace constant tuple with constant set.
Raymond Hettinger [Sat, 9 Apr 2011 19:57:00 +0000 (12:57 -0700)]
Fix nit (make spelling consistent in prototype)
Ned Deily [Sat, 9 Apr 2011 19:47:12 +0000 (12:47 -0700)]
Issue #9670: merge with current
Ned Deily [Sat, 9 Apr 2011 19:37:55 +0000 (12:37 -0700)]
Issue #9670: merge with 3.2
Ned Deily [Sat, 9 Apr 2011 19:32:12 +0000 (12:32 -0700)]
Issue #9670: Increase the default stack size for secondary threads on
Mac OS X and FreeBSD to reduce the chances of a crash instead of a
"maximum recursion depth" RuntimeError exception.
(Patch by Ronald Oussoren)
Ross Lagerwall [Sat, 9 Apr 2011 18:12:43 +0000 (20:12 +0200)]
Merge with 3.2
Ross Lagerwall [Sat, 9 Apr 2011 18:05:04 +0000 (20:05 +0200)]
Merge with 3.1
Ross Lagerwall [Sat, 9 Apr 2011 17:30:03 +0000 (19:30 +0200)]
Issue #11719: Fix message about unexpected test_msilib skip.
Patch by Nadeem Vawda.
Victor Stinner [Sat, 9 Apr 2011 14:01:55 +0000 (16:01 +0200)]
(Merge 3.2) Issue #11650: PyOS_StdioReadline() retries fgets() if it was
interrupted (EINTR), for example if the program is stopped with CTRL+z on Mac
OS X. Patch written by Charles-Francois Natali.
Victor Stinner [Sat, 9 Apr 2011 13:59:25 +0000 (15:59 +0200)]
(Merge 3.1) Issue #11650: PyOS_StdioReadline() retries fgets() if it was
interrupted (EINTR), for example if the program is stopped with CTRL+z on Mac
OS X. Patch written by Charles-Francois Natali.
Victor Stinner [Sat, 9 Apr 2011 13:55:44 +0000 (15:55 +0200)]
Issue #11650: PyOS_StdioReadline() retries fgets() if it was interrupted
(EINTR), for example if the program is stopped with CTRL+z on Mac OS X. Patch
written by Charles-Francois Natali.
Victor Stinner [Fri, 8 Apr 2011 22:47:23 +0000 (00:47 +0200)]
Improve faulthandler.enable(all_threads=True)
faulthandler.enable(all_threads=True) dumps the tracebacks even if it is not
possible to get the state of the current thread
Create also the get_thread_state() subfunction to factorize the code.
Victor Stinner [Fri, 8 Apr 2011 11:39:59 +0000 (13:39 +0200)]
faulthandler: dump_tracebacks_later() displays also the timeout
Victor Stinner [Fri, 8 Apr 2011 11:00:31 +0000 (13:00 +0200)]
faulthandler: fix variable name, timeout_ms => timeout_us
The comment was already correct.
Victor Stinner [Fri, 8 Apr 2011 10:57:06 +0000 (12:57 +0200)]
faulthandler: one more time, fix usage of locks in the watchdog thread
* Write a new test to ensure that dump_tracebacks_later() still works if
it was already called and then cancelled before
* Don't use a variable to check the status of the thread, only rely on locks
* The thread only releases cancel_event if it was able to acquire it (if
the timer was interrupted)
* The main thread always hold this lock. It is only released when
faulthandler_thread() is interrupted until this thread exits, or at Python
exit.
Victor Stinner [Fri, 8 Apr 2011 10:48:15 +0000 (12:48 +0200)]
faulthandler: fix unregister() if it is called before register()
Fix a crash: don't read from NULL.
R David Murray [Fri, 8 Apr 2011 01:00:33 +0000 (21:00 -0400)]
Merge #11492: fix header truncation on folding when there are runs of split chars.
Not a complete fix for this issue.
R David Murray [Fri, 8 Apr 2011 00:56:31 +0000 (20:56 -0400)]
Merge #11492: fix header truncation on folding when there are runs of split chars.
Not a complete fix for this issue.
R David Murray [Fri, 8 Apr 2011 00:54:03 +0000 (20:54 -0400)]
#11492: fix header truncation on folding when there are runs of split chars.
Not a complete fix for this issue.
R David Murray [Fri, 8 Apr 2011 00:42:28 +0000 (20:42 -0400)]
Merge: Improve test coverage of _split_ascii method.
R David Murray [Fri, 8 Apr 2011 00:40:01 +0000 (20:40 -0400)]
Merge: Improve test coverage of _split_ascii method.
R David Murray [Fri, 8 Apr 2011 00:37:17 +0000 (20:37 -0400)]
Improve test coverage of _split_ascii method.
Vinay Sajip [Fri, 8 Apr 2011 00:35:04 +0000 (01:35 +0100)]
Merged whitespace fix.
Vinay Sajip [Fri, 8 Apr 2011 00:34:20 +0000 (01:34 +0100)]
Normalised whitespace.
Vinay Sajip [Fri, 8 Apr 2011 00:32:27 +0000 (01:32 +0100)]
Merged doc fix in 3.2.
Vinay Sajip [Fri, 8 Apr 2011 00:30:51 +0000 (01:30 +0100)]
Updated Formatter documentation.
Brian Quinlan [Thu, 7 Apr 2011 22:30:41 +0000 (08:30 +1000)]
Merge to tip.
Brian Quinlan [Thu, 7 Apr 2011 22:19:33 +0000 (08:19 +1000)]
Issue #11777: Executor.map does not submit futures until iter.next() is called
Antoine Pitrou [Thu, 7 Apr 2011 21:22:28 +0000 (23:22 +0200)]
Fix faulthandler timeout to avoid breaking buildbots
Ezio Melotti [Thu, 7 Apr 2011 19:27:44 +0000 (22:27 +0300)]
#7311: merge with 3.2.
Ezio Melotti [Thu, 7 Apr 2011 19:03:31 +0000 (22:03 +0300)]
#7311: fix html.parser to accept non-ASCII attribute values.
Barry Warsaw [Thu, 7 Apr 2011 14:48:29 +0000 (10:48 -0400)]
Refinement by Stefan Krah (see issue 11715, msg133194) to exit early if the
dpkg-architecture command is not found on $PATH. This should fix the failures
on FreeBSD and Solaris, which do not create the target file via I/O
redirection if the command isn't found (unlike Linux and OS X which do).
Barry Warsaw [Thu, 7 Apr 2011 14:45:07 +0000 (10:45 -0400)]
Refinement by Stefan Krah (see issue 11715, msg133194) to exit early if the
dpkg-architecture command is not found on $PATH. This should fix the failures
on FreeBSD and Solaris, which do not create the target file via I/O
redirection if the command isn't found (unlike Linux and OS X which do).
Barry Warsaw [Thu, 7 Apr 2011 14:40:36 +0000 (10:40 -0400)]
Refinement by Stefan Krah (see issue 11715, msg133194) to exit early if the
dpkg-architecture command is not found on $PATH. This should fix the failures
on FreeBSD and Solaris, which do not create the target file via I/O
redirection if the command isn't found (unlike Linux and OS X which do).
Victor Stinner [Thu, 7 Apr 2011 09:50:25 +0000 (11:50 +0200)]
faulthandler: fix compilating without threads
Victor Stinner [Thu, 7 Apr 2011 09:39:03 +0000 (11:39 +0200)]
faulthandler: we don't use (or need) SA_SIGINFO flag of sigaction()
Victor Stinner [Thu, 7 Apr 2011 09:37:19 +0000 (11:37 +0200)]
faulthandler: check PyThreadState_Get() result in dump_tracebacks_later()
Cleanup also the code
Alexander Belopolsky [Thu, 7 Apr 2011 04:16:22 +0000 (00:16 -0400)]
Removed 'or long integer' from bin, oct, and hex docstrings.
Alexander Belopolsky [Thu, 7 Apr 2011 04:15:33 +0000 (00:15 -0400)]
Removed 'or long integer' from bin, oct, and hex docstrings.
Antoine Pitrou [Wed, 6 Apr 2011 20:54:14 +0000 (22:54 +0200)]
Issue #11766: increase countdown waiting for a pool of processes to start
up. Hopefully fixes transient buildbot failures.
Antoine Pitrou [Wed, 6 Apr 2011 20:51:17 +0000 (22:51 +0200)]
Issue #11766: increase countdown waiting for a pool of processes to start
up. Hopefully fixes transient buildbot failures.
Barry Warsaw [Wed, 6 Apr 2011 19:19:25 +0000 (15:19 -0400)]
Issue 11715: Merge multiarch fix from 3.1 branch.
Barry Warsaw [Wed, 6 Apr 2011 19:19:05 +0000 (15:19 -0400)]
Issue 11715: Merge multiarch fix from 3.1 branch.
Barry Warsaw [Wed, 6 Apr 2011 19:18:12 +0000 (15:18 -0400)]
Issue 11715: Build extension modules on multiarch Debian and Ubuntu by
extending search paths to include multiarch directories.
R David Murray [Wed, 6 Apr 2011 13:35:57 +0000 (09:35 -0400)]
#
1690608 : make formataddr RFC2047 aware.
Patch by Torsten Becker.
R David Murray [Wed, 6 Apr 2011 12:16:13 +0000 (08:16 -0400)]
Merge #11605: don't use set/get_payload in feedparser; they do conversions.
R David Murray [Wed, 6 Apr 2011 12:13:02 +0000 (08:13 -0400)]
#11605: don't use set/get_payload in feedparser; they do conversions.
Really the whole API needs to be gone over to restore the
separation of concerns; but that's what email6 is about.
Senthil Kumaran [Wed, 6 Apr 2011 06:16:08 +0000 (14:16 +0800)]
merge from 3.2
Senthil Kumaran [Wed, 6 Apr 2011 06:11:09 +0000 (14:11 +0800)]
Merge from 3.1
Senthil Kumaran [Wed, 6 Apr 2011 04:54:06 +0000 (12:54 +0800)]
Issue #10762: Guard against invalid/non-supported format string '%f' on Windows. Patch Santoso Wijaya.
Alexander Belopolsky [Wed, 6 Apr 2011 00:43:15 +0000 (20:43 -0400)]
Issue #11576: Fixed timedelta subtraction glitch on big timedelta values
Alexander Belopolsky [Wed, 6 Apr 2011 00:07:38 +0000 (20:07 -0400)]
Issue #11576: Fixed timedelta subtraction glitch on big timedelta values
Benjamin Peterson [Tue, 5 Apr 2011 22:25:14 +0000 (17:25 -0500)]
implement tp_clear
Antoine Pitrou [Tue, 5 Apr 2011 16:13:06 +0000 (18:13 +0200)]
Try to fix sporadic test_multiprocessing failure
Antoine Pitrou [Tue, 5 Apr 2011 16:12:15 +0000 (18:12 +0200)]
Try to fix sporadic test_multiprocessing failure
Antoine Pitrou [Tue, 5 Apr 2011 16:11:33 +0000 (18:11 +0200)]
Try to fix sporadic test_multiprocessing failure
Ross Lagerwall [Tue, 5 Apr 2011 14:07:49 +0000 (16:07 +0200)]
Merge with 3.2
Ross Lagerwall [Tue, 5 Apr 2011 13:48:47 +0000 (15:48 +0200)]
Merge with 3.1
Ross Lagerwall [Tue, 5 Apr 2011 13:34:00 +0000 (15:34 +0200)]
Issue #10963: Ensure that subprocess.communicate() never raises EPIPE.
Victor Stinner [Tue, 5 Apr 2011 11:13:08 +0000 (13:13 +0200)]
Issue #11757: subprocess ensures that select() and poll() timeout >= 0
Victor Stinner [Tue, 5 Apr 2011 10:21:35 +0000 (12:21 +0200)]
Issue #11707: Fix compilation errors with Visual Studio
Fix also a compiler (gcc) warning.
Raymond Hettinger [Tue, 5 Apr 2011 09:33:54 +0000 (02:33 -0700)]
Issue #11707: Fast C version of functools.cmp_to_key()
Victor Stinner [Tue, 5 Apr 2011 00:29:30 +0000 (02:29 +0200)]
Issue #11768: add debug messages in test_threadsignals.test_signals
Victor Stinner [Mon, 4 Apr 2011 23:48:03 +0000 (01:48 +0200)]
Issue #9319: Include the filename in "Non-UTF8 code ..." syntax error.
Victor Stinner [Mon, 4 Apr 2011 22:39:01 +0000 (00:39 +0200)]
Issue #10785: Store the filename as Unicode in the Python parser.
Victor Stinner [Mon, 4 Apr 2011 21:42:30 +0000 (23:42 +0200)]
Issue #11765: don't test time.sleep() in test_faulthandler
time.time() and/or time.sleep() are not accurate on Windows, don't test them
in test_faulthandler. Anyway, the check was written for an old implementation
of dump_tracebacks_later(), it is not more needed.
Victor Stinner [Mon, 4 Apr 2011 21:05:53 +0000 (23:05 +0200)]
Issue #11619: _PyImport_LoadDynamicModule() doesn't encode the path to bytes
on Windows.
Antoine Pitrou [Mon, 4 Apr 2011 20:00:45 +0000 (22:00 +0200)]
Try to fix sporadic failure in test_thread/test_threading
Antoine Pitrou [Mon, 4 Apr 2011 20:00:10 +0000 (22:00 +0200)]
Try to fix sporadic failure in test_thread/test_threading
Antoine Pitrou [Mon, 4 Apr 2011 19:59:09 +0000 (21:59 +0200)]
Try to fix sporadic failure in test_thread/test_threading
Antoine Pitrou [Mon, 4 Apr 2011 19:09:05 +0000 (21:09 +0200)]
Clarify that GzipFile.read1() is now implemented
Antoine Pitrou [Mon, 4 Apr 2011 19:06:20 +0000 (21:06 +0200)]
Clarify that GzipFile.read1() isn't implemented.
Antoine Pitrou [Mon, 4 Apr 2011 19:00:37 +0000 (21:00 +0200)]
Issue #10791: Implement missing method GzipFile.read1(), allowing GzipFile
to be wrapped in a TextIOWrapper. Patch by Nadeem Vawda.
Antoine Pitrou [Mon, 4 Apr 2011 18:55:48 +0000 (20:55 +0200)]
Ignore other MSVC by-products
Antoine Pitrou [Mon, 4 Apr 2011 18:55:12 +0000 (20:55 +0200)]
Ignore AMD64 build files under Windows
Antoine Pitrou [Mon, 4 Apr 2011 18:52:50 +0000 (20:52 +0200)]
Ignore build/ and Doc/build
brian.curtin [Mon, 4 Apr 2011 18:00:49 +0000 (13:00 -0500)]
Add x64-temp to ignore, prepend a forward slash to "build/" to include
PCbuild/ changes (for VS project files, etc).
Antoine Pitrou [Mon, 4 Apr 2011 17:52:56 +0000 (19:52 +0200)]
Issue #11761: make tests for gc.get_count() less fragile
Antoine Pitrou [Mon, 4 Apr 2011 17:51:33 +0000 (19:51 +0200)]
Issue #11761: make tests for gc.get_count() less fragile
Antoine Pitrou [Mon, 4 Apr 2011 17:50:42 +0000 (19:50 +0200)]
Issue #11761: make tests for gc.get_count() less fragile
Raymond Hettinger [Mon, 4 Apr 2011 16:28:25 +0000 (09:28 -0700)]
Update timeit to use the new string formatting syntax.
Victor Stinner [Mon, 4 Apr 2011 10:54:33 +0000 (12:54 +0200)]
Reenable regrtest.py timeout (30 min): #11738 and #11753 looks to be fixed
Victor Stinner [Mon, 4 Apr 2011 09:05:21 +0000 (11:05 +0200)]
Issue #11753: faulthandler thread uses pthread_sigmask()
The thread must not receive any signal. If the thread receives a signal,
sem_timedwait() is interrupted and returns EINTR, but in this case,
PyThread_acquire_lock_timed() retries sem_timedwait() and the main thread is
not aware of the signal. The problem is that some tests expect that the main
thread receives the signal, not faulthandler handler, which should be
invisible.
On Linux, the signal looks to be received by the main thread, whereas on
FreeBSD, it can be any thread.
Steven Bethard [Mon, 4 Apr 2011 00:14:25 +0000 (02:14 +0200)]
Merge
Steven Bethard [Mon, 4 Apr 2011 00:10:40 +0000 (02:10 +0200)]
Issue #9347: Fix formatting for tuples in argparse type= error messages.
Steven Bethard [Sun, 3 Apr 2011 23:53:02 +0000 (01:53 +0200)]
Issue #9347: Fix formatting for tuples in argparse type= error messages.
Antoine Pitrou [Sun, 3 Apr 2011 23:50:50 +0000 (01:50 +0200)]
Fix TraceCallbackTests to not use bound parameters (followup to issue #11688)
Antoine Pitrou [Sun, 3 Apr 2011 23:22:06 +0000 (01:22 +0200)]
Issue #11749: try to fix transient test_socket failure
Antoine Pitrou [Sun, 3 Apr 2011 23:21:37 +0000 (01:21 +0200)]
Issue #11749: try to fix transient test_socket failure
Antoine Pitrou [Sun, 3 Apr 2011 22:50:01 +0000 (00:50 +0200)]
Improve error message in test