]> granicus.if.org Git - python/log
python
14 years agoIssue #8498: In socket.accept(), allow to specify 0 as a backlog value in
Antoine Pitrou [Tue, 10 May 2011 17:19:13 +0000 (19:19 +0200)]
Issue #8498: In socket.accept(), allow to specify 0 as a backlog value in
order to accept exactly one connection.  Patch by Daniel Evers.

14 years agoIssue #8498: In socket.accept(), allow to specify 0 as a backlog value in
Antoine Pitrou [Tue, 10 May 2011 17:16:29 +0000 (19:16 +0200)]
Issue #8498: In socket.accept(), allow to specify 0 as a backlog value in
order to accept exactly one connection.  Patch by Daniel Evers.

14 years agoIssue #12011: signal.signal() and signal.siginterrupt() raise an OSError,
Victor Stinner [Tue, 10 May 2011 15:13:00 +0000 (17:13 +0200)]
Issue #12011: signal.signal() and signal.siginterrupt() raise an OSError,
instead of a RuntimeError: OSError has an errno attribute.

14 years agoMerged trivial doc fix from 3.2.
Łukasz Langa [Tue, 10 May 2011 13:26:22 +0000 (15:26 +0200)]
Merged trivial doc fix from 3.2.

14 years agoActually print out the description of what changed.
Łukasz Langa [Tue, 10 May 2011 13:25:41 +0000 (15:25 +0200)]
Actually print out the description of what changed.

14 years agoIssue #12039: Add end_headers() call to avoid BadStatusLine.
Vinay Sajip [Tue, 10 May 2011 08:10:08 +0000 (09:10 +0100)]
Issue #12039: Add end_headers() call to avoid BadStatusLine.

14 years agomerge
Raymond Hettinger [Tue, 10 May 2011 07:36:35 +0000 (00:36 -0700)]
merge

14 years agomerge
Raymond Hettinger [Tue, 10 May 2011 07:35:48 +0000 (00:35 -0700)]
merge

14 years agoIssue 12047: Expand the style guide.
Raymond Hettinger [Tue, 10 May 2011 07:35:03 +0000 (00:35 -0700)]
Issue 12047: Expand the style guide.

14 years agoIssue #12039: Now suppress spurious select.error raised on FreeBSD when the server...
Vinay Sajip [Tue, 10 May 2011 06:48:28 +0000 (07:48 +0100)]
Issue #12039: Now suppress spurious select.error raised on FreeBSD when the server (an asyncore.dispatcher) is closed.

14 years agofaulthandler: improve_sigabrt() on Visual Studio
Victor Stinner [Mon, 9 May 2011 23:30:03 +0000 (01:30 +0200)]
faulthandler: improve_sigabrt() on Visual Studio

Use _set_abort_behavior() + abort() instead of raise(SIGABRT) which may write
an error message and/or open a popup asking to report the fault.

14 years ago(Merge 3.2) Empty merge, the fix was already applied to 3.3
Victor Stinner [Mon, 9 May 2011 22:49:53 +0000 (00:49 +0200)]
(Merge 3.2) Empty merge, the fix was already applied to 3.3

14 years ago(Merge 3.1) Issue #12012: ssl.PROTOCOL_SSLv2 becomes optional
Victor Stinner [Mon, 9 May 2011 22:48:41 +0000 (00:48 +0200)]
(Merge 3.1) Issue #12012: ssl.PROTOCOL_SSLv2 becomes optional

OpenSSL is now compiled with OPENSSL_NO_SSL2 defined (without the SSLv2
protocol) on Debian: fix the ssl module on Debian Testing and Debian Sid.

Optimize also ssl.get_protocol_name(): speed does matter!

14 years agoIssue #12012: ssl.PROTOCOL_SSLv2 becomes optional
Victor Stinner [Mon, 9 May 2011 22:38:00 +0000 (00:38 +0200)]
Issue #12012: ssl.PROTOCOL_SSLv2 becomes optional

OpenSSL is now compiled with OPENSSL_NO_SSL2 defined (without the SSLv2
protocol) on Debian: fix the ssl module on Debian Testing and Debian Sid.

Optimize also ssl.get_protocol_name(): speed does matter!

14 years ago(Merge 3.2) Issue #1195: Fix input() if it is interrupted by CTRL+d and then
Victor Stinner [Mon, 9 May 2011 22:21:26 +0000 (00:21 +0200)]
(Merge 3.2) Issue #1195: Fix input() if it is interrupted by CTRL+d and then
CTRL+c, clear the end-of-file indicator after CTRL+d.

14 years agoIssue #1195: Fix input() if it is interrupted by CTRL+d and then CTRL+c, clear
Victor Stinner [Mon, 9 May 2011 22:20:35 +0000 (00:20 +0200)]
Issue #1195: Fix input() if it is interrupted by CTRL+d and then CTRL+c, clear
the end-of-file indicator after CTRL+d.

14 years agoIssue #1195: Fix input() if it is interrupted by CTRL+d and then CTRL+c,
Victor Stinner [Mon, 9 May 2011 22:19:53 +0000 (00:19 +0200)]
Issue #1195: Fix input() if it is interrupted by CTRL+d and then CTRL+c,
clear the end-of-file indicator after CTRL+d.

14 years agoUpdate incorrect comment.
Vinay Sajip [Mon, 9 May 2011 21:05:50 +0000 (22:05 +0100)]
Update incorrect comment.

14 years agoIssue #12041: Make test_wait3 more robust.
Antoine Pitrou [Mon, 9 May 2011 19:17:02 +0000 (21:17 +0200)]
Issue #12041: Make test_wait3 more robust.

14 years agoos.dup()-then-close() can be replaced with detach()
Antoine Pitrou [Mon, 9 May 2011 19:00:28 +0000 (21:00 +0200)]
os.dup()-then-close() can be replaced with detach()

14 years agoRemove dead code from _multiprocessing
Antoine Pitrou [Mon, 9 May 2011 18:55:03 +0000 (20:55 +0200)]
Remove dead code from _multiprocessing

14 years agoMerged solution for #12036 from 3.2
Łukasz Langa [Mon, 9 May 2011 16:50:47 +0000 (18:50 +0200)]
Merged solution for #12036 from 3.2

14 years agoCloses #12036: ConfigParser: Document items() added the vars dictionary to the result
Łukasz Langa [Mon, 9 May 2011 16:49:42 +0000 (18:49 +0200)]
Closes #12036: ConfigParser: Document items() added the vars dictionary to the result

14 years agoImproved Windows test coverage.
Vinay Sajip [Mon, 9 May 2011 16:32:09 +0000 (17:32 +0100)]
Improved Windows test coverage.

14 years agoMerge with 3.2.
Ezio Melotti [Mon, 9 May 2011 15:42:32 +0000 (18:42 +0300)]
Merge with 3.2.

14 years agoMerge with 3.1.
Ezio Melotti [Mon, 9 May 2011 15:40:42 +0000 (18:40 +0300)]
Merge with 3.1.

14 years agoSome more tests were incorrectly marked as C specific.
Ezio Melotti [Mon, 9 May 2011 15:36:53 +0000 (18:36 +0300)]
Some more tests were incorrectly marked as C specific.

14 years agoIssue #3709: a flush_headers method to BaseHTTPRequestHandler which manages the
Senthil Kumaran [Mon, 9 May 2011 15:25:02 +0000 (23:25 +0800)]
Issue #3709: a flush_headers method to BaseHTTPRequestHandler which manages the
sending of headers to output stream and flushing the internal headers buffer.
Patch contribution by Andrew Schaaf

14 years agoIssue #11743: Rewrite multiprocessing connection classes in pure Python.
Antoine Pitrou [Mon, 9 May 2011 15:04:27 +0000 (17:04 +0200)]
Issue #11743: Rewrite multiprocessing connection classes in pure Python.

14 years agoIssue #11188: In log2 tests, create powers of 2 using ldexp(1, n) instead of the...
Mark Dickinson [Mon, 9 May 2011 13:02:45 +0000 (14:02 +0100)]
Issue #11188: In log2 tests, create powers of 2 using ldexp(1, n) instead of the less reliable 2.0**n.

14 years agoIssue #8407: Use an explicit cast for FreeBSD
Victor Stinner [Mon, 9 May 2011 12:45:38 +0000 (14:45 +0200)]
Issue #8407: Use an explicit cast for FreeBSD

pthread_t is a pointer, not an integer, on FreeBSD. It should fix the following
gcc warning:

passing argument 1 of ‘pthread_kill’ makes pointer from integer without a cast

14 years agofaulthandler: make quiet a gcc 4.6 warning (z was unused)
Victor Stinner [Mon, 9 May 2011 12:44:26 +0000 (14:44 +0200)]
faulthandler: make quiet a gcc 4.6 warning (z was unused)

14 years agoIssue #10811: Use TestCase.assertRaises() in the new test
Victor Stinner [Mon, 9 May 2011 10:50:41 +0000 (12:50 +0200)]
Issue #10811: Use TestCase.assertRaises() in the new test

14 years agoIssue #11888: Use system log2() when available
Victor Stinner [Mon, 9 May 2011 10:45:41 +0000 (12:45 +0200)]
Issue #11888: Use system log2() when available

I expect the system libc to use more accurate functions than Python. The GNU
libc uses for example FYL2X and FYL2XP1 hardware instructions on Intel FPU.

14 years ago#10811: Fix recursive usage of cursors. Instead of crashing, raise a ProgrammingError...
Gerhard Haering [Mon, 9 May 2011 10:24:09 +0000 (12:24 +0200)]
#10811: Fix recursive usage of cursors. Instead of crashing, raise a ProgrammingError now.

14 years agoGrammatical fix for a comment for log2, to avoid referring to an *algorithm* as monot...
Mark Dickinson [Mon, 9 May 2011 07:40:20 +0000 (08:40 +0100)]
Grammatical fix for a comment for log2, to avoid referring to an *algorithm* as monotonic.

14 years agoFix nonunique test ids in math_testcases.txt.
Mark Dickinson [Mon, 9 May 2011 07:18:57 +0000 (08:18 +0100)]
Fix nonunique test ids in math_testcases.txt.

14 years agoFix cut-and-paste typo in comment: log10 -> log2.
Mark Dickinson [Mon, 9 May 2011 07:05:00 +0000 (08:05 +0100)]
Fix cut-and-paste typo in comment: log10 -> log2.

14 years agomerge 11164
Martin v. Löwis [Mon, 9 May 2011 06:12:19 +0000 (08:12 +0200)]
merge 11164

14 years agomerge 11164
Martin v. Löwis [Mon, 9 May 2011 06:10:38 +0000 (08:10 +0200)]
merge 11164

14 years agoStop trying to use _xmlplus in the xml module. Closes #11164.
Martin v. Löwis [Mon, 9 May 2011 06:05:43 +0000 (08:05 +0200)]
Stop trying to use _xmlplus in the xml module. Closes #11164.
Patch by Arfrever Frehtes Taifersar Arahesis.

14 years agomerged
Martin v. Löwis [Mon, 9 May 2011 05:42:48 +0000 (07:42 +0200)]
merged

14 years agoThe option is actually --no-as-needed.
Martin v. Löwis [Mon, 9 May 2011 05:42:28 +0000 (07:42 +0200)]
The option is actually --no-as-needed.

14 years agomerge 11347.
Martin v. Löwis [Mon, 9 May 2011 05:41:32 +0000 (07:41 +0200)]
merge 11347.

14 years agoUse --as-needed when linking libpython3.so. Closes #11347.
Martin v. Löwis [Mon, 9 May 2011 05:37:45 +0000 (07:37 +0200)]
Use --as-needed when linking libpython3.so. Closes #11347.
Patch by Arfrever Frehtes Taifersar Arahesis.

14 years ago#11910: merge with 3.2.
Ezio Melotti [Mon, 9 May 2011 04:30:21 +0000 (07:30 +0300)]
#11910: merge with 3.2.

14 years ago#11910: merge with 3.1.
Ezio Melotti [Mon, 9 May 2011 04:27:20 +0000 (07:27 +0300)]
#11910: merge with 3.1.

14 years agoSome tests were incorrectly marked as C specific.
Ezio Melotti [Mon, 9 May 2011 04:20:47 +0000 (07:20 +0300)]
Some tests were incorrectly marked as C specific.

14 years ago#11910: Fix test_heapq to skip the C tests when _heapq is missing.
Ezio Melotti [Mon, 9 May 2011 04:15:04 +0000 (07:15 +0300)]
#11910: Fix test_heapq to skip the C tests when _heapq is missing.

14 years ago#11910: merge with 3.2.
Ezio Melotti [Mon, 9 May 2011 03:44:36 +0000 (06:44 +0300)]
#11910: merge with 3.2.

14 years ago#11910: merge with 3.1.
Ezio Melotti [Mon, 9 May 2011 03:43:14 +0000 (06:43 +0300)]
#11910: merge with 3.1.

14 years ago#11910: change import_fresh_module to return None when one of the "fresh" modules...
Ezio Melotti [Mon, 9 May 2011 03:41:55 +0000 (06:41 +0300)]
#11910: change import_fresh_module to return None when one of the "fresh" modules can not be imported.

14 years agoMerge with 3.2.
Ezio Melotti [Mon, 9 May 2011 01:00:47 +0000 (04:00 +0300)]
Merge with 3.2.

14 years agoMerge with 3.1.
Ezio Melotti [Mon, 9 May 2011 01:00:06 +0000 (04:00 +0300)]
Merge with 3.1.

14 years agoAdd a note to the str.find doc to suggest the use of the "in" operator.
Ezio Melotti [Mon, 9 May 2011 00:54:30 +0000 (03:54 +0300)]
Add a note to the str.find doc to suggest the use of the "in" operator.

14 years agonote the point of having log2
Benjamin Peterson [Mon, 9 May 2011 00:48:08 +0000 (19:48 -0500)]
note the point of having log2

14 years agoClose #12032: Fix scripts/crlf.py for Python 3
Victor Stinner [Sun, 8 May 2011 23:29:30 +0000 (01:29 +0200)]
Close #12032: Fix scripts/crlf.py for Python 3

14 years agoIssue #11888: Add log2 function to math module. Patch written by Mark
Victor Stinner [Sun, 8 May 2011 23:01:09 +0000 (01:01 +0200)]
Issue #11888: Add log2 function to math module. Patch written by Mark
Dickinson.

14 years agoIssue #12012: ssl.PROTOCOL_SSLv2 becomes optional
Victor Stinner [Sun, 8 May 2011 22:42:58 +0000 (00:42 +0200)]
Issue #12012: ssl.PROTOCOL_SSLv2 becomes optional

OpenSSL is now compiled with OPENSSL_NO_SSL2 defined (without the SSLv2
protocol) on Debian: fix the ssl module on Debian Testing and Debian Sid.

Optimize also ssl.get_protocol_name(): speed does matter!

14 years agomerge 3.2
Benjamin Peterson [Sun, 8 May 2011 20:35:09 +0000 (15:35 -0500)]
merge 3.2

14 years agomerge 3.1
Benjamin Peterson [Sun, 8 May 2011 20:34:24 +0000 (15:34 -0500)]
merge 3.1

14 years agoput import_fresh_module in __all__
Benjamin Peterson [Sun, 8 May 2011 20:32:46 +0000 (15:32 -0500)]
put import_fresh_module in __all__

14 years agoRefactor buggy test to correctly use the msg argument of assertRaises.
Ezio Melotti [Sun, 8 May 2011 17:23:57 +0000 (20:23 +0300)]
Refactor buggy test to correctly use the msg argument of assertRaises.

14 years agoMerge with 3.2.
Ezio Melotti [Sun, 8 May 2011 17:01:36 +0000 (20:01 +0300)]
Merge with 3.2.

14 years agoMerge with 3.1.
Ezio Melotti [Sun, 8 May 2011 17:00:03 +0000 (20:00 +0300)]
Merge with 3.1.

14 years agoAdd back Misc/NEWS entry that got lost during merge, and fix a couple of other things.
Ezio Melotti [Sun, 8 May 2011 16:58:08 +0000 (19:58 +0300)]
Add back Misc/NEWS entry that got lost during merge, and fix a couple of other things.

14 years agoIssue #8407: Remove debug code from test_signal
Victor Stinner [Sun, 8 May 2011 00:10:36 +0000 (02:10 +0200)]
Issue #8407: Remove debug code from test_signal

I don't think that we still need it.

14 years agoIssue #8407: The signal handler writes the signal number as a single byte
Victor Stinner [Sun, 8 May 2011 00:03:15 +0000 (02:03 +0200)]
Issue #8407: The signal handler writes the signal number as a single byte
instead of a nul byte into the wakeup file descriptor. So it is possible to
wait more than one signal and know which signals were raised.

14 years agoIssue #8407: Add pthread_kill(), sigpending() and sigwait() functions to the
Victor Stinner [Sat, 7 May 2011 23:46:11 +0000 (01:46 +0200)]
Issue #8407: Add pthread_kill(), sigpending() and sigwait() functions to the
signal module.

14 years agoMerge
Antoine Pitrou [Sat, 7 May 2011 17:48:40 +0000 (19:48 +0200)]
Merge

14 years agoMerge
Antoine Pitrou [Sat, 7 May 2011 17:48:18 +0000 (19:48 +0200)]
Merge

14 years agoMerge
Antoine Pitrou [Sat, 7 May 2011 17:47:47 +0000 (19:47 +0200)]
Merge

14 years agoMerge
Antoine Pitrou [Sat, 7 May 2011 17:47:24 +0000 (19:47 +0200)]
Merge

14 years agoMerge
Antoine Pitrou [Sat, 7 May 2011 17:45:34 +0000 (19:45 +0200)]
Merge

14 years agoMerge: Issue #11927: SMTP_SSL now uses port 465 by default as documented.
Antoine Pitrou [Sat, 7 May 2011 17:42:39 +0000 (19:42 +0200)]
Merge: Issue #11927: SMTP_SSL now uses port 465 by default as documented.

14 years agoMerge: Issue #11927: SMTP_SSL now uses port 465 by default as documented.
Antoine Pitrou [Sat, 7 May 2011 17:41:33 +0000 (19:41 +0200)]
Merge: Issue #11927: SMTP_SSL now uses port 465 by default as documented.

14 years agoIssue #11927: SMTP_SSL now uses port 465 by default as documented. Patch by Kasun...
Antoine Pitrou [Sat, 7 May 2011 17:39:37 +0000 (19:39 +0200)]
Issue #11927: SMTP_SSL now uses port 465 by default as documented.  Patch by Kasun Herath.

14 years agomerge
Giampaolo Rodola' [Sat, 7 May 2011 17:35:36 +0000 (19:35 +0200)]
merge

14 years agomerge with 3.2
Giampaolo Rodola' [Sat, 7 May 2011 17:11:06 +0000 (19:11 +0200)]
merge with 3.2

14 years agomerge with 3.1
Giampaolo Rodola' [Sat, 7 May 2011 17:09:34 +0000 (19:09 +0200)]
merge with 3.1

14 years ago#12002 - ftplib's abort() method raises TypeError
Giampaolo Rodola' [Sat, 7 May 2011 17:03:47 +0000 (19:03 +0200)]
#12002 - ftplib's abort() method raises TypeError

14 years ago#5421: merge with 3.2.
Ezio Melotti [Sat, 7 May 2011 16:51:47 +0000 (19:51 +0300)]
#5421: merge with 3.2.

14 years ago#5421: merge with 3.1.
Ezio Melotti [Sat, 7 May 2011 16:50:28 +0000 (19:50 +0300)]
#5421: merge with 3.1.

14 years ago#5421: add tests.
Ezio Melotti [Sat, 7 May 2011 16:47:48 +0000 (19:47 +0300)]
#5421: add tests.

14 years agoreverting 9688977ef567 committed by accident
Giampaolo Rodola' [Sat, 7 May 2011 16:47:31 +0000 (18:47 +0200)]
reverting 9688977ef567 committed by accident

14 years agoClosed resource leak in SysLogHandler.
Vinay Sajip [Sat, 7 May 2011 16:01:22 +0000 (17:01 +0100)]
Closed resource leak in SysLogHandler.

14 years ago#12017: merge with 3.2.
Ezio Melotti [Sat, 7 May 2011 15:29:14 +0000 (18:29 +0300)]
#12017: merge with 3.2.

14 years ago#12017: merge with 3.1.
Ezio Melotti [Sat, 7 May 2011 15:15:34 +0000 (18:15 +0300)]
#12017: merge with 3.1.

14 years agotest_ftplib.py: change client default timeout from 10 to 2. Hanging for 10 seconds...
Giampaolo Rodola' [Sat, 7 May 2011 15:08:34 +0000 (17:08 +0200)]
test_ftplib.py: change client default timeout from 10 to 2. Hanging for 10 seconds is way too much when we expect a server response which never comes in.

14 years agomerge heads
Giampaolo Rodola' [Sat, 7 May 2011 15:08:04 +0000 (17:08 +0200)]
merge heads

14 years agotest_ftplib.py: change client default timeout from 10 to 2. Hanging for 10 seconds...
Giampaolo Rodola' [Sat, 7 May 2011 15:02:21 +0000 (17:02 +0200)]
test_ftplib.py: change client default timeout from 10 to 2. Hanging for 10 seconds is way too much when we expect a server response which never comes in.

14 years ago#12017: Fix segfault in json.loads() while decoding highly-nested objects using the...
Ezio Melotti [Sat, 7 May 2011 14:58:09 +0000 (17:58 +0300)]
#12017: Fix segfault in json.loads() while decoding highly-nested objects using the C accelerations.

14 years agoChanged where socket close is called on connection failure.
Vinay Sajip [Sat, 7 May 2011 14:55:47 +0000 (15:55 +0100)]
Changed where socket close is called on connection failure.

14 years ago#11072- applying http://bugs.python.org/review/11072/show suggestions
Giampaolo Rodola' [Sat, 7 May 2011 14:06:59 +0000 (16:06 +0200)]
#11072- applying http://bugs.python.org/review/11072/show suggestions

14 years agoMerge.
Vinay Sajip [Sat, 7 May 2011 12:44:50 +0000 (13:44 +0100)]
Merge.

14 years agoClose socket on connection failure.
Vinay Sajip [Sat, 7 May 2011 12:44:11 +0000 (13:44 +0100)]
Close socket on connection failure.

14 years agoMerge: Fix potential resource leak in test_mmap.
Nadeem Vawda [Sat, 7 May 2011 12:36:14 +0000 (14:36 +0200)]
Merge: Fix potential resource leak in test_mmap.

14 years agoMerge: Fix potential resource leak in test_mmap.
Nadeem Vawda [Sat, 7 May 2011 12:35:36 +0000 (14:35 +0200)]
Merge: Fix potential resource leak in test_mmap.

14 years agoFix potential resource leak in test_mmap.
Nadeem Vawda [Sat, 7 May 2011 12:35:05 +0000 (14:35 +0200)]
Fix potential resource leak in test_mmap.

14 years agoMerge: #11277: Fix tests - crash will not trigger if the file is closed and reopened.
Nadeem Vawda [Sat, 7 May 2011 12:17:27 +0000 (14:17 +0200)]
Merge: #11277: Fix tests - crash will not trigger if the file is closed and reopened.