]>
granicus.if.org Git - python/log
Serhiy Storchaka [Mon, 3 Feb 2014 18:46:14 +0000 (20:46 +0200)]
Issue #20368: Add tests for Tkinter methods exprstring(), exprdouble(),
exprlong() and exprboolean().
Serhiy Storchaka [Mon, 3 Feb 2014 18:41:34 +0000 (20:41 +0200)]
Issue #20368: Add tests for Tkinter methods exprstring(), exprdouble(),
exprlong() and exprboolean().
Benjamin Peterson [Mon, 3 Feb 2014 14:35:08 +0000 (09:35 -0500)]
remove code which does nothing but cause refleaks
Andrew Kuchling [Mon, 3 Feb 2014 14:20:22 +0000 (09:20 -0500)]
Merge from 3.3
Andrew Kuchling [Mon, 3 Feb 2014 14:04:02 +0000 (09:04 -0500)]
Use different word
Vinay Sajip [Mon, 3 Feb 2014 11:52:24 +0000 (11:52 +0000)]
Merged documentation update from 3.3.
Vinay Sajip [Mon, 3 Feb 2014 11:51:45 +0000 (11:51 +0000)]
Added cookbook entry on logging filter configuration using dictConfig().
Yury Selivanov [Mon, 3 Feb 2014 07:46:07 +0000 (02:46 -0500)]
inspect.signature: Add (restore) support for builtin classes #20473
R David Murray [Mon, 3 Feb 2014 06:33:39 +0000 (01:33 -0500)]
whatsnew: read/write on closed SSL socket exception has changed.
R David Murray [Mon, 3 Feb 2014 06:14:03 +0000 (01:14 -0500)]
whatsnew: html.escape 10x faster, _gestalt module gone.
Victor Stinner [Sun, 2 Feb 2014 23:35:46 +0000 (00:35 +0100)]
Issue #20472: asyncio: Adjust the note about Mac OS X on PTY, specify that it
requires at least Mac OS X 10.6.
Victor Stinner [Sun, 2 Feb 2014 23:32:13 +0000 (00:32 +0100)]
Issue #20472: test_asyncio: skip PTY tests on Mac OS X older than 10.6
Antoine Pitrou [Sun, 2 Feb 2014 22:38:48 +0000 (23:38 +0100)]
Issue #20435: Fix _pyio.StringIO.getvalue() to take into account newline translation settings.
Antoine Pitrou [Sun, 2 Feb 2014 22:37:29 +0000 (23:37 +0100)]
Issue #20435: Fix _pyio.StringIO.getvalue() to take into account newline translation settings.
Ned Deily [Sun, 2 Feb 2014 22:00:39 +0000 (14:00 -0800)]
Issue #19990: Install test/imghdrdata.
Ned Deily [Sun, 2 Feb 2014 21:59:49 +0000 (13:59 -0800)]
Issue #19990: Install test/imghdrdata.
Antoine Pitrou [Sun, 2 Feb 2014 21:49:03 +0000 (22:49 +0100)]
Issue #20423: fix documentation of io.StringIO's newline parameter
Antoine Pitrou [Sun, 2 Feb 2014 21:48:25 +0000 (22:48 +0100)]
Issue #20423: fix documentation of io.StringIO's newline parameter
Victor Stinner [Sun, 2 Feb 2014 21:43:39 +0000 (22:43 +0100)]
asyncio: document the new asyncio.subprocess module
Serhiy Storchaka [Sun, 2 Feb 2014 21:05:10 +0000 (23:05 +0200)]
Issue #19320: Fixed split/splitlist tests in test_tcl for Tcl 8.5.0-8.5.5.
Serhiy Storchaka [Sun, 2 Feb 2014 21:04:24 +0000 (23:04 +0200)]
Issue #19320: Fixed split/splitlist tests in test_tcl for Tcl 8.5.0-8.5.5.
Benjamin Peterson [Sun, 2 Feb 2014 20:31:07 +0000 (15:31 -0500)]
merge 3.3 (#20102)
Benjamin Peterson [Sun, 2 Feb 2014 20:30:22 +0000 (15:30 -0500)]
use with statement to ensure zipfile is always closed (closes #20102)
R David Murray [Sun, 2 Feb 2014 17:50:48 +0000 (12:50 -0500)]
whatsnew: hmac accepts more bytes types, importlib decode_source, stat in C.
R David Murray [Sun, 2 Feb 2014 17:19:57 +0000 (12:19 -0500)]
whatsnew: -m <namespace package>, plus 'using' doc updates.
Yury Selivanov [Sun, 2 Feb 2014 17:51:20 +0000 (12:51 -0500)]
inspect.signature: Use 'inspect.isbuiltin' in 'Signature.from_builtin'
R David Murray [Sun, 2 Feb 2014 16:32:31 +0000 (11:32 -0500)]
whatsnew: some more importlib replacements for imp functions.
get_magic->util.MAGIC_NUMBER, source_from_cache, and cache_from_source.
R David Murray [Sun, 2 Feb 2014 16:11:01 +0000 (11:11 -0500)]
whatsnew: filecmp.clear_cache, and reword description of cache in docs.
R David Murray [Sun, 2 Feb 2014 15:50:17 +0000 (10:50 -0500)]
whatsnew: fix importlib.reload entry.
Turns out I committed a work-in-progress entry because of a time
gap between when I wrote it and when I committed.
Victor Stinner [Sun, 2 Feb 2014 14:03:02 +0000 (15:03 +0100)]
asyncio doc: add "asyncio-" prefix to references
Terry Jan Reedy [Sun, 2 Feb 2014 04:14:59 +0000 (23:14 -0500)]
Update the python.gif icon for the Idle classbrowser and pathbowser
from the old green snake to the new new blue and yellow snakes.
Terry Jan Reedy [Sun, 2 Feb 2014 04:08:33 +0000 (23:08 -0500)]
Update the python.gif icon for the Idle classbrowser and pathbowser
from the old green snake to the new new blue and yellow snakes.
Victor Stinner [Sat, 1 Feb 2014 21:49:59 +0000 (22:49 +0100)]
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)
Ezio Melotti [Sat, 1 Feb 2014 19:22:26 +0000 (21:22 +0200)]
#20288: merge with 3.3.
Ezio Melotti [Sat, 1 Feb 2014 19:21:01 +0000 (21:21 +0200)]
#20288: fix handling of invalid numeric charrefs in HTMLParser.
Yury Selivanov [Sat, 1 Feb 2014 18:49:29 +0000 (13:49 -0500)]
inspect.tests: Fix tests to work on python built with '--without-doc-strings' #20471
R David Murray [Sat, 1 Feb 2014 17:27:07 +0000 (12:27 -0500)]
whatsnew: move of reload, update new windows-only ssl functions entry.
Larry Hastings [Sat, 1 Feb 2014 06:03:12 +0000 (22:03 -0800)]
#Issue 20456: Several improvements and bugfixes for Argument Clinic,
including correctly generating code for Clinic blocks inside C
preprocessor conditional blocks.
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'.