]>
granicus.if.org Git - python/log
Victor Stinner [Sat, 1 Feb 2014 03:30:48 +0000 (04:30 +0100)]
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
Victor Stinner [Sat, 1 Feb 2014 03:26:46 +0000 (04:26 +0100)]
test_hash: Fix a BytesWarning in get_hash_command()
Victor Stinner [Sat, 1 Feb 2014 03:11:16 +0000 (04:11 +0100)]
test_asyncio: relax timing, the "AMD64 Windows Server 2008 [SB] 3.x" buildbot
looks to be slow
Victor Stinner [Sat, 1 Feb 2014 03:07:02 +0000 (04:07 +0100)]
tracemalloc: Fix slicing traces and fix slicing a traceback.
Victor Stinner [Sat, 1 Feb 2014 02:58:07 +0000 (03:58 +0100)]
Issue #20354: Mention the fix in Misc/NEWS
Victor Stinner [Sat, 1 Feb 2014 02:43:58 +0000 (03:43 +0100)]
Issue #20354: Fix alignment issue in the tracemalloc module on 64-bit
platforms. Bug seen on 64-bit Linux when using "make profile-opt".
Only align the "frame_t" structure on 32-bit when Visual Studio is used. Before
the alignment to 32-bit was applied to the whole file any compiler supporting
"#pragma pack(4)" which includes GCC.
Victor Stinner [Sat, 1 Feb 2014 02:38:56 +0000 (03:38 +0100)]
Issue #20162: Fix an alignment issue in the siphash24() hash function which
caused a crash on PowerPC 64-bit (ppc64).
Victor Stinner [Sat, 1 Feb 2014 02:18:58 +0000 (03:18 +0100)]
asyncio doc: add "Concurrency and multithreading" section
Victor Stinner [Sat, 1 Feb 2014 01:36:43 +0000 (02:36 +0100)]
asyncio doc: document the granularity of the event loop
Improve also the "Logging" section
Victor Stinner [Sat, 1 Feb 2014 01:18:52 +0000 (02:18 +0100)]
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.
Victor Stinner [Sat, 1 Feb 2014 01:17:54 +0000 (02:17 +0100)]
Issue #20452: test_asyncio checks also the granularity
Brian Quinlan [Sat, 1 Feb 2014 01:07:54 +0000 (12:07 +1100)]
Fix extra line added in
0bcf23a52d55
Brian Quinlan [Sat, 1 Feb 2014 00:49:04 +0000 (11:49 +1100)]
Issue #20319: concurrent.futures.wait() can block forever even if Futures have completed
Yury Selivanov [Fri, 31 Jan 2014 20:30:30 +0000 (15:30 -0500)]
inspect: Add some comments in Parameter.__eq__ method
Yury Selivanov [Fri, 31 Jan 2014 20:21:51 +0000 (15:21 -0500)]
inspect.Signauture.from_function: validate duck functions in Signature constructor #17159
Yury Selivanov [Fri, 31 Jan 2014 19:48:37 +0000 (14:48 -0500)]
inspect.signature: Support duck-types of Python functions (Cython, for instance) #17159
Yury Selivanov [Fri, 31 Jan 2014 19:42:34 +0000 (14:42 -0500)]
NEWS: Add news item for #18801
Yury Selivanov [Fri, 31 Jan 2014 19:28:44 +0000 (14:28 -0500)]
inspect.classify_class_attrs: Classify object.__new__ and __init__ correctly #18801
Zachary Ware [Fri, 31 Jan 2014 18:06:48 +0000 (12:06 -0600)]
Issue #20460: Merge with 3.3
Zachary Ware [Fri, 31 Jan 2014 18:06:14 +0000 (12:06 -0600)]
Issue #20460: Render 'bytes' as a class, not a function.
Patch by OSAMU NAKAMURA.
Zachary Ware [Fri, 31 Jan 2014 17:31:14 +0000 (11:31 -0600)]
Merge with 3.3
Zachary Ware [Fri, 31 Jan 2014 17:30:36 +0000 (11:30 -0600)]
Fix unfinished thought in xml overview page. Suggested by Bo Bayles on docs@.
Andrew Kuchling [Fri, 31 Jan 2014 17:17:53 +0000 (12:17 -0500)]
Typo fix
Brett Cannon [Fri, 31 Jan 2014 17:04:36 +0000 (12:04 -0500)]
The function name for cmath.isinf in PyArg_ParseTuple() was wrong.
Victor Stinner [Fri, 31 Jan 2014 15:39:10 +0000 (16:39 +0100)]
Issue #20452: test_asyncio: Add more info if the test fails
Victor Stinner [Fri, 31 Jan 2014 15:26:38 +0000 (16:26 +0100)]
Issue #20455: Add a resolution attribute to IocpProactor (1 ms)
Victor Stinner [Fri, 31 Jan 2014 15:25:24 +0000 (16:25 +0100)]
Issue #20455: asyncio: use the same code to round a timeout than the selectors
module
Sort also imports
Victor Stinner [Fri, 31 Jan 2014 15:24:21 +0000 (16:24 +0100)]
Issue #20455: math.ceil() returns an int in Python 3, no need to cast the
result again to int
Victor Stinner [Fri, 31 Jan 2014 15:07:32 +0000 (16:07 +0100)]
Windows buildbot: use --timeout feature in Tools/buildbot/test.bat
Use the same default timeout than Makefile: 1 hour (3600 seconds).
Larry Hastings [Fri, 31 Jan 2014 13:59:48 +0000 (05:59 -0800)]
Issue #20390: Removing detritus from Argument Clinic "file preset" name change.
Victor Stinner [Fri, 31 Jan 2014 13:18:18 +0000 (14:18 +0100)]
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.
Victor Stinner [Fri, 31 Jan 2014 12:04:28 +0000 (13:04 +0100)]
asyncio: Fix _UnixWritePipeTransport, raise BrokenPipeError when the pipe is
closed, but only if there was pending write
Victor Stinner [Fri, 31 Jan 2014 12:02:44 +0000 (13:02 +0100)]
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.
Victor Stinner [Fri, 31 Jan 2014 11:59:43 +0000 (12:59 +0100)]
Issue #20452: Remove debug code, no more needed
Victor Stinner [Fri, 31 Jan 2014 11:28:30 +0000 (12:28 +0100)]
asyncio: Fix error message in BaseEventLoop.subprocess_shell(). Patch written
by Vajrasky Kok.
Victor Stinner [Fri, 31 Jan 2014 11:12:53 +0000 (12:12 +0100)]
Issue #20452: select and selectors round (again) timeout away from zero for
poll and epoll
Improve also debug info to analyze the issue
Victor Stinner [Fri, 31 Jan 2014 09:55:55 +0000 (10:55 +0100)]
Issue #20452: Oops, fix debug code :-/
Add also event more debug info
Victor Stinner [Fri, 31 Jan 2014 08:29:35 +0000 (09:29 +0100)]
Issue #20452: add more info in case of test_asyncio failure to try to debug the
failure on buildbot "x86 Ubuntu Shared 3.x"
Guido van Rossum [Fri, 31 Jan 2014 00:05:28 +0000 (16:05 -0800)]
asyncio: Fix misc whitespace issues.
Victor Stinner [Fri, 31 Jan 2014 00:05:07 +0000 (16:05 -0800)]
asyncio: Fix granularity of test_utils.TestLoop.
Victor Stinner [Fri, 31 Jan 2014 00:01:54 +0000 (16:01 -0800)]
asyncio: Future.set_exception(exc) should instantiate exc if it is a class.
Victor Stinner [Thu, 30 Jan 2014 18:06:44 +0000 (19:06 +0100)]
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
Gregory P. Smith [Thu, 30 Jan 2014 07:02:49 +0000 (23:02 -0800)]
Remove issue 19081 Misc/NEWS entry since it isn't entirely fixed yet.
Gregory P. Smith [Thu, 30 Jan 2014 06:59:34 +0000 (22:59 -0800)]
Remove issue 19081 Misc/NEWS entry since it isn't entirely fixed yet.
Yury Selivanov [Thu, 30 Jan 2014 05:22:57 +0000 (00:22 -0500)]
inspect.doc: Soften the note about inspect.signature not supporting
all builtin functions.
Yury Selivanov [Thu, 30 Jan 2014 05:12:02 +0000 (00:12 -0500)]
inspect.docs: Document constructors for Signature & Parameter #20442
Yury Selivanov [Thu, 30 Jan 2014 05:10:54 +0000 (00:10 -0500)]
inspect.docs: Document constructors for Signature & Parameter #20442
Victor Stinner [Wed, 29 Jan 2014 23:18:50 +0000 (00:18 +0100)]
asyncio: document iscoroutine(), iscoroutinefunction() and wait_for()
Mention that wait_for() now accepts None for the timeout.
Antoine Pitrou [Wed, 29 Jan 2014 22:45:07 +0000 (23:45 +0100)]
Issue #20373: generalize use of test.script_helper in test_warnings. Patch by Arfrever.
Antoine Pitrou [Wed, 29 Jan 2014 22:44:05 +0000 (23:44 +0100)]
Issue #20373: generalize use of test.script_helper in test_warnings. Patch by Arfrever.
Guido van Rossum [Wed, 29 Jan 2014 22:40:56 +0000 (14:40 -0800)]
More asyncio news.
Victor Stinner [Wed, 29 Jan 2014 22:35:15 +0000 (14:35 -0800)]
asyncio: subprocess_shell() and subprocess_exec() now raise ValueError instead of assert.
Moreover, bufsize different than 0 is now considered as an error.
Victor Stinner [Wed, 29 Jan 2014 22:32:20 +0000 (14:32 -0800)]
asyncio: Fix _make_subprocess_transport(): pass extra value to the constructor.
Guido van Rossum [Wed, 29 Jan 2014 22:30:38 +0000 (14:30 -0800)]
asyncio: wait_for() now accepts None as timeout (Victor Stinner).
Guido van Rossum [Wed, 29 Jan 2014 22:28:15 +0000 (14:28 -0800)]
asyncio: Pass through pause/resume from subprocess pipe proto to subprocess proto. Also kill dummy eof_received().
Guido van Rossum [Wed, 29 Jan 2014 22:24:45 +0000 (14:24 -0800)]
asyncio: Refactor drain logic in streams.py to be reusable.
Victor Stinner [Wed, 29 Jan 2014 22:22:56 +0000 (14:22 -0800)]
asyncio: Get rid of _try_connected().
Guido van Rossum [Wed, 29 Jan 2014 21:20:39 +0000 (13:20 -0800)]
asyncio: Add write flow control to unix pipes.
Guido van Rossum [Wed, 29 Jan 2014 21:15:59 +0000 (13:15 -0800)]
asyncio: Refactoring: move write flow control to a subclass/mixin.
Victor Stinner [Wed, 29 Jan 2014 21:12:03 +0000 (13:12 -0800)]
asyncio: _fatal_error() of _UnixWritePipeTransport and _ProactorBasePipeTransport shouldn't log BrokenPipeError nor ConnectionResetError.
(Same behaviour as _SelectorTransport._fatal_error().)
Yury Selivanov [Wed, 29 Jan 2014 21:50:40 +0000 (16:50 -0500)]
inspect.Signature.from_function: Use CO_VARARGS & CO_VARKEYWORDS constants
Yury Selivanov [Wed, 29 Jan 2014 17:18:59 +0000 (12:18 -0500)]
inspect.signature: Make sure that if a callable object has '_patialmethod'
attribute, that attribute is an instance of 'functools.partialmethod'.
Yury Selivanov [Wed, 29 Jan 2014 17:10:27 +0000 (12:10 -0500)]
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'.
Yury Selivanov [Wed, 29 Jan 2014 17:05:40 +0000 (12:05 -0500)]
inspect: Rename private helper function
Yury Selivanov [Wed, 29 Jan 2014 16:54:12 +0000 (11:54 -0500)]
inspect.test.getfullargspec: Add a unittest to ensure correct annotations
handling #17481
Yury Selivanov [Wed, 29 Jan 2014 16:24:39 +0000 (11:24 -0500)]
inspect.getfullargspec: Use inspect.signature API behind the scenes #17481
Yury Selivanov [Wed, 29 Jan 2014 15:58:16 +0000 (10:58 -0500)]
inspect.Signature: ensure that non-default params don't follow default ones #20427
Yury Selivanov [Wed, 29 Jan 2014 15:52:57 +0000 (10:52 -0500)]
inspect.signature: Add support for decorated (wrapped) builtins #20425
Yury Selivanov [Wed, 29 Jan 2014 15:46:14 +0000 (10:46 -0500)]
inspect.Signature: Make from_builtin to raise an exception if no signature can
be provided #20422
Serhiy Storchaka [Wed, 29 Jan 2014 09:45:31 +0000 (11:45 +0200)]
Issue #20424: Python implementation of io.StringIO now supports lone surrogates.
Serhiy Storchaka [Wed, 29 Jan 2014 09:44:25 +0000 (11:44 +0200)]
Move Misc/NEWS entries committed after releasing 3.4.0b3 to correct places.
Serhiy Storchaka [Wed, 29 Jan 2014 09:33:26 +0000 (11:33 +0200)]
Issue #20424: Python implementation of io.StringIO now supports lone surrogates.
Terry Jan Reedy [Wed, 29 Jan 2014 04:14:12 +0000 (23:14 -0500)]
Merge with 3.3
Terry Jan Reedy [Wed, 29 Jan 2014 04:13:45 +0000 (23:13 -0500)]
Idlelib: forward port changes that silenced 2.7 -3 deprecation warnings and
which are at least as efficient. On Py3, unpacking exceptions never works.
Yury Selivanov [Wed, 29 Jan 2014 01:54:28 +0000 (20:54 -0500)]
inspect.Signature.bind: Add **kwargs/positional-only check back
Victor Stinner [Tue, 28 Jan 2014 22:32:40 +0000 (23:32 +0100)]
asyncio doc: close the loop at exit
Yury Selivanov [Tue, 28 Jan 2014 22:27:39 +0000 (17:27 -0500)]
inspect.Signature.bind: Fix pos-only params with defaults; fix *args in named args #19140
Initial patch by Yann Kaiser (epsy).
Yury Selivanov [Tue, 28 Jan 2014 21:39:25 +0000 (16:39 -0500)]
inspect: Fix docstrings for Parameter & Signature classes
Yury Selivanov [Tue, 28 Jan 2014 17:26:24 +0000 (12:26 -0500)]
inspect.signature: Handle bound methods with '(*args)' signature correctly #20401
Yury Selivanov [Tue, 28 Jan 2014 17:19:52 +0000 (12:19 -0500)]
inspect.tests: Remove redundant unittest
The removed unittest duplicates the other one (test_signature_on_builtins_no_signature)
Jason R. Coombs [Tue, 28 Jan 2014 14:06:58 +0000 (09:06 -0500)]
Issue #20411: Use readline.get_current_history_length to check for the presence of a history, rather than get_history_item, which assumes a history is present.
Stefan Krah [Tue, 28 Jan 2014 14:04:40 +0000 (15:04 +0100)]
Issue #9709: Revert
97fb852c5c26 . Many extensions are not using PyMODINIT_FUNC.
Larry Hastings [Tue, 28 Jan 2014 13:00:08 +0000 (05:00 -0800)]
Issue #20326: Argument Clinic now uses a simple, unique signature to
annotate text signatures in docstrings, resulting in fewer false
positives. "self" parameters are also explicitly marked, allowing
inspect.Signature() to authoritatively detect (and skip) said parameters.
Issue #20326: Argument Clinic now generates separate checksums for the
input and output sections of the block, allowing external tools to verify
that the input has not changed (and thus the output is not out-of-date).
Ned Deily [Tue, 28 Jan 2014 02:03:07 +0000 (19:03 -0700)]
Fix doc reference to OS X 10.9 Mavericks.
Victor Stinner [Tue, 28 Jan 2014 01:24:22 +0000 (02:24 +0100)]
asyncio doc: list Windows and Mac OS X limitations and explain how to work
around them
Yury Selivanov [Tue, 28 Jan 2014 00:40:07 +0000 (19:40 -0500)]
NEWS: Add few missing news items
Yury Selivanov [Tue, 28 Jan 2014 00:29:45 +0000 (19:29 -0500)]
inspect.signature: Support classes without user-defined __init__/__new__ #20308
Victor Stinner [Mon, 27 Jan 2014 23:09:24 +0000 (00:09 +0100)]
asyncio: remove temporary aliases
Yury Selivanov [Mon, 27 Jan 2014 22:28:37 +0000 (17:28 -0500)]
inspect.signature: Add support for 'functools.partialmethod' #20223
Victor Stinner [Mon, 27 Jan 2014 22:01:41 +0000 (23:01 +0100)]
asyncio doc: subprocess_exec/subprocess_shell are not available on Windows
Serhiy Storchaka [Mon, 27 Jan 2014 21:16:28 +0000 (23:16 +0200)]
Issue #19456: ntpath.join() now joins relative paths correctly when a drive
is present.
Serhiy Storchaka [Mon, 27 Jan 2014 21:15:14 +0000 (23:15 +0200)]
Issue #19456: ntpath.join() now joins relative paths correctly when a drive
is present.
Yury Selivanov [Mon, 27 Jan 2014 20:07:58 +0000 (15:07 -0500)]
inspect.signature: Use '/' to separate positional-only parameters from
the rest in Signature.__str__. #20356
Yury Selivanov [Mon, 27 Jan 2014 19:26:28 +0000 (14:26 -0500)]
doc/inspect: Clarify docs for __defaults__, add docs for __kwdefaults__ #20380
Yury Selivanov [Mon, 27 Jan 2014 18:24:56 +0000 (13:24 -0500)]
inspect.getfile: Don't crash on classes without '__module__' attribute #20372
Some classes defined in C may not have the '__module__' attribute, so
we now handle this case to avoid having unexepected AttributeError.
Victor Stinner [Mon, 27 Jan 2014 11:18:49 +0000 (12:18 +0100)]
asyncio: IncompleteReadError is a subclass of EOFError
Victor Stinner [Mon, 27 Jan 2014 10:58:49 +0000 (11:58 +0100)]
asyncio: document the IncompleteReadError exception
Serhiy Storchaka [Mon, 27 Jan 2014 09:27:51 +0000 (11:27 +0200)]
Remove redundant emty line at the end of file.
Serhiy Storchaka [Mon, 27 Jan 2014 09:21:54 +0000 (11:21 +0200)]
Issue #19077: tempfile.TemporaryDirectory cleanup no longer fails when
called during shutdown. Emitting resource warning in __del__ no longer fails.
Original patch by Antoine Pitrou.
Serhiy Storchaka [Mon, 27 Jan 2014 09:18:27 +0000 (11:18 +0200)]
Issue #19077: tempfile.TemporaryDirectory cleanup is now most likely
successful when called during nulling out of modules during shutdown.
Misleading exception no longer raised when resource warning is emitted
during shutdown.