]> granicus.if.org Git - python/log
python
14 years agofix whitespace
Gregory P. Smith [Sat, 14 May 2011 22:35:56 +0000 (15:35 -0700)]
fix whitespace

14 years agomerge heads
Gregory P. Smith [Sat, 14 May 2011 22:32:19 +0000 (15:32 -0700)]
merge heads

14 years agoMerge: #8650: Make zlib.[de]compressobj().[de]compress() 64-bit clean.
Nadeem Vawda [Sat, 14 May 2011 22:23:40 +0000 (00:23 +0200)]
Merge: #8650: Make zlib.[de]compressobj().[de]compress() 64-bit clean.

Raise an OverflowError if the input data is too large, instead of silently
truncating the input and returning an incorrect result.

14 years agoMerge: #8650: Make zlib.[de]compressobj().[de]compress() 64-bit clean.
Nadeem Vawda [Sat, 14 May 2011 22:20:52 +0000 (00:20 +0200)]
Merge: #8650: Make zlib.[de]compressobj().[de]compress() 64-bit clean.

Raise an OverflowError if the input data is too large, instead of silently
truncating the input and returning an incorrect result.

14 years agoIssue #8650: Make zlib.[de]compressobj().[de]compress() 64-bit clean.
Nadeem Vawda [Sat, 14 May 2011 22:19:50 +0000 (00:19 +0200)]
Issue #8650: Make zlib.[de]compressobj().[de]compress() 64-bit clean.

Raise an OverflowError if the input data is too large, instead of silently
truncating the input and returning an incorrect result.

14 years agoFixes Issue #12059: Properly handle missing hash functions even when
Gregory P. Smith [Sat, 14 May 2011 22:15:49 +0000 (15:15 -0700)]
Fixes Issue #12059: Properly handle missing hash functions even when
the expected builtin modules are not present.

This includes a unittest for __get_builtin_constructor() in the face
of such an error.

14 years agoMerge heads(!)
Kurt B. Kaiser [Sat, 14 May 2011 21:51:10 +0000 (17:51 -0400)]
Merge heads(!)

14 years agoMerge heads (!)
Kurt B. Kaiser [Sat, 14 May 2011 21:50:02 +0000 (17:50 -0400)]
Merge heads (!)

14 years agoMerge from 3.2
Kurt B. Kaiser [Sat, 14 May 2011 21:46:44 +0000 (17:46 -0400)]
Merge from 3.2

Issue #6378: Further adjust idle.bat to start associated Python

14 years agoMerge heads
Kurt B. Kaiser [Sat, 14 May 2011 21:31:54 +0000 (17:31 -0400)]
Merge heads

14 years agoMerge heads
Kurt B. Kaiser [Sat, 14 May 2011 21:30:58 +0000 (17:30 -0400)]
Merge heads

14 years agoMerge from 3.1
Kurt B. Kaiser [Sat, 14 May 2011 21:22:14 +0000 (17:22 -0400)]
Merge from 3.1
Issue #6378: Further adjust idle.bat to start associated Python

14 years agoIssue #6378: Further adjust idle.bat to start associated Python
Kurt B. Kaiser [Sat, 14 May 2011 21:20:09 +0000 (17:20 -0400)]
Issue #6378: Further adjust idle.bat to start associated Python

14 years agoMerge fix for memory leaks in zlib.compress() and .decompress().
Nadeem Vawda [Sat, 14 May 2011 21:18:07 +0000 (23:18 +0200)]
Merge fix for memory leaks in zlib.compress() and .decompress().

Also, make sure that test_zlib tests decompress() for overly-large inputs.

14 years agoFix memory leaks in zlib.compress() and .decompress().
Nadeem Vawda [Sat, 14 May 2011 21:07:36 +0000 (23:07 +0200)]
Fix memory leaks in zlib.compress() and .decompress().

Also, make sure that test_zlib tests decompress() for overly-large inputs.

14 years agoMerged rethought pprint example from 3.2.
Łukasz Langa [Sat, 14 May 2011 20:58:17 +0000 (22:58 +0200)]
Merged rethought pprint example from 3.2.

14 years agoMerged rethought pprint usage example from 3.1.
Łukasz Langa [Sat, 14 May 2011 20:49:10 +0000 (22:49 +0200)]
Merged rethought pprint usage example from 3.1.

14 years agopprint usage example rethought.
Łukasz Langa [Sat, 14 May 2011 20:43:44 +0000 (22:43 +0200)]
pprint usage example rethought.

14 years agoNull merge (#8650): zlib.compress() and .decompress() are already 64-bit safe.
Nadeem Vawda [Sat, 14 May 2011 20:33:07 +0000 (22:33 +0200)]
Null merge (#8650): zlib.compress() and .decompress() are already 64-bit safe.

14 years agoNull merge (#8650): zlib.compress() and .decompress() are already 64-bit safe.
Nadeem Vawda [Sat, 14 May 2011 20:32:19 +0000 (22:32 +0200)]
Null merge (#8650): zlib.compress() and .decompress() are already 64-bit safe.

14 years agoIssue #8650: Backport 64-bit safety fixes for compress() and decompress().
Nadeem Vawda [Sat, 14 May 2011 20:26:55 +0000 (22:26 +0200)]
Issue #8650: Backport 64-bit safety fixes for compress() and decompress().

14 years agoMerge: #12050: zlib.decompressobj().decompress() now clears the unconsumed_tail
Nadeem Vawda [Sat, 14 May 2011 12:19:56 +0000 (14:19 +0200)]
Merge: #12050: zlib.decompressobj().decompress() now clears the unconsumed_tail
attribute when called without a max_length argument.

14 years agoMerge: #12050: zlib.decompressobj().decompress() now clears the unconsumed_tail
Nadeem Vawda [Sat, 14 May 2011 12:15:47 +0000 (14:15 +0200)]
Merge: #12050: zlib.decompressobj().decompress() now clears the unconsumed_tail
attribute when called without a max_length argument.

14 years agoIssue #12050: zlib.decompressobj().decompress() now clears the unconsumed_tail
Nadeem Vawda [Sat, 14 May 2011 12:05:20 +0000 (14:05 +0200)]
Issue #12050: zlib.decompressobj().decompress() now clears the unconsumed_tail
attribute when called without a max_length argument.

14 years agoMerge with 3.2 and also remove captured_output from __all__ (see #7960).
Ezio Melotti [Sat, 14 May 2011 11:57:15 +0000 (14:57 +0300)]
Merge with 3.2 and also remove captured_output from __all__ (see #7960).

14 years agoUpdate __all__ and docstring.
Ezio Melotti [Sat, 14 May 2011 11:51:18 +0000 (14:51 +0300)]
Update __all__ and docstring.

14 years agoSkip test in test_fileinput when zlib is missing.
Ezio Melotti [Sat, 14 May 2011 07:10:53 +0000 (10:10 +0300)]
Skip test in test_fileinput when zlib is missing.

14 years ago#11979: merge with 3.2.
Ezio Melotti [Sat, 14 May 2011 06:24:33 +0000 (09:24 +0300)]
#11979: merge with 3.2.

14 years ago#11979: merge with 3.1.
Ezio Melotti [Sat, 14 May 2011 06:23:52 +0000 (09:23 +0300)]
#11979: merge with 3.1.

14 years ago#11979: improve wording and markup in sockets howto. Patch by Xavier Morel.
Ezio Melotti [Sat, 14 May 2011 06:17:52 +0000 (09:17 +0300)]
#11979: improve wording and markup in sockets howto. Patch by Xavier Morel.

14 years ago#7960: merge with 3.2.
Ezio Melotti [Sat, 14 May 2011 05:44:12 +0000 (08:44 +0300)]
#7960: merge with 3.2.

14 years ago#7960: merge with 3.1.
Ezio Melotti [Sat, 14 May 2011 05:43:25 +0000 (08:43 +0300)]
#7960: merge with 3.1.

14 years ago#7960: fix docstrings for captured_output and captured_stdout.
Ezio Melotti [Sat, 14 May 2011 05:22:47 +0000 (08:22 +0300)]
#7960: fix docstrings for captured_output and captured_stdout.

14 years ago#5723: merge with 3.2.
Ezio Melotti [Sat, 14 May 2011 03:52:55 +0000 (06:52 +0300)]
#5723: merge with 3.2.

14 years ago#5723: merge with 3.1.
Ezio Melotti [Sat, 14 May 2011 03:47:51 +0000 (06:47 +0300)]
#5723: merge with 3.1.

14 years ago#5723: Improve json tests to be executed with and without accelerations.
Ezio Melotti [Sat, 14 May 2011 03:38:03 +0000 (06:38 +0300)]
#5723: Improve json tests to be executed with and without accelerations.

14 years agoMerge with 3.2.
Ezio Melotti [Sat, 14 May 2011 03:24:18 +0000 (06:24 +0300)]
Merge with 3.2.

14 years agoMerge with 3.1.
Ezio Melotti [Sat, 14 May 2011 03:23:20 +0000 (06:23 +0300)]
Merge with 3.1.

14 years agoChange import_fresh_module to work with packages.
Ezio Melotti [Sat, 14 May 2011 03:02:25 +0000 (06:02 +0300)]
Change import_fresh_module to work with packages.

14 years ago(Merge 3.2) Issue #11996: libpython (gdb), replace "py-bt" command by
Victor Stinner [Fri, 13 May 2011 15:53:22 +0000 (17:53 +0200)]
(Merge 3.2) Issue #11996: libpython (gdb), replace "py-bt" command by
"py-bt-full" and add a smarter "py-bt" command printing a classic Python
traceback.

14 years agotest_logging: extended time range for rollover test.
Vinay Sajip [Fri, 13 May 2011 15:41:57 +0000 (16:41 +0100)]
test_logging: extended time range for rollover test.

14 years agoIssue #11996: libpython (gdb), replace "py-bt" command by "py-bt-full" and add
Victor Stinner [Fri, 13 May 2011 15:40:15 +0000 (17:40 +0200)]
Issue #11996: libpython (gdb), replace "py-bt" command by "py-bt-full" and add
a smarter "py-bt" command printing a classic Python traceback.

14 years agotest_logging: fixed bug in failure diagnostics.
Vinay Sajip [Fri, 13 May 2011 13:45:08 +0000 (14:45 +0100)]
test_logging: fixed bug in failure diagnostics.

14 years agoIssue #12068: Fix appears to have worked; added more diagnostics for rare failures.
Vinay Sajip [Fri, 13 May 2011 11:16:04 +0000 (12:16 +0100)]
Issue #12068: Fix appears to have worked; added more diagnostics for rare failures.

14 years agoFurther beautification of the example
Raymond Hettinger [Fri, 13 May 2011 08:39:22 +0000 (01:39 -0700)]
Further beautification of the example

14 years agoFurther beautification of the example
Raymond Hettinger [Fri, 13 May 2011 08:38:31 +0000 (01:38 -0700)]
Further beautification of the example

14 years agoNeaten up example so it can be cut and pasted.
Raymond Hettinger [Fri, 13 May 2011 08:04:45 +0000 (01:04 -0700)]
Neaten up example so it can be cut and pasted.

14 years agoNeaten up example so it can be cut and pasted.
Raymond Hettinger [Fri, 13 May 2011 08:03:50 +0000 (01:03 -0700)]
Neaten up example so it can be cut and pasted.

14 years agoAdded diagnostics to test_logging, after reverting last change.
Vinay Sajip [Fri, 13 May 2011 06:09:40 +0000 (07:09 +0100)]
Added diagnostics to test_logging, after reverting last change.

14 years agoMerge two minor doc changes into default.
Georg Brandl [Fri, 13 May 2011 05:01:58 +0000 (07:01 +0200)]
Merge two minor doc changes into default.

14 years agoMerge 3.2.1 release changes into default branch (a null merge except for the new...
Georg Brandl [Fri, 13 May 2011 05:01:42 +0000 (07:01 +0200)]
Merge 3.2.1 release changes into default branch (a null merge except for the new tag.)

14 years agoUse singular they. Thanks to Mark Summerfield.
Georg Brandl [Fri, 13 May 2011 04:55:28 +0000 (06:55 +0200)]
Use singular they. Thanks to Mark Summerfield.

14 years agoFix unbound local error in RE tokenizer example. Thanks to Herman L. Jackson.
Georg Brandl [Fri, 13 May 2011 04:54:23 +0000 (06:54 +0200)]
Fix unbound local error in RE tokenizer example. Thanks to Herman L. Jackson.

14 years agoMerge in changes from 3.2.1b1 release repo.
Georg Brandl [Fri, 13 May 2011 04:50:56 +0000 (06:50 +0200)]
Merge in changes from 3.2.1b1 release repo.

14 years agoIssue #12062: Fix a flushing bug when doing a certain type of I/O sequence
Antoine Pitrou [Thu, 12 May 2011 22:25:53 +0000 (00:25 +0200)]
Issue #12062: Fix a flushing bug when doing a certain type of I/O sequence
on a file opened in read+write mode (namely: reading, seeking a bit forward,
writing, then seeking before the previous write but still within buffered
data, and writing again).

14 years agoIssue #12062: Fix a flushing bug when doing a certain type of I/O sequence
Antoine Pitrou [Thu, 12 May 2011 22:16:28 +0000 (00:16 +0200)]
Issue #12062: Fix a flushing bug when doing a certain type of I/O sequence
on a file opened in read+write mode (namely: reading, seeking a bit forward,
writing, then seeking before the previous write but still within buffered
data, and writing again).

14 years agoIssue #12062: Fix a flushing bug when doing a certain type of I/O sequence
Antoine Pitrou [Thu, 12 May 2011 22:13:33 +0000 (00:13 +0200)]
Issue #12062: Fix a flushing bug when doing a certain type of I/O sequence
on a file opened in read+write mode (namely: reading, seeking a bit forward,
writing, then seeking before the previous write but still within buffered
data, and writing again).

14 years agoMerge from 3.2
Kurt B. Kaiser [Thu, 12 May 2011 19:36:42 +0000 (15:36 -0400)]
Merge from 3.2

Issue #11896: Save on Close failed despite selecting "Yes" in dialog.

14 years agoMerge from 3.1
Kurt B. Kaiser [Thu, 12 May 2011 19:30:18 +0000 (15:30 -0400)]
Merge from 3.1

14 years agoIssue #11896: Save on Close failed despite selecting "Yes" in dialog.
Kurt B. Kaiser [Thu, 12 May 2011 19:25:24 +0000 (15:25 -0400)]
Issue #11896: Save on Close failed despite selecting "Yes" in dialog.

_tkinter.c is returning <class '_tkinter.Tcl_Obj'> sometimes.  Don't use
tkinter.messagebox.Message - use the helper functions which convert to str.

14 years agoTimedTRotatingFileHandler test now improved to minimise chances of failure on very...
Vinay Sajip [Thu, 12 May 2011 15:18:29 +0000 (16:18 +0100)]
TimedTRotatingFileHandler test now improved to minimise chances of failure on very slow machines.

14 years agoCleaned up a backward merge after fixes issue #12044.
Łukasz Langa [Thu, 12 May 2011 14:46:30 +0000 (16:46 +0200)]
Cleaned up a backward merge after fixes issue #12044.

14 years agonormalize whitespace.
Gregory P. Smith [Thu, 12 May 2011 05:20:11 +0000 (22:20 -0700)]
normalize whitespace.

14 years agomerge - 7a3f3ad83676 Fixes Issue #12044.
Gregory P. Smith [Thu, 12 May 2011 05:18:23 +0000 (22:18 -0700)]
merge - 7a3f3ad83676  Fixes Issue #12044.

14 years ago- Issue #12044: Fixed subprocess.Popen when used as a context manager to
Gregory P. Smith [Thu, 12 May 2011 04:42:08 +0000 (21:42 -0700)]
- Issue #12044: Fixed subprocess.Popen when used as a context manager to
  wait for the process to end when exiting the context to avoid unintentionally
  leaving zombie processes around.

14 years agoFix compile error under Windows
Antoine Pitrou [Thu, 12 May 2011 00:07:00 +0000 (02:07 +0200)]
Fix compile error under Windows

14 years agoIssue #9971: Write an optimized implementation of BufferedReader.readinto().
Antoine Pitrou [Wed, 11 May 2011 23:57:53 +0000 (01:57 +0200)]
Issue #9971: Write an optimized implementation of BufferedReader.readinto().
Patch by John O'Connor.

14 years agoFix markup and working in the doc.
Ezio Melotti [Wed, 11 May 2011 22:10:57 +0000 (01:10 +0300)]
Fix markup and working in the doc.

14 years agoIssue #12058: Minor edits to comments in faulthandler
Victor Stinner [Wed, 11 May 2011 18:56:08 +0000 (20:56 +0200)]
Issue #12058: Minor edits to comments in faulthandler

Patch written by Éric Araujo.

14 years agoMerge from 3.2
Kurt B. Kaiser [Wed, 11 May 2011 18:18:13 +0000 (14:18 -0400)]
Merge from 3.2

14 years agoMerge heads
Kurt B. Kaiser [Wed, 11 May 2011 18:02:13 +0000 (14:02 -0400)]
Merge heads

14 years agoCorrect version in IDLE NEWS.txt
Kurt B. Kaiser [Wed, 11 May 2011 17:54:44 +0000 (13:54 -0400)]
Correct version in IDLE NEWS.txt

14 years agoMerge from 3.1
Kurt B. Kaiser [Wed, 11 May 2011 17:48:54 +0000 (13:48 -0400)]
Merge from 3.1

14 years agoDocument default fmtspec. Fix inaccurate note. Document exceptions.
Raymond Hettinger [Wed, 11 May 2011 17:48:02 +0000 (10:48 -0700)]
Document default fmtspec. Fix inaccurate note. Document exceptions.

14 years agoDocument default fmtspec. Fix inaccurate note. Document exceptions.
Raymond Hettinger [Wed, 11 May 2011 17:47:27 +0000 (10:47 -0700)]
Document default fmtspec. Fix inaccurate note. Document exceptions.

14 years agoIssue #1028: Tk returns invalid Unicode null in %A: UnicodeDecodeError.
Kurt B. Kaiser [Wed, 11 May 2011 16:24:17 +0000 (12:24 -0400)]
Issue #1028: Tk returns invalid Unicode null in %A: UnicodeDecodeError.

With Tk < 8.5 _tkinter.c:PythonCmd() raised UnicodeDecodeError, caused IDLE to
exit.  Converted to valid Unicode null in PythonCmd().

14 years ago[Merge Branch] Issue #11968 - the start_response header values in wsgiref shoudl be
Senthil Kumaran [Wed, 11 May 2011 14:37:50 +0000 (22:37 +0800)]
[Merge Branch] Issue #11968 - the start_response header values in wsgiref shoudl be
str not bytes. The PEP-0333 says that and test_wsgiref follows the same.
Updated docs accordingly.

14 years agoIssue #11968 - the start_response header values in wsgiref shoudl be str not
Senthil Kumaran [Wed, 11 May 2011 14:34:59 +0000 (22:34 +0800)]
Issue #11968 - the start_response header values in wsgiref shoudl be str not
bytes. The PEP-0333 says that and test_wsgiref follows the same.  Updated docs
accordingly.

14 years agoFix closed Issue #11968 - the start_response header values in wsgiref shoudl be
Senthil Kumaran [Wed, 11 May 2011 14:27:26 +0000 (22:27 +0800)]
Fix closed Issue #11968 - the start_response header values in wsgiref shoudl be
str not bytes. The PEP-0333 says that and test_wsgiref follows the same.
Updated docs accordingly.

14 years agoFix closes Issue #11799: urllib.request Authentication Handlers will raise a
Senthil Kumaran [Wed, 11 May 2011 13:17:57 +0000 (21:17 +0800)]
Fix closes Issue #11799: urllib.request Authentication Handlers will raise a
ValueError when presented with an unsupported Authentication Scheme.

14 years agoissue12039 - update the documentation of send_response method in http.server.rst.
Senthil Kumaran [Wed, 11 May 2011 08:04:28 +0000 (16:04 +0800)]
issue12039 - update the documentation of send_response method in http.server.rst.

14 years agoIssue #12039 - Update the http.server.rst with the requirement to call `end_headers...
Senthil Kumaran [Wed, 11 May 2011 03:45:48 +0000 (11:45 +0800)]
Issue #12039 - Update the http.server.rst with the requirement to call `end_headers` after calling `send_header`.

14 years agoMerge 3.2 (empty merge, patch already applied to 3.3)
Victor Stinner [Tue, 10 May 2011 22:59:08 +0000 (00:59 +0200)]
Merge 3.2 (empty merge, patch already applied to 3.3)

14 years agoMerge 3.1 (empty merge, a similar patch was already applied)
Victor Stinner [Tue, 10 May 2011 22:58:26 +0000 (00:58 +0200)]
Merge 3.1 (empty merge, a similar patch was already applied)

14 years agoIssue #10419: Fix build_scripts command of distutils to handle correctly
Victor Stinner [Tue, 10 May 2011 22:57:29 +0000 (00:57 +0200)]
Issue #10419: Fix build_scripts command of distutils to handle correctly
non-ASCII scripts. Open and write the script in binary mode, but ensure that
the shebang is decodable from UTF-8 and from the encoding of the script.

14 years agoMerge 3.2 (empty, patch already applied to 3.3)
Victor Stinner [Tue, 10 May 2011 22:37:36 +0000 (00:37 +0200)]
Merge 3.2 (empty, patch already applied to 3.3)

14 years agoIssue #11169: compileall module uses repr() to format filenames and paths to
Victor Stinner [Tue, 10 May 2011 22:36:28 +0000 (00:36 +0200)]
Issue #11169: compileall module uses repr() to format filenames and paths to
escape surrogate characters and show spaces.

14 years agoMerge 3.2 (empty, patch already applied to 3.3)
Victor Stinner [Tue, 10 May 2011 22:31:16 +0000 (00:31 +0200)]
Merge 3.2 (empty, patch already applied to 3.3)

14 years ago#12051: merge with 3.2.
Ezio Melotti [Tue, 10 May 2011 22:23:41 +0000 (01:23 +0300)]
#12051: merge with 3.2.

14 years agoClose #10419, issue #6011: build_scripts command of distutils handles correctly
Victor Stinner [Tue, 10 May 2011 22:14:28 +0000 (00:14 +0200)]
Close #10419, issue #6011: build_scripts command of distutils handles correctly
non-ASCII path (path to the Python executable). Open and write the script in
binary mode, but ensure that the shebang is decodable from UTF-8 and from the
encoding of the script.

14 years agoClose #10419, issue #6011: build_scripts command of distutils handles correctly
Victor Stinner [Tue, 10 May 2011 22:14:28 +0000 (00:14 +0200)]
Close #10419, issue #6011: build_scripts command of distutils handles correctly
non-ASCII path (path to the Python executable). Open and write the script in
binary mode, but ensure that the shebang is decodable from UTF-8 and from the
encoding of the script.

14 years ago#12051: merge with 3.1.
Ezio Melotti [Tue, 10 May 2011 22:10:27 +0000 (01:10 +0300)]
#12051: merge with 3.1.

14 years ago#12051: Fix segfault in json.dumps() while encoding highly-nested objects using the...
Ezio Melotti [Tue, 10 May 2011 22:02:56 +0000 (01:02 +0300)]
#12051: Fix segfault in json.dumps() while encoding highly-nested objects using the C accelerations.

14 years agoIssue #11888: skip some log2 tests on Mac OS X Tiger
Victor Stinner [Tue, 10 May 2011 21:40:17 +0000 (23:40 +0200)]
Issue #11888: skip some log2 tests on Mac OS X Tiger

System log2() is not accurate for exact power of 2.

14 years agoIssue #12054: use support.find_unused_port() instead of reinventing the wheel
Antoine Pitrou [Tue, 10 May 2011 21:37:42 +0000 (23:37 +0200)]
Issue #12054: use support.find_unused_port() instead of reinventing the wheel

14 years agoIssue #12054: use support.find_unused_port() instead of reinventing the wheel
Antoine Pitrou [Tue, 10 May 2011 21:37:11 +0000 (23:37 +0200)]
Issue #12054: use support.find_unused_port() instead of reinventing the wheel

14 years agorun autoreconf
Benjamin Peterson [Tue, 10 May 2011 20:01:56 +0000 (15:01 -0500)]
run autoreconf

14 years agoIssue #11888: remove duplicate check for log2 in configure.in.
Mark Dickinson [Tue, 10 May 2011 19:56:00 +0000 (20:56 +0100)]
Issue #11888: remove duplicate check for log2 in configure.in.

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.