]>
granicus.if.org Git - python/log
Andrew Kuchling [Sun, 15 Sep 2013 22:15:56 +0000 (18:15 -0400)]
#
1565525 : Add traceback.clear_frames() helper function to clear locals ref'd by a traceback
Raymond Hettinger [Sun, 15 Sep 2013 21:57:15 +0000 (14:57 -0700)]
Issue 18771: Make it possible to set the number linear probes at compile-time.
Tim Peters [Sun, 15 Sep 2013 20:40:18 +0000 (15:40 -0500)]
Null merge of 3.3 into default.
Tim Peters [Sun, 15 Sep 2013 20:39:06 +0000 (15:39 -0500)]
Null merge of 3.2 into 3.3.
Tim Peters [Sun, 15 Sep 2013 20:37:25 +0000 (15:37 -0500)]
Null merge of 3.1 into 3.2
Changeset
c39f42f46a05 left a dangling head on 3.1.
Ethan Furman [Sun, 15 Sep 2013 19:34:36 +0000 (12:34 -0700)]
Close #18989: enum members will no longer overwrite other attributes, nor be overwritten by them.
Senthil Kumaran [Sun, 15 Sep 2013 16:37:27 +0000 (09:37 -0700)]
Expose --bind argument for http.server, enable http.server to bind to a user
specified network interface.
Patch contributed by Malte Swart. Addresses issue #17764.
HG :Enter commit message. Lines beginning with 'HG:' are removed.
Georg Brandl [Sun, 15 Sep 2013 08:37:57 +0000 (10:37 +0200)]
Fixup reST syntax errors and streamline docs of PEP 446.
Raymond Hettinger [Sun, 15 Sep 2013 03:52:54 +0000 (20:52 -0700)]
merge
Raymond Hettinger [Sun, 15 Sep 2013 03:51:57 +0000 (20:51 -0700)]
Issue #19018: The heapq.merge() function no longer suppresses IndexError
Ethan Furman [Sun, 15 Sep 2013 01:53:26 +0000 (18:53 -0700)]
Close #18929: inspect.classify_class_attrs will now search the metaclasses (last) to find where an attr was defined.
Ethan Furman [Sun, 15 Sep 2013 01:11:24 +0000 (18:11 -0700)]
Add __reversed__ to Enum. Minor code reorg (moved __members__ to be in alpha order).
Ezio Melotti [Sun, 15 Sep 2013 01:05:04 +0000 (04:05 +0300)]
#18856: merge with 3.3.
Antoine Pitrou [Sun, 15 Sep 2013 00:01:39 +0000 (02:01 +0200)]
Address Terry's comments
Ezio Melotti [Sun, 15 Sep 2013 00:00:42 +0000 (03:00 +0300)]
Merge heads.
Antoine Pitrou [Sat, 14 Sep 2013 19:16:39 +0000 (21:16 +0200)]
Avoid test_logging failure when run after test_unittest, by renaming a conflicting logger
Antoine Pitrou [Sat, 14 Sep 2013 17:45:47 +0000 (19:45 +0200)]
Issue #18937: Add an assertLogs() context manager to unittest.TestCase to ensure that a block of code emits a message using the logging module.
R David Murray [Sat, 14 Sep 2013 17:31:44 +0000 (13:31 -0400)]
#18206: Re-fix license URL.
R David Murray [Sat, 14 Sep 2013 17:31:14 +0000 (13:31 -0400)]
Merge #18206: Fix test for existence of license URL.
This test will fail because a previous attempt to fix a merge error
in site.py was incorrect, but the test wasn't running so it wasn't
caught. The next commit will fix the site.py bug.
R David Murray [Sat, 14 Sep 2013 17:28:37 +0000 (13:28 -0400)]
#18206: Fix test for existence of license URL.
It now always checks, instead of only when the LICENSE file doesn't exist. It
is also protected by the 'network' resource, and uses a HEAD request since we
are only doing an existence check.
Georg Brandl [Sat, 14 Sep 2013 07:11:21 +0000 (09:11 +0200)]
merge with 3.3
Georg Brandl [Sat, 14 Sep 2013 07:11:09 +0000 (09:11 +0200)]
merge with 3.2
Georg Brandl [Sat, 14 Sep 2013 07:10:21 +0000 (09:10 +0200)]
Add a NEWS entry for
b9b521efeba3 .
Georg Brandl [Sat, 14 Sep 2013 07:09:18 +0000 (09:09 +0200)]
Add NEWS entry for
c18c18774e24 .
Georg Brandl [Sat, 14 Sep 2013 07:08:09 +0000 (09:08 +0200)]
Fix tkinter regression introduced by the security fix in #16248.
Georg Brandl [Sat, 14 Sep 2013 07:08:09 +0000 (09:08 +0200)]
Fix tkinter regression introduced by the security fix in #16248.
Ezio Melotti [Sat, 14 Sep 2013 01:55:53 +0000 (04:55 +0300)]
#18856: improve test coverage of the calendar module. Patch by Madison May.
Antoine Pitrou [Fri, 13 Sep 2013 22:40:46 +0000 (00:40 +0200)]
Adjust comment
Antoine Pitrou [Fri, 13 Sep 2013 22:39:15 +0000 (00:39 +0200)]
Issue #19013: add a __main__ to unittest.test.testmock to ease CLI invocation
Antoine Pitrou [Fri, 13 Sep 2013 22:37:18 +0000 (00:37 +0200)]
Issue #19013: add a __main__ to unittest.test to ease CLI invocation
Antoine Pitrou [Fri, 13 Sep 2013 21:54:01 +0000 (23:54 +0200)]
Issue #19013: add unittest.main() epilogs to unittest.mock's own test modules
Antoine Pitrou [Fri, 13 Sep 2013 21:52:46 +0000 (23:52 +0200)]
Issue #19013: add unittest.main() epilogs to unittest's own test modules
Ezio Melotti [Fri, 13 Sep 2013 20:54:41 +0000 (23:54 +0300)]
#18981: merge with 3.3.
Brett Cannon [Fri, 13 Sep 2013 20:52:19 +0000 (16:52 -0400)]
Issue #18955: clarify what is removed by importlib.util.module_for_loader.
Ezio Melotti [Fri, 13 Sep 2013 20:52:12 +0000 (23:52 +0300)]
#18981: fix a typo in a comment (noticed by Anoop Thomas Mathew).
Ezio Melotti [Fri, 13 Sep 2013 19:18:02 +0000 (22:18 +0300)]
#18951: merge with 3.3.
Ezio Melotti [Fri, 13 Sep 2013 19:17:40 +0000 (22:17 +0300)]
#18951: use consistent names in unittest docs.
Charles-François Natali [Fri, 13 Sep 2013 17:53:08 +0000 (19:53 +0200)]
Issue #16201: socket: Use inet_pton()/inet_addr() instead of ad-hoc parsing for
numeric IP addresses.
Eli Bendersky [Fri, 13 Sep 2013 13:27:52 +0000 (06:27 -0700)]
Merge for Issue #18997: Issue #18997: fix ElementTree crash with using pickle and __getstate__.
Eli Bendersky [Fri, 13 Sep 2013 13:24:59 +0000 (06:24 -0700)]
Add Germán M. Bravo to Misc/ACKS
Eli Bendersky [Fri, 13 Sep 2013 13:24:25 +0000 (06:24 -0700)]
Issue #18997: fix ElementTree crash with using pickle and __getstate__.
Based on report and initial patch from Germán M. Bravo
Eli Bendersky [Fri, 13 Sep 2013 12:30:00 +0000 (05:30 -0700)]
Issue #18945: Add tests for tempfile name collision handling.
Patch by Vlad Shcherbina
Eli Bendersky [Fri, 13 Sep 2013 12:28:20 +0000 (05:28 -0700)]
Issue #18945: Add tests for tempfile name collision handling.
Patch by Vlad Shcherbina
Serhiy Storchaka [Fri, 13 Sep 2013 08:46:24 +0000 (11:46 +0300)]
Issue #18818: The "encodingname" part of PYTHONIOENCODING is now optional.
Senthil Kumaran [Fri, 13 Sep 2013 07:22:45 +0000 (00:22 -0700)]
Fix http.server's request handling case on trailing '/'.
Patch contributed by Vajrasky Kok. Addresses Issue #17324
Senthil Kumaran [Fri, 13 Sep 2013 07:21:18 +0000 (00:21 -0700)]
Fix http.server's request handling case on trailing '/'.
Patch contributed by Vajrasky Kok. Addresses Issue #17324
Serhiy Storchaka [Fri, 13 Sep 2013 04:49:36 +0000 (07:49 +0300)]
Issue #18784: The uuid module no more attempts to load libc via ctypes.CDLL,
if all necessary functions are already found in libuuid.
Patch by Evgeny Sologubov.
Serhiy Storchaka [Fri, 13 Sep 2013 04:46:40 +0000 (07:46 +0300)]
Issue #18784: The uuid module no more attempts to load libc via ctypes.CDLL,
if all necessary functions are already found in libuuid.
Patch by Evgeny Sologubov.
Senthil Kumaran [Thu, 12 Sep 2013 14:06:49 +0000 (07:06 -0700)]
Removing the merge conflict markers.
- my previous removal and hg resolve mark had still left them and hooks did not catch it too!
Senthil Kumaran [Thu, 12 Sep 2013 05:56:30 +0000 (22:56 -0700)]
Automated merge with file:///Users/skumaran/python/cpython
Senthil Kumaran [Thu, 12 Sep 2013 05:56:28 +0000 (22:56 -0700)]
Automated merge with ssh://hg.python.org/cpython
Senthil Kumaran [Thu, 12 Sep 2013 05:55:54 +0000 (22:55 -0700)]
merge from 3.3
Improve the docstring of random.shuffle. Inform users not to provide int arg.
Addresses issue #14927
Senthil Kumaran [Thu, 12 Sep 2013 05:54:31 +0000 (22:54 -0700)]
Improve the docstring of random.shuffle. Inform users not to provide int arg.
Addresses issue #14927
Serhiy Storchaka [Wed, 11 Sep 2013 19:48:52 +0000 (22:48 +0300)]
Issue #18988: The "Tab" key now works when a word is already autocompleted.
Serhiy Storchaka [Wed, 11 Sep 2013 19:46:27 +0000 (22:46 +0300)]
Issue #18988: The "Tab" key now works when a word is already autocompleted.
Raymond Hettinger [Wed, 11 Sep 2013 06:15:40 +0000 (01:15 -0500)]
Issue #18962: Optimize the single iterator case for heapq.merge()
Suggested by Wouter Bolsterlee.
Senthil Kumaran [Tue, 10 Sep 2013 05:40:13 +0000 (22:40 -0700)]
merge from 3.3
Clarify mmap.close method behavior. Addresses issue #18815
Patch contributed by Anoop Thomas Mathew.
Senthil Kumaran [Tue, 10 Sep 2013 05:39:28 +0000 (22:39 -0700)]
Clarify mmap.close method behavior. Addresses issue #18815
Patch contributed by Anoop Thomas Mathew.
Senthil Kumaran [Tue, 10 Sep 2013 02:58:20 +0000 (19:58 -0700)]
merge from 3.3
Document Fraction's numerator and denominator properties.
Addresses issue #18800
Senthil Kumaran [Tue, 10 Sep 2013 02:57:37 +0000 (19:57 -0700)]
Document Fraction's numerator and denominator properties.
Addresses issue #18800
Tim Peters [Mon, 9 Sep 2013 23:48:24 +0000 (18:48 -0500)]
Get "stopped" back into repr(Thread) when appropriate.
Due to recent changes, a Thread doesn't know that it's over before
someone calls .join() or .is_alive(). That meant repr(Thread)
continued to include "started" (and not "stopped") before one of
those methods was called, even if hours passed since the thread
ended.
Repaired that.
Tim Peters [Mon, 9 Sep 2013 19:41:50 +0000 (14:41 -0500)]
Another stab at the thread cleanup patch.
Antoine Pitrou found a variation that worked for him on the
thread+fork tests, and added an important
self._is_stopped = True
to the after-fork code. I confess I don't know why things passed
before. But then mixing fork with threads is insane ;-)
Tim Peters [Mon, 9 Sep 2013 18:47:16 +0000 (13:47 -0500)]
Backed out changeset
1f5a7853680c
Unixy buildbots were failing the thread + fork tests :-(
Tim Peters [Mon, 9 Sep 2013 17:57:10 +0000 (12:57 -0500)]
Minor cleanup of the new scheme for detecting thread termination.
Documented some obscurities, and assert'ed ._stop()'s crucial precondition.
Larry Hastings [Mon, 9 Sep 2013 12:12:21 +0000 (21:12 +0900)]
Merge.
Larry Hastings [Mon, 9 Sep 2013 12:08:52 +0000 (21:08 +0900)]
Post-3.4.0a2-release fixups.
Mark Dickinson [Mon, 9 Sep 2013 09:34:56 +0000 (10:34 +0100)]
Merge docstring typo fix from 3.3
Mark Dickinson [Mon, 9 Sep 2013 09:34:24 +0000 (10:34 +0100)]
Docstring typo fix: Arithmentic -> Arithmetic.
Raymond Hettinger [Mon, 9 Sep 2013 07:02:05 +0000 (02:02 -0500)]
merge
Raymond Hettinger [Mon, 9 Sep 2013 07:01:35 +0000 (02:01 -0500)]
Issue 18752: Make chain.from_iterable() more visible in the documentation.
Raymond Hettinger [Mon, 9 Sep 2013 06:55:31 +0000 (01:55 -0500)]
merge
Raymond Hettinger [Mon, 9 Sep 2013 06:55:07 +0000 (01:55 -0500)]
merge
Raymond Hettinger [Mon, 9 Sep 2013 06:54:27 +0000 (01:54 -0500)]
Issue 18301: The classmethod decorator didn't fit well with the rough-equivalent example code.
Ethan Furman [Mon, 9 Sep 2013 06:48:34 +0000 (23:48 -0700)]
Close #18980: Enum doc fixes. Patch from Elazar Gershuni.
Raymond Hettinger [Mon, 9 Sep 2013 06:29:40 +0000 (01:29 -0500)]
Issue 18752: Make chain.from_iterable() more visible in the documentation.
Tim Peters [Sun, 8 Sep 2013 23:44:40 +0000 (18:44 -0500)]
Issue 18984: Remove ._stopped Event from Thread internals.
The fix for issue 18808 left us checking two things to be sure a Thread
was done: an Event (._stopped) and a mutex (._tstate_lock). Clumsy &
brittle. This patch removes the Event, leaving just a happy lock :-)
The bulk of the patch removes two excruciating tests, which were
verifying sanity of the internals of the ._stopped Event after a fork.
Thanks to Antoine Pitrou for verifying that's the only real value
these tests had.
One consequence of moving from an Event to a mutex: waiters (threads
calling Thread.join()) used to block each on their own unique mutex
(internal to the ._stopped event), but now all contend on the same
mutex (._tstate_lock). These approaches have different performance
characteristics on different platforms. I don't think it matters in
this context.
Serhiy Storchaka [Sun, 8 Sep 2013 17:43:02 +0000 (20:43 +0300)]
Fix a typo. (closes #18953)
Serhiy Storchaka [Sun, 8 Sep 2013 17:42:13 +0000 (20:42 +0300)]
Fix a typo. (closes #18953)
Serhiy Storchaka [Sun, 8 Sep 2013 17:31:20 +0000 (20:31 +0300)]
Fixed tests with Tcl/Tk <8.5 (closes #18964).
Serhiy Storchaka [Sun, 8 Sep 2013 17:29:37 +0000 (20:29 +0300)]
Fixed tests with Tcl/Tk <8.5 (closes #18964).
Victor Stinner [Sun, 8 Sep 2013 12:14:38 +0000 (14:14 +0200)]
Issue #18904: test_os and test_socket use unittest.skipIf() to check if fcntl
module is present (to record skipped tests)
Antoine Pitrou [Sun, 8 Sep 2013 11:19:06 +0000 (13:19 +0200)]
Issue #18808 again: fix the after-fork logic for not-yet-started or already-stopped threads.
(AFAICT, in theory, we must reset all the locks, not just those in use)
Charles-François Natali [Sun, 8 Sep 2013 10:35:53 +0000 (12:35 +0200)]
Merge.
Charles-François Natali [Sun, 8 Sep 2013 10:31:32 +0000 (12:31 +0200)]
Issue #18963: skip test_selectors.test_above_fd_setsize on older OS X versions.
Charles-François Natali [Sun, 8 Sep 2013 10:27:33 +0000 (12:27 +0200)]
Issue #18935: Fix test_regrtest.test_timeout when built --without-threads (the
'--timeout' option requires faulthandler.dump_traceback_later).
Victor Stinner [Sun, 8 Sep 2013 09:53:09 +0000 (11:53 +0200)]
Issue #18904: test_socket: add inheritance tests using fcntl and FD_CLOEXEC
Victor Stinner [Sun, 8 Sep 2013 09:47:54 +0000 (11:47 +0200)]
Issue #18904: Improve os.get/set_inheritable() tests
Victor Stinner [Sun, 8 Sep 2013 09:36:23 +0000 (11:36 +0200)]
Close #18957: The PYTHONFAULTHANDLER environment variable now only enables the
faulthandler module if the variable is non-empty. Same behaviour than other
variables like PYTHONDONTWRITEBYTECODE.
Charles-François Natali [Sun, 8 Sep 2013 09:34:42 +0000 (11:34 +0200)]
Issue #18963: Fix test_selectors.test_above_fd_setsize on OS X, where the
default RLIMIT_NOFILE hard limit can be RLIMIT_INFINITY.
Charles-François Natali [Sun, 8 Sep 2013 09:30:53 +0000 (11:30 +0200)]
Issue #18934: Use poll/select-based selectors for multiprocessing.Connection,
to avoid one extra FD per Connection.
Raymond Hettinger [Sun, 8 Sep 2013 07:25:57 +0000 (00:25 -0700)]
Put the defines in the logical section and fix indentation.
Senthil Kumaran [Sun, 8 Sep 2013 06:20:06 +0000 (23:20 -0700)]
merge from 3.3
Fix the dead link of IEEE_854-1987 standard with the Wikipedia entry.
Addresses issue #18438
Senthil Kumaran [Sun, 8 Sep 2013 06:19:29 +0000 (23:19 -0700)]
Fix the dead link of IEEE_854-1987 standard with the Wikipedia entry.
Addresses issue #18438
Raymond Hettinger [Sun, 8 Sep 2013 05:06:35 +0000 (22:06 -0700)]
Minor code beautification.
Raymond Hettinger [Sun, 8 Sep 2013 04:01:29 +0000 (21:01 -0700)]
Improve code clarity by removing two unattractive macros.
Raymond Hettinger [Sun, 8 Sep 2013 03:26:50 +0000 (20:26 -0700)]
Remove the freelist scheme for setobjects.
The setobject freelist was consuming memory but not providing much value.
Even when a freelisted setobject was available, most of the setobject
fields still needed to be initialized and the small table still required
a memset(). This meant that the custom freelisting scheme for sets was
providing almost no incremental benefit over the default Python freelist
scheme used by _PyObject_Malloc() in Objects/obmalloc.c.
Nick Coghlan [Sun, 8 Sep 2013 02:49:53 +0000 (12:49 +1000)]
Merge #18952 fix from 3.3
Tim Peters [Sun, 8 Sep 2013 02:23:03 +0000 (21:23 -0500)]
Issue 18808: blind attempt to repair some buildbot failures.
test_is_alive_after_fork is failing on some old Linux kernels, but
passing on all newer ones. Since virtually anything can go wrong
with locks when mixing threads with fork, replace the most likely
cause with a redundant simple data member.
Nick Coghlan [Sun, 8 Sep 2013 01:40:34 +0000 (11:40 +1000)]
Close #18952: correctly download test support data
When test.support was converted to a package, it started silently
skipping the tests which needed to download support data to run.
This change refactors the affected code, and also tidies up
test.support.findfile to remove the unused *here* parameter, document
the *subdir* parameter and rename the *filename* parameter to avoid
shadowing the file builtin and be consistent with the documentation.
The unexpected skips were noticed and reported by Zachary Ware
Senthil Kumaran [Sun, 8 Sep 2013 00:52:38 +0000 (17:52 -0700)]
merge from 3.3
Correct Profile class usage example. Addresses issue #18033.
Patch contributed by Olivier Hervieu and Dmi Baranov.