]> granicus.if.org Git - python/log
python
11 years agomerge
Raymond Hettinger [Wed, 25 Jun 2014 04:39:27 +0000 (21:39 -0700)]
merge

11 years agoIssue #19145: Fix handling of negative values for a "times" keyword argument to...
Raymond Hettinger [Wed, 25 Jun 2014 04:36:58 +0000 (21:36 -0700)]
Issue #19145:  Fix handling of negative values for a "times" keyword argument to itertools.repeat()>

(Patch contributed by Vajrasky Kok.)

11 years agoMERGE: Closes #21441: Reorder elements in documentation to match actual order in...
Jesus Cea [Wed, 25 Jun 2014 03:38:40 +0000 (05:38 +0200)]
MERGE: Closes #21441: Reorder elements in documentation to match actual order in the code

11 years agoMERGE: Closes #21441: Reorder elements in documentation to match actual order in...
Jesus Cea [Wed, 25 Jun 2014 03:38:06 +0000 (05:38 +0200)]
MERGE: Closes #21441: Reorder elements in documentation to match actual order in the code

11 years agoCloses #21441: Reorder elements in documentation to match actual order in the code
Jesus Cea [Wed, 25 Jun 2014 03:37:17 +0000 (05:37 +0200)]
Closes #21441: Reorder elements in documentation to match actual order in the code

11 years agoMerge with 3.4
Terry Jan Reedy [Wed, 25 Jun 2014 02:21:56 +0000 (22:21 -0400)]
Merge with 3.4

11 years agoIssue #14117: Inprove help text and docstrings, some for clarity, some just to
Terry Jan Reedy [Wed, 25 Jun 2014 02:21:41 +0000 (22:21 -0400)]
Issue #14117: Inprove help text and docstrings, some for clarity, some just to
fit in the default width of the text window (45 chars).

11 years agomerge
Raymond Hettinger [Wed, 25 Jun 2014 01:13:31 +0000 (18:13 -0700)]
merge

11 years agoAdd news entry for #21832
Raymond Hettinger [Wed, 25 Jun 2014 01:11:48 +0000 (18:11 -0700)]
Add news entry for #21832

11 years agomerge
Raymond Hettinger [Wed, 25 Jun 2014 01:07:57 +0000 (18:07 -0700)]
merge

11 years agomerge
Raymond Hettinger [Wed, 25 Jun 2014 01:07:33 +0000 (18:07 -0700)]
merge

11 years agomerge
Raymond Hettinger [Wed, 25 Jun 2014 01:07:14 +0000 (18:07 -0700)]
merge

11 years agomerge
Raymond Hettinger [Tue, 24 Jun 2014 22:21:24 +0000 (15:21 -0700)]
merge

11 years agoIssue 21832: Require named tuple inputs to be exact strings
Raymond Hettinger [Tue, 24 Jun 2014 22:20:55 +0000 (15:20 -0700)]
Issue 21832:  Require named tuple inputs to be exact strings

11 years ago(Merge 3.4) asyncio: repr(Task) now also contains the line number even if the
Victor Stinner [Tue, 24 Jun 2014 20:58:23 +0000 (22:58 +0200)]
(Merge 3.4) asyncio: repr(Task) now also contains the line number even if the
coroutine is done: use the first line number of the code object instead of the
current line number of the generator frame.

The name of the coroutine is not enough because many coroutines may have the
same name. It's a common case in asyncio tests for example.

11 years agoasyncio: repr(Task) now also contains the line number even if the coroutine is
Victor Stinner [Tue, 24 Jun 2014 20:57:14 +0000 (22:57 +0200)]
asyncio: repr(Task) now also contains the line number even if the coroutine is
done: use the first line number of the code object instead of the current line
number of the generator frame.

The name of the coroutine is not enough because many coroutines may have the
same name. It's a common case in asyncio tests for example.

11 years agomerge
Raymond Hettinger [Tue, 24 Jun 2014 20:52:19 +0000 (13:52 -0700)]
merge

11 years agomerge
Raymond Hettinger [Tue, 24 Jun 2014 20:51:59 +0000 (13:51 -0700)]
merge

11 years agomerge
Raymond Hettinger [Tue, 24 Jun 2014 20:51:42 +0000 (13:51 -0700)]
merge

11 years agomerge
Raymond Hettinger [Tue, 24 Jun 2014 20:51:18 +0000 (13:51 -0700)]
merge

11 years agomerge: #20155: use fake HTTP method names so windows doesn't hang the tests.
R David Murray [Tue, 24 Jun 2014 20:49:04 +0000 (16:49 -0400)]
merge: #20155: use fake HTTP method names so windows doesn't hang the tests.

11 years agomerge
Raymond Hettinger [Tue, 24 Jun 2014 20:44:39 +0000 (13:44 -0700)]
merge

11 years agoIssue 21832: Require named tuple inputs to be exact strings
Raymond Hettinger [Tue, 24 Jun 2014 20:44:03 +0000 (13:44 -0700)]
Issue 21832:  Require named tuple inputs to be exact strings

11 years ago#20155: use fake HTTP method names so windows doesn't hang the tests.
R David Murray [Tue, 24 Jun 2014 20:39:49 +0000 (16:39 -0400)]
#20155: use fake HTTP method names so windows doesn't hang the tests.

Windows was seeing the 'GET' generated by these tests as invalid and forcibly
closing the socket, causing the test to fail.

Patch by Jeff Allen.

11 years ago(Merge 3.4) asyncio: Log an error if a Task is destroyed while it is still pending
Victor Stinner [Tue, 24 Jun 2014 20:38:31 +0000 (22:38 +0200)]
(Merge 3.4) asyncio: Log an error if a Task is destroyed while it is still pending

11 years agoasyncio: Log an error if a Task is destroyed while it is still pending
Victor Stinner [Tue, 24 Jun 2014 20:37:53 +0000 (22:37 +0200)]
asyncio: Log an error if a Task is destroyed while it is still pending

11 years agomerge
Raymond Hettinger [Tue, 24 Jun 2014 20:03:54 +0000 (13:03 -0700)]
merge

11 years agomerge
Raymond Hettinger [Tue, 24 Jun 2014 20:03:24 +0000 (13:03 -0700)]
merge

11 years agomerge 3.4
Benjamin Peterson [Tue, 24 Jun 2014 03:16:06 +0000 (20:16 -0700)]
merge 3.4

11 years agonull merge 3.4
Benjamin Peterson [Tue, 24 Jun 2014 03:16:01 +0000 (20:16 -0700)]
null merge 3.4

11 years agoadd Chris Foster
Benjamin Peterson [Tue, 24 Jun 2014 03:14:46 +0000 (20:14 -0700)]
add Chris Foster

11 years agoIssue #11974: Add tutorial section on class and instance variables
Raymond Hettinger [Tue, 24 Jun 2014 01:08:01 +0000 (18:08 -0700)]
Issue #11974:  Add tutorial section on class and instance variables
(Based on a patch from Renee Chu.)

11 years agoinspect: Validate that __signature__ is None or an instance of Signature.
Yury Selivanov [Mon, 23 Jun 2014 17:23:50 +0000 (10:23 -0700)]
inspect: Validate that __signature__ is None or an instance of Signature.

Closes #21801.

11 years agoinspect: Validate that __signature__ is None or an instance of Signature.
Yury Selivanov [Mon, 23 Jun 2014 17:21:04 +0000 (10:21 -0700)]
inspect: Validate that __signature__ is None or an instance of Signature.

Closes #21801.

11 years ago(Merge 3.4) asyncio: Fix BaseEventLoop._assert_is_current_event_loop():
Victor Stinner [Mon, 23 Jun 2014 13:14:50 +0000 (15:14 +0200)]
(Merge 3.4) asyncio: Fix BaseEventLoop._assert_is_current_event_loop():
get_event_loop() raises an exception if there is no current loop

11 years agoasyncio: Fix BaseEventLoop._assert_is_current_event_loop(): get_event_loop()
Victor Stinner [Mon, 23 Jun 2014 13:14:13 +0000 (15:14 +0200)]
asyncio: Fix BaseEventLoop._assert_is_current_event_loop(): get_event_loop()
raises an exception if there is no current loop

11 years agomerge
Raymond Hettinger [Mon, 23 Jun 2014 02:47:55 +0000 (19:47 -0700)]
merge

11 years agoIssue #8343: Named group error msgs did not show the group name.
Raymond Hettinger [Mon, 23 Jun 2014 02:47:22 +0000 (19:47 -0700)]
Issue #8343: Named group error msgs did not show the group name.

11 years agomerge 3.4 (#13143)
Benjamin Peterson [Mon, 23 Jun 2014 01:00:07 +0000 (18:00 -0700)]
merge 3.4 (#13143)

11 years agoclarify that islink only really works if python knows about symlinks (closes #13143)
Benjamin Peterson [Mon, 23 Jun 2014 00:59:35 +0000 (17:59 -0700)]
clarify that islink only really works if python knows about symlinks (closes #13143)

Patch from Yayoi Ukai.

11 years agomerge 3.4 (#16667)
Benjamin Peterson [Sun, 22 Jun 2014 23:27:10 +0000 (16:27 -0700)]
merge 3.4 (#16667)

11 years agosome timezone doc improvements (closes #16667)
Benjamin Peterson [Sun, 22 Jun 2014 23:26:39 +0000 (16:26 -0700)]
some timezone doc improvements (closes #16667)

From the combined efforts of Berber Peksage, Andrew Svetlov, and Yayoi Ukai.

11 years ago(Merge 3.4) asyncio, Tulip issue 171: BaseEventLoop.close() now raises an
Victor Stinner [Sun, 22 Jun 2014 23:03:13 +0000 (01:03 +0200)]
(Merge 3.4) asyncio, Tulip issue 171: BaseEventLoop.close() now raises an
exception if the event loop is running. You must first stop the event loop and
then wait until it stopped, before closing it.

11 years agoasyncio, Tulip issue 171: BaseEventLoop.close() now raises an exception if the
Victor Stinner [Sun, 22 Jun 2014 23:02:37 +0000 (01:02 +0200)]
asyncio, Tulip issue 171: BaseEventLoop.close() now raises an exception if the
event loop is running. You must first stop the event loop and then wait until
it stopped, before closing it.

11 years ago(Merge 3.4) asyncio: document the debug mode
Victor Stinner [Sun, 22 Jun 2014 22:46:16 +0000 (00:46 +0200)]
(Merge 3.4) asyncio: document the debug mode

11 years agoasyncio: document the debug mode
Victor Stinner [Sun, 22 Jun 2014 22:36:11 +0000 (00:36 +0200)]
asyncio: document the debug mode

11 years ago(Merge 3.4) asyncio, Tulip issue 172: only log selector timing in debug mode
Victor Stinner [Sun, 22 Jun 2014 22:31:31 +0000 (00:31 +0200)]
(Merge 3.4) asyncio, Tulip issue 172: only log selector timing in debug mode

11 years agoasyncio, Tulip issue 172: only log selector timing in debug mode
Victor Stinner [Sun, 22 Jun 2014 22:31:08 +0000 (00:31 +0200)]
asyncio, Tulip issue 172: only log selector timing in debug mode

11 years ago(Merge 3.4) asyncio: Add an unit test to check that setting the
Victor Stinner [Sun, 22 Jun 2014 22:21:09 +0000 (00:21 +0200)]
(Merge 3.4) asyncio: Add an unit test to check that setting the
PYTHONASYNCIODEBUG env var enables debug mode of the event loop.

11 years agoasyncio: Add an unit test to check that setting the PYTHONASYNCIODEBUG env var
Victor Stinner [Sun, 22 Jun 2014 22:19:33 +0000 (00:19 +0200)]
asyncio: Add an unit test to check that setting the PYTHONASYNCIODEBUG env var
enables debug mode of the event loop.

11 years ago(Merge 3.4) asyncio: Enable the debug mode of event loops when the
Victor Stinner [Sun, 22 Jun 2014 22:14:45 +0000 (00:14 +0200)]
(Merge 3.4) asyncio: Enable the debug mode of event loops when the
PYTHONASYNCIODEBUG environment variable is set

11 years agoasyncio: Enable the debug mode of event loops when the PYTHONASYNCIODEBUG
Victor Stinner [Sun, 22 Jun 2014 22:12:14 +0000 (00:12 +0200)]
asyncio: Enable the debug mode of event loops when the PYTHONASYNCIODEBUG
environment variable is set

11 years ago(Merge 3.4) asyncio: BaseEventLoop._assert_is_current_event_loop() now only
Victor Stinner [Sun, 22 Jun 2014 22:04:00 +0000 (00:04 +0200)]
(Merge 3.4) asyncio: BaseEventLoop._assert_is_current_event_loop() now only
raises an exception if the current loop is not None.

Guido van Rossum wrote:

"The behavior that you can set the loop to None (and keep track of it
explicitly) is part of the spec, and this should still be supported even in
debug mode. The behavior that we raise an error if you are caught having
multiple active loops per thread is just a debugging heuristic, and it
shouldn't break code that follows the spec."

11 years agoasyncio: BaseEventLoop._assert_is_current_event_loop() now only raises an
Victor Stinner [Sun, 22 Jun 2014 22:03:43 +0000 (00:03 +0200)]
asyncio: BaseEventLoop._assert_is_current_event_loop() now only raises an
exception if the current loop is not None.

Guido van Rossum wrote:

"The behavior that you can set the loop to None (and keep track of it
explicitly) is part of the spec, and this should still be supported even in
debug mode. The behavior that we raise an error if you are caught having
multiple active loops per thread is just a debugging heuristic, and it
shouldn't break code that follows the spec."

11 years agoreflow to 80 chars
Benjamin Peterson [Sun, 22 Jun 2014 21:19:07 +0000 (14:19 -0700)]
reflow to 80 chars

11 years agoadd BufferedIOBase.readinto1 (closes #20578)
Benjamin Peterson [Sun, 22 Jun 2014 21:17:44 +0000 (14:17 -0700)]
add BufferedIOBase.readinto1 (closes #20578)

Patch by Nikolaus Rath.

11 years agoIssue #10747: Merge with 3.4
Martin v. Löwis [Sun, 22 Jun 2014 20:28:04 +0000 (22:28 +0200)]
Issue #10747: Merge with 3.4

11 years agoIssue #10747: Use versioned labels in the Windows start menu.
Martin v. Löwis [Sun, 22 Jun 2014 20:22:33 +0000 (22:22 +0200)]
Issue #10747: Use versioned labels in the Windows start menu.
Patch by Olive Kilburn.

11 years agomerge heads
Giampaolo Rodola' [Sun, 22 Jun 2014 10:44:05 +0000 (12:44 +0200)]
merge heads

11 years ago#6916: attempt to fix BB failure
Giampaolo Rodola' [Sun, 22 Jun 2014 10:43:19 +0000 (12:43 +0200)]
#6916: attempt to fix BB failure

11 years agomerge
Raymond Hettinger [Sun, 22 Jun 2014 08:23:55 +0000 (01:23 -0700)]
merge

11 years agoIssue #21812: Trigger immediate transformation in turtle.shapetransform().
Raymond Hettinger [Sun, 22 Jun 2014 08:21:51 +0000 (01:21 -0700)]
Issue #21812:  Trigger immediate transformation in turtle.shapetransform().

11 years agoMerge with 3.4
Terry Jan Reedy [Sun, 22 Jun 2014 05:20:52 +0000 (01:20 -0400)]
Merge with 3.4

11 years agoIssue #21823: Catch turtle.Terminator exceptions in turtledemo.
Terry Jan Reedy [Sun, 22 Jun 2014 05:18:54 +0000 (01:18 -0400)]
Issue #21823: Catch turtle.Terminator exceptions in turtledemo.
Add note to demohelp.txt about doing so.

11 years agoIssue 21786: Clean-up test_pydoc taking taking advantage of diffing in unittest.
Raymond Hettinger [Sat, 21 Jun 2014 19:08:22 +0000 (12:08 -0700)]
Issue 21786:  Clean-up test_pydoc taking taking advantage of diffing in unittest.

11 years agomerge
Raymond Hettinger [Sat, 21 Jun 2014 18:59:46 +0000 (11:59 -0700)]
merge

11 years agoIssue 21635: Fix caching in difflib.SequenceMatcher.get_matching_blocks().
Raymond Hettinger [Sat, 21 Jun 2014 18:57:36 +0000 (11:57 -0700)]
Issue 21635:  Fix caching in difflib.SequenceMatcher.get_matching_blocks().

11 years agomerge heads
Giampaolo Rodola' [Sat, 21 Jun 2014 11:59:25 +0000 (13:59 +0200)]
merge heads

11 years ago#6916: raise a deprecation warning if using asynchat.fifo
Giampaolo Rodola' [Sat, 21 Jun 2014 11:58:30 +0000 (13:58 +0200)]
#6916: raise a deprecation warning if using asynchat.fifo

11 years agoFix test_pydoc failure introduced by cddb17c4975e. Patch by Berker Peksag.
Charles-François Natali [Fri, 20 Jun 2014 22:00:22 +0000 (23:00 +0100)]
Fix test_pydoc failure introduced by cddb17c4975e. Patch by Berker Peksag.

11 years agoMerge.
Charles-François Natali [Fri, 20 Jun 2014 21:59:32 +0000 (22:59 +0100)]
Merge.

11 years agoFix test_pydoc failure introduced by 7aa72075d440. Patch by Berker Peksag.
Charles-François Natali [Fri, 20 Jun 2014 21:59:12 +0000 (22:59 +0100)]
Fix test_pydoc failure introduced by 7aa72075d440. Patch by Berker Peksag.

11 years agoMerge.
Charles-François Natali [Fri, 20 Jun 2014 21:50:48 +0000 (22:50 +0100)]
Merge.

11 years agoIssue #21491: socketserver: Fix a race condition in child processes reaping.
Charles-François Natali [Fri, 20 Jun 2014 21:49:26 +0000 (22:49 +0100)]
Issue #21491: socketserver: Fix a race condition in child processes reaping.

11 years agoMerge with 3.4
Terry Jan Reedy [Fri, 20 Jun 2014 21:49:25 +0000 (17:49 -0400)]
Merge with 3.4

11 years agoIssue #21770: Call function instead of module. Patch by Claudiu Popa.
Terry Jan Reedy [Fri, 20 Jun 2014 21:49:10 +0000 (17:49 -0400)]
Issue #21770: Call function instead of module. Patch by Claudiu Popa.

11 years agoMerge.
Charles-François Natali [Fri, 20 Jun 2014 21:41:46 +0000 (22:41 +0100)]
Merge.

11 years agoMerge.
Charles-François Natali [Fri, 20 Jun 2014 21:41:21 +0000 (22:41 +0100)]
Merge.

11 years agoIssue #21491: socketserver: Fix a race condition in child processes reaping.
Charles-François Natali [Fri, 20 Jun 2014 21:37:35 +0000 (22:37 +0100)]
Issue #21491: socketserver: Fix a race condition in child processes reaping.

11 years agoMerge with 3.4
Terry Jan Reedy [Fri, 20 Jun 2014 19:17:01 +0000 (15:17 -0400)]
Merge with 3.4

11 years agoIssue #21768: fix NameError in test_pydescr. Patch by Claudiu Popa.
Terry Jan Reedy [Fri, 20 Jun 2014 19:16:35 +0000 (15:16 -0400)]
Issue #21768: fix NameError in test_pydescr. Patch by Claudiu Popa.

11 years agoMerge with 3.4
Terry Jan Reedy [Fri, 20 Jun 2014 18:59:27 +0000 (14:59 -0400)]
Merge with 3.4

11 years agoIssue #21768: fix type in test_pydoc, patch by Claudiu Popa.
Terry Jan Reedy [Fri, 20 Jun 2014 18:59:11 +0000 (14:59 -0400)]
Issue #21768: fix type in test_pydoc, patch by Claudiu Popa.

11 years ago(Merge 3.4) asyncio, Tulip issue 105: in debug mode, log callbacks taking more
Victor Stinner [Fri, 20 Jun 2014 15:34:44 +0000 (17:34 +0200)]
(Merge 3.4) asyncio, Tulip issue 105: in debug mode, log callbacks taking more
than 100 ms to be executed.

11 years agoasyncio, Tulip issue 105: in debug mode, log callbacks taking more than 100 ms
Victor Stinner [Fri, 20 Jun 2014 15:34:15 +0000 (17:34 +0200)]
asyncio, Tulip issue 105: in debug mode, log callbacks taking more than 100 ms
to be executed.

11 years agoSimplify a badly written condition.
Zachary Ware [Fri, 20 Jun 2014 14:20:37 +0000 (09:20 -0500)]
Simplify a badly written condition.

11 years agomerge from 3.4
Senthil Kumaran [Fri, 20 Jun 2014 08:38:37 +0000 (01:38 -0700)]
merge from 3.4

issue 20091 - index entry for __main__ in runpy docs.

11 years agoissue 20091 - index entry for __main__ in runpy docs.
Senthil Kumaran [Fri, 20 Jun 2014 08:37:53 +0000 (01:37 -0700)]
issue 20091 - index entry for __main__ in runpy docs.

11 years ago#21690: merge with 3.4.
Ezio Melotti [Thu, 19 Jun 2014 21:55:10 +0000 (00:55 +0300)]
#21690: merge with 3.4.

11 years ago#21690: fix a couple of links in the docs of the re module. Noticed by Julian Gilbey.
Ezio Melotti [Thu, 19 Jun 2014 21:52:11 +0000 (00:52 +0300)]
#21690: fix a couple of links in the docs of the re module.  Noticed by Julian Gilbey.

11 years ago(Merge 3.4) Tulip issue 83: document more asyncio functions in docstrings
Victor Stinner [Thu, 19 Jun 2014 15:14:05 +0000 (17:14 +0200)]
(Merge 3.4) Tulip issue 83: document more asyncio functions in docstrings

11 years agoTulip issue 83: document more asyncio functions in docstrings
Victor Stinner [Thu, 19 Jun 2014 15:11:49 +0000 (17:11 +0200)]
Tulip issue 83: document more asyncio functions in docstrings

11 years agoIssue #21741: Add st_file_attributes to os.stat_result on Windows.
Zachary Ware [Thu, 19 Jun 2014 14:46:37 +0000 (09:46 -0500)]
Issue #21741: Add st_file_attributes to os.stat_result on Windows.

Patch by Ben Hoyt.

11 years ago(Merge 3.4) Closes #21595: asyncio.BaseSelectorEventLoop._read_from_self() now
Victor Stinner [Thu, 19 Jun 2014 10:59:32 +0000 (12:59 +0200)]
(Merge 3.4) Closes #21595: asyncio.BaseSelectorEventLoop._read_from_self() now
reads all available bytes from the "self pipe", not only a single byte. This
change reduces the risk of having the pipe full and so getting the innocuous
"BlockingIOError: [Errno 11] Resource temporarily unavailable" message.

11 years agoCloses #21595: asyncio.BaseSelectorEventLoop._read_from_self() now reads all
Victor Stinner [Thu, 19 Jun 2014 10:59:15 +0000 (12:59 +0200)]
Closes #21595: asyncio.BaseSelectorEventLoop._read_from_self() now reads all
available bytes from the "self pipe", not only a single byte. This change
reduces the risk of having the pipe full and so getting the innocuous
"BlockingIOError: [Errno 11] Resource temporarily unavailable" message.

11 years ago(Merge 3.4) Closes #21758: asyncio doc: mention explicitly that subprocess
Victor Stinner [Thu, 19 Jun 2014 10:51:17 +0000 (12:51 +0200)]
(Merge 3.4) Closes #21758: asyncio doc: mention explicitly that subprocess
parameters are bytes or character strings

11 years agoCloses #21758: asyncio doc: mention explicitly that subprocess parameters are
Victor Stinner [Thu, 19 Jun 2014 10:50:27 +0000 (12:50 +0200)]
Closes #21758: asyncio doc: mention explicitly that subprocess parameters are
bytes or character strings

11 years agoIssue #21722: The distutils "upload" command now exits with a non-zero return code...
Antoine Pitrou [Thu, 19 Jun 2014 03:09:11 +0000 (23:09 -0400)]
Issue #21722: The distutils "upload" command now exits with a non-zero return code when uploading fails.
Patch by Martin Dengler.

11 years agoIssue #21722: The distutils "upload" command now exits with a non-zero return code...
Antoine Pitrou [Thu, 19 Jun 2014 03:07:46 +0000 (23:07 -0400)]
Issue #21722: The distutils "upload" command now exits with a non-zero return code when uploading fails.
Patch by Martin Dengler.

11 years agoIssue #3485: merge from 3.4
Ned Deily [Wed, 18 Jun 2014 20:10:44 +0000 (13:10 -0700)]
Issue #3485: merge from 3.4