Terry Jan Reedy
5827da3f9f
Merge with 3.4
2014-06-24 22:21:56 -04:00
Terry Jan Reedy
c5a72e6971
Issue #14117 : Inprove help text and docstrings, some for clarity, some just to
...
fit in the default width of the text window (45 chars).
2014-06-24 22:21:41 -04:00
Raymond Hettinger
d04d511078
merge
2014-06-24 18:13:31 -07:00
Raymond Hettinger
6f6922c090
Add news entry for #21832
2014-06-24 18:11:48 -07:00
Raymond Hettinger
b5e78dbb3b
merge
2014-06-24 18:07:57 -07:00
Raymond Hettinger
5cfec399db
merge
2014-06-24 18:07:33 -07:00
Raymond Hettinger
d21beaefc5
merge
2014-06-24 18:07:14 -07:00
Raymond Hettinger
f2bbb651a8
merge
2014-06-24 15:21:24 -07:00
Raymond Hettinger
bc000509e8
Issue 21832: Require named tuple inputs to be exact strings
2014-06-24 15:20:55 -07:00
Victor Stinner
5c2f5ab465
(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.
2014-06-24 22:58:23 +02:00
Victor Stinner
df29c4a83d
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.
2014-06-24 22:57:14 +02:00
Raymond Hettinger
ea2b007b44
merge
2014-06-24 13:52:19 -07:00
Raymond Hettinger
a99771e542
merge
2014-06-24 13:51:59 -07:00
Raymond Hettinger
16f08355ce
merge
2014-06-24 13:51:42 -07:00
Raymond Hettinger
aba9bfed73
merge
2014-06-24 13:51:18 -07:00
R David Murray
24a3c72638
merge: #20155 : use fake HTTP method names so windows doesn't hang the tests.
2014-06-24 16:49:04 -04:00
Raymond Hettinger
21468dfa4d
merge
2014-06-24 13:44:39 -07:00
Raymond Hettinger
7c59613a75
Issue 21832: Require named tuple inputs to be exact strings
2014-06-24 13:44:03 -07:00
R David Murray
14199f9392
#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.
2014-06-24 16:39:49 -04:00
Victor Stinner
777aa64eaa
(Merge 3.4) asyncio: Log an error if a Task is destroyed while it is still pending
2014-06-24 22:38:31 +02:00
Victor Stinner
a02f81ff17
asyncio: Log an error if a Task is destroyed while it is still pending
2014-06-24 22:37:53 +02:00
Raymond Hettinger
c03dc0f164
merge
2014-06-24 13:03:54 -07:00
Raymond Hettinger
4c945fe9e9
merge
2014-06-24 13:03:24 -07:00
Benjamin Peterson
f5c5175b47
merge 3.4
2014-06-23 20:16:06 -07:00
Benjamin Peterson
5bb0c84a8f
null merge 3.4
2014-06-23 20:16:01 -07:00
Benjamin Peterson
17f9b64c63
add Chris Foster
2014-06-23 20:14:46 -07:00
Raymond Hettinger
04ba0bb80c
Issue #11974 : Add tutorial section on class and instance variables
...
(Based on a patch from Renee Chu.)
2014-06-23 18:08:01 -07:00
Yury Selivanov
42407abe24
inspect: Validate that __signature__ is None or an instance of Signature.
...
Closes #21801 .
2014-06-23 10:23:50 -07:00
Yury Selivanov
c0f964fd55
inspect: Validate that __signature__ is None or an instance of Signature.
...
Closes #21801 .
2014-06-23 10:21:04 -07:00
Victor Stinner
289cae4f92
(Merge 3.4) asyncio: Fix BaseEventLoop._assert_is_current_event_loop():
...
get_event_loop() raises an exception if there is no current loop
2014-06-23 15:14:50 +02:00
Victor Stinner
751c7c0f2d
asyncio: Fix BaseEventLoop._assert_is_current_event_loop(): get_event_loop()
...
raises an exception if there is no current loop
2014-06-23 15:14:13 +02:00
Raymond Hettinger
ef85df168a
merge
2014-06-22 19:47:55 -07:00
Raymond Hettinger
1c99bc84bd
Issue #8343 : Named group error msgs did not show the group name.
2014-06-22 19:47:22 -07:00
Benjamin Peterson
7534539536
merge 3.4 ( #13143 )
2014-06-22 18:00:07 -07:00
Benjamin Peterson
f6f78e1d9d
clarify that islink only really works if python knows about symlinks ( closes #13143 )
...
Patch from Yayoi Ukai.
2014-06-22 17:59:35 -07:00
Benjamin Peterson
19db33fb08
merge 3.4 ( #16667 )
2014-06-22 16:27:10 -07:00
Benjamin Peterson
9b29acd1fe
some timezone doc improvements ( closes #16667 )
...
From the combined efforts of Berber Peksage, Andrew Svetlov, and Yayoi Ukai.
2014-06-22 16:26:39 -07:00
Victor Stinner
425aaa11d8
(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.
2014-06-23 01:03:13 +02:00
Victor Stinner
f328c7dc69
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.
2014-06-23 01:02:37 +02:00
Victor Stinner
422a76d6ad
(Merge 3.4) asyncio: document the debug mode
2014-06-23 00:46:16 +02:00
Victor Stinner
62511fd6d6
asyncio: document the debug mode
2014-06-23 00:36:11 +02:00
Victor Stinner
1217ab0e0f
(Merge 3.4) asyncio, Tulip issue 172: only log selector timing in debug mode
2014-06-23 00:31:31 +02:00
Victor Stinner
1580fe3fce
asyncio, Tulip issue 172: only log selector timing in debug mode
2014-06-23 00:31:08 +02:00
Victor Stinner
dc8b54cdf2
(Merge 3.4) asyncio: Add an unit test to check that setting the
...
PYTHONASYNCIODEBUG env var enables debug mode of the event loop.
2014-06-23 00:21:09 +02:00
Victor Stinner
c082ee692b
asyncio: Add an unit test to check that setting the PYTHONASYNCIODEBUG env var
...
enables debug mode of the event loop.
2014-06-23 00:19:33 +02:00
Victor Stinner
d42b49256f
(Merge 3.4) asyncio: Enable the debug mode of event loops when the
...
PYTHONASYNCIODEBUG environment variable is set
2014-06-23 00:14:45 +02:00
Victor Stinner
7b7120e159
asyncio: Enable the debug mode of event loops when the PYTHONASYNCIODEBUG
...
environment variable is set
2014-06-23 00:12:14 +02:00
Victor Stinner
33d2e40d88
(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."
2014-06-23 00:04:00 +02:00
Victor Stinner
d6de5d8455
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."
2014-06-23 00:03:43 +02:00
Benjamin Peterson
2a1a49063b
reflow to 80 chars
2014-06-22 14:19:07 -07:00