R David Murray
4885f49e7f
whatsnew: filecmp.clear_cache, and reword description of cache in docs.
2014-02-02 11:11:01 -05:00
Terry Jan Reedy
2315779c5e
Update the python.gif icon for the Idle classbrowser and pathbowser
...
from the old green snake to the new new blue and yellow snakes.
2014-02-01 23:14:59 -05:00
Terry Jan Reedy
c8d9e0e932
Update the python.gif icon for the Idle classbrowser and pathbowser
...
from the old green snake to the new new blue and yellow snakes.
2014-02-01 23:08:33 -05:00
Victor Stinner
915bcb0111
Issue #20400 : Merge Tulip into Python: add the new asyncio.subprocess module
...
* Add a new asyncio.subprocess module
* Add new create_subprocess_exec() and create_subprocess_shell() functions
* The new asyncio.subprocess.SubprocessStreamProtocol creates stream readers
for stdout and stderr and a stream writer for stdin.
* The new asyncio.subprocess.Process class offers an API close to the
subprocess.Popen class:
- pid, returncode, stdin, stdout and stderr attributes
- communicate(), wait(), send_signal(), terminate() and kill() methods
* Remove STDIN (0), STDOUT (1) and STDERR (2) constants from base_subprocess
and unix_events, to not be confused with the symbols with the same name of
subprocess and asyncio.subprocess modules
* _ProactorBasePipeTransport.get_write_buffer_size() now counts also the size
of the pending write
* _ProactorBaseWritePipeTransport._loop_writing() may now pause the protocol if
the write buffer size is greater than the high water mark (64 KB by default)
2014-02-01 22:49:59 +01:00
Ezio Melotti
153d97b24e
#20288 : merge with 3.3.
2014-02-01 21:22:26 +02:00
Ezio Melotti
f27b9a741a
#20288 : fix handling of invalid numeric charrefs in HTMLParser.
2014-02-01 21:21:01 +02:00
Yury Selivanov
145dff8567
inspect.tests: Fix tests to work on python built with '--without-doc-strings' #20471
2014-02-01 13:49:29 -05:00
Victor Stinner
04edd2eb7f
Fix test_hash on "SPARC Solaris 10 (cc%2C 64b) [SB] 3.x" buildbot
...
I picked the value from the error message:
======================================================================
FAIL: test_ucs2_string (test.test_hash.StrHashRandomizationTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/cpython/buildslave/cc-64/3.x.snakebite-sol10-sparc-cc-64/build/Lib/test/test_hash.py", line 292, in test_ucs2_string
self.assertEqual(self.get_hash(self.repr_ucs2, seed=42), h)
AssertionError: -3927695501187247084 != None
2014-02-01 04:30:48 +01:00
Victor Stinner
0f54db3a85
test_hash: Fix a BytesWarning in get_hash_command()
2014-02-01 04:26:46 +01:00
Victor Stinner
a0aa88ce89
test_asyncio: relax timing, the "AMD64 Windows Server 2008 [SB] 3.x" buildbot
...
looks to be slow
2014-02-01 04:11:16 +01:00
Victor Stinner
524be3056e
tracemalloc: Fix slicing traces and fix slicing a traceback.
2014-02-01 04:07:02 +01:00
Victor Stinner
55effc6dd0
Issue #20452 : Fix test_time_and_call_at() of test_asyncio on Windows
...
Use the granularity to check the minimum time delta, instead of arbitrary
value.
2014-02-01 02:18:52 +01:00
Victor Stinner
1144214639
Issue #20452 : test_asyncio checks also the granularity
2014-02-01 02:17:54 +01:00
Brian Quinlan
2b754f49a5
Issue #20319 : concurrent.futures.wait() can block forever even if Futures have completed
2014-02-01 11:49:04 +11:00
Yury Selivanov
0ba5f0d386
inspect: Add some comments in Parameter.__eq__ method
2014-01-31 15:30:30 -05:00
Yury Selivanov
5334bcdf97
inspect.Signauture.from_function: validate duck functions in Signature constructor #17159
2014-01-31 15:21:51 -05:00
Yury Selivanov
63da7c7b0c
inspect.signature: Support duck-types of Python functions (Cython, for instance) #17159
2014-01-31 14:48:37 -05:00
Yury Selivanov
0860a0bd3f
inspect.classify_class_attrs: Classify object.__new__ and __init__ correctly #18801
2014-01-31 14:28:44 -05:00
Victor Stinner
62510dced9
Issue #20452 : test_asyncio: Add more info if the test fails
2014-01-31 16:39:10 +01:00
Victor Stinner
1506df2655
Issue #20455 : Add a resolution attribute to IocpProactor (1 ms)
2014-01-31 16:26:38 +01:00
Victor Stinner
f2e1768bc1
Issue #20455 : asyncio: use the same code to round a timeout than the selectors
...
module
Sort also imports
2014-01-31 16:25:24 +01:00
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
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
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
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
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