Victor Stinner
665758f804
Issue #20455 : math.ceil() returns an int in Python 3, no need to cast the
...
result again to int
2014-01-31 16:24:21 +01:00
Victor Stinner
20b017ef9e
Windows buildbot: use --timeout feature in Tools/buildbot/test.bat
...
Use the same default timeout than Makefile: 1 hour (3600 seconds).
2014-01-31 16:07:32 +01:00
Larry Hastings
4205065f9b
Issue #20390 : Removing detritus from Argument Clinic "file preset" name change.
2014-01-31 05:59:48 -08:00
Victor Stinner
b60e9ca69d
Issue #20455 : asyncio: write a new write pipe transport class for proactor (on
...
Windows) instead of using the "duplex" pipe transport. The new class uses a
simpler overlapped read to be notified when the pipe is closed. So the protocol
doesn't need to implement eof_received(): connection_lost() is called instead.
_UnixWritePipeTransport has the same approach.
2014-01-31 14:18:18 +01:00
Victor Stinner
61b3c9bacc
asyncio: Fix _UnixWritePipeTransport, raise BrokenPipeError when the pipe is
...
closed, but only if there was pending write
2014-01-31 13:04:28 +01:00
Victor Stinner
fcfb9461d3
Issue #20311 , #20452 : poll and epoll now round the timeout away from zero,
...
instead of rounding towards zero, in select and selectors modules:
select.epoll.poll(), selectors.PollSelector.poll() and
selectors.EpollSelector.poll(). For example, a timeout of one microsecond
(1e-6) is now rounded to one millisecondi (1e-3), instead of being rounded to
zero.
Mention the change in Misc/NEWS.
2014-01-31 13:02:44 +01:00
Victor Stinner
49d0f4e428
Issue #20452 : Remove debug code, no more needed
2014-01-31 12:59:43 +01:00
Victor Stinner
323748e1d1
asyncio: Fix error message in BaseEventLoop.subprocess_shell(). Patch written
...
by Vajrasky Kok.
2014-01-31 12:28:30 +01:00
Victor Stinner
dcd9740ad2
Issue #20452 : select and selectors round (again) timeout away from zero for
...
poll and epoll
Improve also debug info to analyze the issue
2014-01-31 12:12:53 +01:00
Victor Stinner
31f65044a9
Issue #20452 : Oops, fix debug code :-/
...
Add also event more debug info
2014-01-31 10:55:55 +01:00
Victor Stinner
0278032110
Issue #20452 : add more info in case of test_asyncio failure to try to debug the
...
failure on buildbot "x86 Ubuntu Shared 3.x"
2014-01-31 09:29:35 +01:00
Guido van Rossum
a849be9c64
asyncio: Fix misc whitespace issues.
2014-01-30 16:05:28 -08:00
Victor Stinner
1c16537327
asyncio: Fix granularity of test_utils.TestLoop.
2014-01-30 16:05:07 -08:00
Victor Stinner
9572898282
asyncio: Future.set_exception(exc) should instantiate exc if it is a class.
2014-01-30 16:01:54 -08:00
Victor Stinner
91445fbeb0
overlapped.c: Fix usage of the union
...
* read_buffer can only be used for TYPE_READ and TYPE_ACCEPT types
* write_buffer can only be used for TYPE_WRITE type
2014-01-30 19:06:44 +01:00
Gregory P. Smith
63a615cfa1
Remove issue 19081 Misc/NEWS entry since it isn't entirely fixed yet.
2014-01-29 23:02:49 -08:00
Gregory P. Smith
844dcfbf59
Remove issue 19081 Misc/NEWS entry since it isn't entirely fixed yet.
2014-01-29 22:59:34 -08:00
Yury Selivanov
d71e52fc33
inspect.doc: Soften the note about inspect.signature not supporting
...
all builtin functions.
2014-01-30 00:22:57 -05:00
Yury Selivanov
224c9c1f49
inspect.docs: Document constructors for Signature & Parameter #20442
2014-01-30 00:12:02 -05:00
Yury Selivanov
783568980a
inspect.docs: Document constructors for Signature & Parameter #20442
2014-01-30 00:10:54 -05:00
Victor Stinner
1ad5afc050
asyncio: document iscoroutine(), iscoroutinefunction() and wait_for()
...
Mention that wait_for() now accepts None for the timeout.
2014-01-30 00:18:50 +01:00
Antoine Pitrou
0e5b2412c2
Issue #20373 : generalize use of test.script_helper in test_warnings. Patch by Arfrever.
2014-01-29 23:45:07 +01:00
Antoine Pitrou
bb08b365c0
Issue #20373 : generalize use of test.script_helper in test_warnings. Patch by Arfrever.
2014-01-29 23:44:05 +01:00
Guido van Rossum
9e3a60b7d7
More asyncio news.
2014-01-29 14:40:56 -08:00
Victor Stinner
e623a12297
asyncio: subprocess_shell() and subprocess_exec() now raise ValueError instead of assert.
...
Moreover, bufsize different than 0 is now considered as an error.
2014-01-29 14:35:15 -08:00
Victor Stinner
73f10fd2f1
asyncio: Fix _make_subprocess_transport(): pass extra value to the constructor.
2014-01-29 14:32:20 -08:00
Guido van Rossum
48c66c3dd8
asyncio: wait_for() now accepts None as timeout (Victor Stinner).
2014-01-29 14:30:38 -08:00
Guido van Rossum
1e9a446ebe
asyncio: Pass through pause/resume from subprocess pipe proto to subprocess proto. Also kill dummy eof_received().
2014-01-29 14:28:15 -08:00
Guido van Rossum
4d62d0b353
asyncio: Refactor drain logic in streams.py to be reusable.
2014-01-29 14:24:45 -08:00
Victor Stinner
aaabc4fdca
asyncio: Get rid of _try_connected().
2014-01-29 14:22:56 -08:00
Guido van Rossum
47fb97e4e6
asyncio: Add write flow control to unix pipes.
2014-01-29 13:20:39 -08:00
Guido van Rossum
3ccead1f6a
asyncio: Refactoring: move write flow control to a subclass/mixin.
2014-01-29 13:15:59 -08:00
Victor Stinner
63b4d4b494
asyncio: _fatal_error() of _UnixWritePipeTransport and _ProactorBasePipeTransport shouldn't log BrokenPipeError nor ConnectionResetError.
...
(Same behaviour as _SelectorTransport._fatal_error().)
2014-01-29 13:12:03 -08:00
Yury Selivanov
89ca85c746
inspect.Signature.from_function: Use CO_VARARGS & CO_VARKEYWORDS constants
2014-01-29 16:50:40 -05:00
Yury Selivanov
0486f819c9
inspect.signature: Make sure that if a callable object has '_patialmethod'
...
attribute, that attribute is an instance of 'functools.partialmethod'.
2014-01-29 12:18:59 -05:00
Yury Selivanov
c45873e434
inspect.Signature.bind: Update method signature to rule out possiblity
...
of name conflict between '__bind_self' and actual keyword argument to
'bind' or 'bind_partial'.
2014-01-29 12:10:27 -05:00
Yury Selivanov
421f0c7be1
inspect: Rename private helper function
2014-01-29 12:05:40 -05:00
Yury Selivanov
4cb939174c
inspect.test.getfullargspec: Add a unittest to ensure correct annotations
...
handling #17481
2014-01-29 11:54:12 -05:00
Yury Selivanov
d82eddcf05
inspect.getfullargspec: Use inspect.signature API behind the scenes #17481
2014-01-29 11:24:39 -05:00
Yury Selivanov
07a9e452ac
inspect.Signature: ensure that non-default params don't follow default ones #20427
2014-01-29 10:58:16 -05:00
Yury Selivanov
76c6c593ed
inspect.signature: Add support for decorated (wrapped) builtins #20425
2014-01-29 10:52:57 -05:00
Yury Selivanov
b77511da92
inspect.Signature: Make from_builtin to raise an exception if no signature can
...
be provided #20422
2014-01-29 10:46:14 -05:00
Serhiy Storchaka
9f2e46de34
Issue #20424 : Python implementation of io.StringIO now supports lone surrogates.
2014-01-29 11:45:31 +02:00
Serhiy Storchaka
61f5616348
Move Misc/NEWS entries committed after releasing 3.4.0b3 to correct places.
2014-01-29 11:44:25 +02:00
Serhiy Storchaka
c92ea76f3f
Issue #20424 : Python implementation of io.StringIO now supports lone surrogates.
2014-01-29 11:33:26 +02:00
Terry Jan Reedy
d67650e241
Merge with 3.3
2014-01-28 23:14:12 -05:00
Terry Jan Reedy
1e40295af6
Idlelib: forward port changes that silenced 2.7 -3 deprecation warnings and
...
which are at least as efficient. On Py3, unpacking exceptions never works.
2014-01-28 23:13:45 -05:00
Yury Selivanov
9b9ac953c8
inspect.Signature.bind: Add **kwargs/positional-only check back
2014-01-28 20:54:28 -05:00
Victor Stinner
f40c66334d
asyncio doc: close the loop at exit
2014-01-28 23:32:40 +01:00
Yury Selivanov
38b0d5a778
inspect.Signature.bind: Fix pos-only params with defaults; fix *args in named args #19140
...
Initial patch by Yann Kaiser (epsy).
2014-01-28 17:27:39 -05:00