]>
granicus.if.org Git - python/log
Ned Deily [Fri, 6 Sep 2013 22:16:19 +0000 (15:16 -0700)]
Issue #18458: Prevent crashes with newer versions of libedit. Its readline
emulation has changed from 0-based indexing to 1-based like gnu readline.
Original patch by Ronald Oussoren.
Tim Peters [Fri, 6 Sep 2013 20:42:47 +0000 (15:42 -0500)]
Merge 3.3 into default.
Issue 18944: fix a 1-character typo in test_set.py.
The error caused test_inline_methods() to test much less than intended.
Caught (& fixed) by Armin Rigo.
Tim Peters [Fri, 6 Sep 2013 20:41:30 +0000 (15:41 -0500)]
Issue 18944: fix a 1-character typo in test_set.py.
The error caused test_inline_methods() to test much less than intended.
Caught (& fixed) by Armin Rigo.
Antoine Pitrou [Fri, 6 Sep 2013 19:18:25 +0000 (21:18 +0200)]
Remove old-school inheritance
Charles-François Natali [Fri, 6 Sep 2013 19:12:22 +0000 (21:12 +0200)]
Issue #18934: Relax test_multiprocessing.test_invalid_handles a bit: we just
want to check that Connection.poll() doesn't crash.
Antoine Pitrou [Fri, 6 Sep 2013 18:50:00 +0000 (20:50 +0200)]
Issue #18623: Factor out the _SuppressCoreFiles context manager into test.support.
Patch by Valerie Lambert.
R David Murray [Fri, 6 Sep 2013 17:08:08 +0000 (13:08 -0400)]
#18852: Handle readline.__doc__ being None in site.py readline activation.
Patch by Berker Peksag.
Ethan Furman [Fri, 6 Sep 2013 14:16:48 +0000 (07:16 -0700)]
Close #18924: Block naive attempts to change an Enum member.
Eli Bendersky [Fri, 6 Sep 2013 13:55:58 +0000 (06:55 -0700)]
Update whatsnew/3.4 wrt. --version going to stdout. #18338, #18920, #18922
Eli Bendersky [Fri, 6 Sep 2013 13:49:15 +0000 (06:49 -0700)]
Issue #18920: argparse's default version action (for -v, --version) should
output to stdout, matching the 'python -v'
Reported by Wolfgang Maier
Eli Bendersky [Fri, 6 Sep 2013 13:14:16 +0000 (06:14 -0700)]
Issue #18849: Fixed a Windows-specific tempfile bug where collision with an
existing directory caused mkstemp and related APIs to fail instead of
retrying. Report and fix by Vlad Shcherbina.
Eli Bendersky [Fri, 6 Sep 2013 13:11:19 +0000 (06:11 -0700)]
Issue #18849: Fixed a Windows-specific tempfile bug where collision with an
existing directory caused mkstemp and related APIs to fail instead of
retrying. Report and fix by Vlad Shcherbina.
Vinay Sajip [Fri, 6 Sep 2013 09:26:48 +0000 (10:26 +0100)]
Closes #18941: Merged fix from 3.3.
Vinay Sajip [Fri, 6 Sep 2013 09:25:31 +0000 (10:25 +0100)]
Issue #18941: Respected delay when doing rollover.
Vinay Sajip [Fri, 6 Sep 2013 09:11:37 +0000 (10:11 +0100)]
Closes #18940: Merged fix from 3.3.
Vinay Sajip [Fri, 6 Sep 2013 09:10:22 +0000 (10:10 +0100)]
Issue #18940: Handled low-volume logging when delay is True.
Vinay Sajip [Fri, 6 Sep 2013 08:51:27 +0000 (09:51 +0100)]
Closes #18939: Merged documentation update from 3.3.
Vinay Sajip [Fri, 6 Sep 2013 08:50:43 +0000 (09:50 +0100)]
Issue #18939: Updated venv documentation with some clarifications.
Ned Deily [Fri, 6 Sep 2013 08:18:36 +0000 (01:18 -0700)]
Issue #15663: Tcl/Tk 8.5.14 is now included with the OS X 10.6+
64-bit/32-bit installer for 10.6+. It is no longer necessary
to install a third-party version of Tcl/Tk 8.5 to work around the
problems in the Apple-supplied Tcl/Tk 8.5 shipped in OS X 10.6
and later releases.
Ned Deily [Fri, 6 Sep 2013 08:07:05 +0000 (01:07 -0700)]
Issue #1584: Provide options to override default search paths for Tcl and Tk
when building _tkinter. configure has two new options; if used, both must
be specified:
./configure \
--with-tcltk-includes="-I/opt/local/include" \
--with-tcltk-libs="-L/opt/local/lib -ltcl8.5 -ltk8.5"
In addition, the options can be overridden with make:
make \
TCLTK_INCLUDES="-I/opt/local/include" \
TCLTK_LIBS="-L/opt/local/lib -ltcl8.6 -ltk8.6"
Senthil Kumaran [Fri, 6 Sep 2013 04:43:53 +0000 (21:43 -0700)]
merge from 3.3
Improve urlencode docstring. Patch by Brian Brazil.
Closes issue #15350
Senthil Kumaran [Fri, 6 Sep 2013 04:42:38 +0000 (21:42 -0700)]
Improve urlencode docstring. Patch by Brian Brazil.
Tim Peters [Fri, 6 Sep 2013 04:04:26 +0000 (23:04 -0500)]
Nerge 3.3 into default.
Issue #18942: sys._debugmallocstats() output was damaged on Windows.
_PyDebugAllocatorStats() called PyOS_snprintf() with a %zd format
code, but MS doesn't support that code. Interpolated
PY_FORMAT_SIZE_T in place of the "z".
Tim Peters [Fri, 6 Sep 2013 03:57:04 +0000 (22:57 -0500)]
Issue #18942: sys._debugmallocstats() output was damaged on Windows.
_PyDebugAllocatorStats() called PyOS_snprintf() with a %zd format
code, but MS doesn't support that code. Interpolated
PY_FORMAT_SIZE_T in place of the "z".
Vinay Sajip [Thu, 5 Sep 2013 22:02:45 +0000 (23:02 +0100)]
Closes #18933: Merged update from 3.3.
Vinay Sajip [Thu, 5 Sep 2013 22:01:07 +0000 (23:01 +0100)]
Issue #18933: Added links to source code.
Charles-François Natali [Thu, 5 Sep 2013 18:46:49 +0000 (20:46 +0200)]
Issue #18934: multiprocessing: use selectors module.
Serhiy Storchaka [Thu, 5 Sep 2013 15:02:31 +0000 (18:02 +0300)]
Issue #18672: Fixed format specifiers for Py_ssize_t in debugging output in
the _sre moduel.
Serhiy Storchaka [Thu, 5 Sep 2013 15:01:15 +0000 (18:01 +0300)]
Issue #18672: Fixed format specifiers for Py_ssize_t in debugging output in
the _sre moduel.
Serhiy Storchaka [Thu, 5 Sep 2013 14:44:53 +0000 (17:44 +0300)]
Issue #18922: Now The Lib/smtpd.py and Tools/i18n/msgfmt.py scripts write
their version strings to stdout, and not to sderr.
Serhiy Storchaka [Thu, 5 Sep 2013 14:33:04 +0000 (17:33 +0300)]
Null merge
Serhiy Storchaka [Thu, 5 Sep 2013 14:32:15 +0000 (17:32 +0300)]
Merge heads
Serhiy Storchaka [Thu, 5 Sep 2013 14:31:37 +0000 (17:31 +0300)]
Merge heads
Serhiy Storchaka [Thu, 5 Sep 2013 14:16:12 +0000 (17:16 +0300)]
Issue #18830: inspect.getclasstree() no more produces duplicated entries even
when input list contains duplicates.
Serhiy Storchaka [Thu, 5 Sep 2013 14:14:32 +0000 (17:14 +0300)]
Issue #18830: inspect.getclasstree() no more produces duplicated entries even
when input list contains duplicates.
Christian Heimes [Thu, 5 Sep 2013 14:06:46 +0000 (16:06 +0200)]
merge
Christian Heimes [Thu, 5 Sep 2013 14:04:50 +0000 (16:04 +0200)]
Issue #18709: GCC 4.6 complains that 'v' may be used uninitialized in GEN_EMAIL/GEN_URI/GEN_DNS case
Christian Heimes [Thu, 5 Sep 2013 14:04:35 +0000 (16:04 +0200)]
Issue #18709: GCC 4.6 complains that 'v' may be used uninitialized in GEN_EMAIL/GEN_URI/GEN_DNS case
Serhiy Storchaka [Thu, 5 Sep 2013 14:01:53 +0000 (17:01 +0300)]
Issue #18878: sunau.open now supports the context manager protocol. Based on
patches by Claudiu Popa and R. David Murray.
Victor Stinner [Wed, 4 Sep 2013 22:23:08 +0000 (00:23 +0200)]
(Merge 3.3) Issue #18909: Fix _tkinter.tkapp.interpaddr() on Windows 64-bit,
don't cast 64-bit pointer to long (32 bits).
Victor Stinner [Wed, 4 Sep 2013 22:22:24 +0000 (00:22 +0200)]
Issue #18909: Fix _tkinter.tkapp.interpaddr() on Windows 64-bit, don't cast
64-bit pointer to long (32 bits).
Antoine Pitrou [Wed, 4 Sep 2013 18:52:14 +0000 (20:52 +0200)]
Issue #18876: The FileIO.mode attribute now better reflects the actual mode under which the file was opened.
Patch by Erik Bray.
Antoine Pitrou [Wed, 4 Sep 2013 18:46:33 +0000 (20:46 +0200)]
Issue #18876: The FileIO.mode attribute now better reflects the actual mode under which the file was opened.
Patch by Erik Bray.
Victor Stinner [Wed, 4 Sep 2013 18:40:13 +0000 (20:40 +0200)]
Issue #16853: Mention the new selectors module in the select module
Victor Stinner [Wed, 4 Sep 2013 18:34:52 +0000 (20:34 +0200)]
oops, revert test commit
Victor Stinner [Wed, 4 Sep 2013 18:30:34 +0000 (20:30 +0200)]
Issue #16853: Mention the new selectors module in What's New in Python 3.4
Victor Stinner [Wed, 4 Sep 2013 18:24:32 +0000 (20:24 +0200)]
test
Charles-François Natali [Wed, 4 Sep 2013 17:02:49 +0000 (19:02 +0200)]
Issue #16853: Add new selectors module.
Serhiy Storchaka [Wed, 4 Sep 2013 11:30:16 +0000 (14:30 +0300)]
Issues #18901, #18919: Fix a typo in the _sunau_params name.
Andrew Svetlov [Wed, 4 Sep 2013 07:33:11 +0000 (10:33 +0300)]
Add docstring for threading.main_thread().
Andrew Svetlov [Wed, 4 Sep 2013 04:01:07 +0000 (07:01 +0300)]
Issue #18882: Add threading.main_thread() function.
Meador Inge [Wed, 4 Sep 2013 00:54:40 +0000 (19:54 -0500)]
Issue #16826: Revert fix while Windows issues are being worked out.
Meador Inge [Wed, 4 Sep 2013 00:43:49 +0000 (19:43 -0500)]
Issue #16826: Revert fix while Windows issues are being worked out.
Meador Inge [Tue, 3 Sep 2013 22:32:13 +0000 (17:32 -0500)]
Merge heads.
Meador Inge [Tue, 3 Sep 2013 21:53:22 +0000 (16:53 -0500)]
Issue #16826: Don't check for PYTHONCASEOK when using -E.
This commit fixes a regression that sneaked into Python 3.3 where importlib
was not respecting -E when checking for the PYTHONCASEOK environment variable.
Serhiy Storchaka [Tue, 3 Sep 2013 21:43:03 +0000 (00:43 +0300)]
Issue #18901: The sunau getparams method now returns a namedtuple rather than
a plain tuple. Patch by Claudiu Popa.
Meador Inge [Tue, 3 Sep 2013 21:37:26 +0000 (16:37 -0500)]
Issue #16826: Don't check for PYTHONCASEOK when using -E.
This commit fixes a regression that sneaked into Python 3.3 where importlib
was not respecting -E when checking for the PYTHONCASEOK environment variable.
Serhiy Storchaka [Tue, 3 Sep 2013 21:28:43 +0000 (00:28 +0300)]
Issue #17487: The result of the wave getparams method now is pickleable again.
Patch by Claudiu Popa.
Tim Peters [Tue, 3 Sep 2013 16:52:59 +0000 (11:52 -0500)]
Merge 3.3 into default.
cwr_next(): move invariants out of loops.
This simplifies and clarifies the code, and gives a small speedup.
Tim Peters [Tue, 3 Sep 2013 16:49:31 +0000 (11:49 -0500)]
cwr_next(): move invariants out of loops.
This simplifies and clarifies the code, and gives a small speedup.
Eli Bendersky [Tue, 3 Sep 2013 13:38:55 +0000 (06:38 -0700)]
Issue #18912: Fix indentation in docstring
Contributed by Jeroen Van Goey
Eli Bendersky [Tue, 3 Sep 2013 13:37:19 +0000 (06:37 -0700)]
Issue #18912: Fix indentation in docstring
Contributed by Jeroen Van Goey
Eli Bendersky [Tue, 3 Sep 2013 00:01:10 +0000 (17:01 -0700)]
Remove unused --debug option of regrtest.
If bots fail due to using this flag, the buildbot scripts have to be modified
to omit it. Regrtest ignores it anyway.
Eli Bendersky [Mon, 2 Sep 2013 23:52:25 +0000 (16:52 -0700)]
Fix docstring and some indentation
Raymond Hettinger [Mon, 2 Sep 2013 23:32:27 +0000 (16:32 -0700)]
Minor touchups.
Raymond Hettinger [Mon, 2 Sep 2013 22:59:26 +0000 (15:59 -0700)]
Factor-out the common code for setting a KeyError.
Eli Bendersky [Mon, 2 Sep 2013 15:57:21 +0000 (08:57 -0700)]
Refactor the main function of regrtest a bit.
Moving subprocess execution of tests into a function.
Raymond Hettinger [Mon, 2 Sep 2013 10:23:21 +0000 (03:23 -0700)]
Instead of XORed indicies, switch to a hybrid of linear probing and open addressing.
Modern processors tend to make consecutive memory accesses cheaper than
random probes into memory.
Small sets can fit into L1 cache, so they get less benefit. But they do
come out ahead because the consecutive probes don't probe the same key
more than once and because the randomization step occurs less frequently
(or not at all).
For the open addressing step, putting the perturb shift before the index
calculation gets the upper bits into play sooner.
Ethan Furman [Mon, 2 Sep 2013 08:14:56 +0000 (01:14 -0700)]
Close #18745: Improve enum tests in test_json for infinities and NaN.
Terry Jan Reedy [Sun, 1 Sep 2013 23:04:18 +0000 (19:04 -0400)]
Merge with 3.3
Terry Jan Reedy [Sun, 1 Sep 2013 23:03:41 +0000 (19:03 -0400)]
Remove obsolete .hgeol entry pointing to file moved elsewhere.
This kine was already replaced by
Lib/test/test_email/data/msg_26.txt = BIN
which is just below the last line in the patch context.
Tim Peters [Sun, 1 Sep 2013 21:01:46 +0000 (16:01 -0500)]
Merge fix from 3.3 into default.
Fix issue 18889: test_sax: multiple failures on Windows desktop.
"The fix" is to tell Mercurial that the test files are binary.
Windows developers: to get the correct line endings in your checkout,
delete Lib\test\xmltestdata, and then "hg revert" that directory.
Why the Windows buildbots didn't fail test_sax remains a mystery :-(
Tim Peters [Sun, 1 Sep 2013 20:56:22 +0000 (15:56 -0500)]
Fix issue 18889: test_sax: multiple failures on Windows desktop.
"The fix" is to tell Mercurial that the test files are binary.
Windows developers: to get the correct line endings in your checkout,
delete Lib\test\xmltestdata, and then "hg revert" that directory.
Why the Windows buildbots didn't fail test_sax remains a mystery :-(
Antoine Pitrou [Sun, 1 Sep 2013 17:52:08 +0000 (19:52 +0200)]
test_threading isn't rudimentary anymore
Antoine Pitrou [Sun, 1 Sep 2013 17:51:49 +0000 (19:51 +0200)]
test_threading isn't rudimentary anymore
Victor Stinner [Sun, 1 Sep 2013 08:22:41 +0000 (10:22 +0200)]
Issue #18571: Merge duplicate test code
Merge test/subprocessdata/inherited.py into test/subprocessdata/fd_status.py
Andrew Svetlov [Sun, 1 Sep 2013 04:58:41 +0000 (07:58 +0300)]
Issue #11798: fix tests for regrtest -R :
Tim Peters [Sun, 1 Sep 2013 04:44:34 +0000 (23:44 -0500)]
Back out
868ad6fa8e68 - it left all the buildbots failing.
Unclear to me why it was pushed to begin with. See issue 11798.
Perhaps it's because regrtest with -R was failing? Fine, but
that's better than regrtest _always_ failing ;-)
Raymond Hettinger [Sun, 1 Sep 2013 04:34:24 +0000 (21:34 -0700)]
Update copyright.
Raymond Hettinger [Sun, 1 Sep 2013 04:28:58 +0000 (21:28 -0700)]
merge
Raymond Hettinger [Sun, 1 Sep 2013 04:27:08 +0000 (21:27 -0700)]
Further reduce the cost of hash collisions by inspecting an additional nearby entry.
Ethan Furman [Sun, 1 Sep 2013 02:17:41 +0000 (19:17 -0700)]
Close #18738: Route __format__ calls to mixed-in type for mixed Enums (such as IntEnum).
Eli Bendersky [Sat, 31 Aug 2013 22:18:48 +0000 (15:18 -0700)]
Update whatsnew/3.4.rst wrt. the socket constants switch to IntEnum
[issue #18730]
Eli Bendersky [Sat, 31 Aug 2013 22:13:30 +0000 (15:13 -0700)]
Switch the AF_* and SOCK_* constants in the socket module to IntEnum.
Closes #18720.
Terry Jan Reedy [Sat, 31 Aug 2013 21:16:45 +0000 (17:16 -0400)]
Issue #12037: Fix test_email for desktop Windows.
Terry Jan Reedy [Sat, 31 Aug 2013 21:12:21 +0000 (17:12 -0400)]
Issue #12037: Fix test_email for desktop Windows.
Terry Jan Reedy [Sat, 31 Aug 2013 20:28:53 +0000 (16:28 -0400)]
Merge from 3.3 #18489 Search Engine tests
Terry Jan Reedy [Sat, 31 Aug 2013 20:27:16 +0000 (16:27 -0400)]
Issue #18489: Add complete, gui-free tests for idlelib.SearchEngine.
Patch import and initialization in SearchEngine to make testing easier.
Improve docstrings, especially to clarify the double role of 'ok' parameters.
Original patch by Phil Webster.
Ethan Furman [Sat, 31 Aug 2013 19:48:51 +0000 (12:48 -0700)]
Issue #18780: code cleanup.
Andrew Svetlov [Sat, 31 Aug 2013 17:55:25 +0000 (20:55 +0300)]
Temporary disable tests cleanup (issue 11798).
Ethan Furman [Sat, 31 Aug 2013 17:18:55 +0000 (10:18 -0700)]
Close #18780: %-formatting now prints value for int subclasses with %d, %i, and %u codes.
Charles-François Natali [Sat, 31 Aug 2013 15:32:30 +0000 (17:32 +0200)]
Merge.
Eli Bendersky [Sat, 31 Aug 2013 14:37:23 +0000 (07:37 -0700)]
Fix XMLPullParser documentation to say "non-blocking" instead of "asynchronous".
The latter is more ambiguous.
Related to issue #17741
Charles-François Natali [Sat, 31 Aug 2013 12:48:25 +0000 (14:48 +0200)]
Use INADDR_BROADCAST instead of hard-coded value (it's part of POSIX and
already appears without #ifdef a couple lines above).
Charles-François Natali [Sat, 31 Aug 2013 12:40:49 +0000 (14:40 +0200)]
Use the recent support.HOSTv6 addition.
Antoine Pitrou [Fri, 30 Aug 2013 22:26:02 +0000 (00:26 +0200)]
Issue #18756: os.urandom() now uses a lazily-opened persistent file descriptor, so as to avoid using many file descriptors when run in parallel from multiple threads.
Antoine Pitrou [Fri, 30 Aug 2013 22:12:37 +0000 (00:12 +0200)]
Forward port new tests from Issue #18851.
Antoine Pitrou [Fri, 30 Aug 2013 21:38:13 +0000 (23:38 +0200)]
Forward port new tests from Issue #18851.
Charles-François Natali [Fri, 30 Aug 2013 21:34:26 +0000 (23:34 +0200)]
Issue #18418: After fork(), reinit all threads states, not only active ones.
Patch by A. Jesse Jiryu Davis.
Charles-François Natali [Fri, 30 Aug 2013 21:32:53 +0000 (23:32 +0200)]
Issue #18418: After fork(), reinit all threads states, not only active ones.
Patch by A. Jesse Jiryu Davis.