]>
granicus.if.org Git - python/log
Victor Stinner [Mon, 25 Aug 2014 21:22:54 +0000 (23:22 +0200)]
(Merge 3.4) asyncio: sync with Tulip
* PipeServer.close() now cancels the "accept pipe" future which cancels the
overlapped operation.
* Fix _SelectorTransport.__repr__() if the transport was closed
* Fix debug log in BaseEventLoop.create_connection(): get the socket object
from the transport because SSL transport closes the old socket and creates a
new SSL socket object. Remove also the _SelectorSslTransport._rawsock
attribute: it contained the closed socket (not very useful) and it was not
used.
* Issue #22063: socket operations (sock_recv, sock_sendall, sock_connect,
sock_accept) of the proactor event loop don't raise an exception in debug
mode if the socket are in blocking mode. Overlapped operations also work on
blocking sockets.
* Fix unit tests in debug mode: mock a non-blocking socket for socket
operations which now raise an exception if the socket is blocking.
* _fatal_error() method of _UnixReadPipeTransport and _UnixWritePipeTransport
now log all exceptions in debug mode
* Don't log expected errors in unit tests
* Tulip issue 200: _WaitHandleFuture._unregister_wait() now catchs and logs
exceptions.
* Tulip issue 200: Log errors in debug mode instead of simply ignoring them.
Victor Stinner [Mon, 25 Aug 2014 21:20:52 +0000 (23:20 +0200)]
asyncio: sync with Tulip
* PipeServer.close() now cancels the "accept pipe" future which cancels the
overlapped operation.
* Fix _SelectorTransport.__repr__() if the transport was closed
* Fix debug log in BaseEventLoop.create_connection(): get the socket object
from the transport because SSL transport closes the old socket and creates a
new SSL socket object. Remove also the _SelectorSslTransport._rawsock
attribute: it contained the closed socket (not very useful) and it was not
used.
* Issue #22063: socket operations (sock_recv, sock_sendall, sock_connect,
sock_accept) of the proactor event loop don't raise an exception in debug
mode if the socket are in blocking mode. Overlapped operations also work on
blocking sockets.
* Fix unit tests in debug mode: mock a non-blocking socket for socket
operations which now raise an exception if the socket is blocking.
* _fatal_error() method of _UnixReadPipeTransport and _UnixWritePipeTransport
now log all exceptions in debug mode
* Don't log expected errors in unit tests
* Tulip issue 200: _WaitHandleFuture._unregister_wait() now catchs and logs
exceptions.
* Tulip issue 200: Log errors in debug mode instead of simply ignoring them.
Victor Stinner [Mon, 25 Aug 2014 15:04:37 +0000 (17:04 +0200)]
(Merge 3.4) asyncio: update the doc
* dev: mention that the logging must be configured at DEBUG level
* streams: drain() has no more a strange return value, it's just
a standard coroutine
Victor Stinner [Mon, 25 Aug 2014 15:04:12 +0000 (17:04 +0200)]
asyncio: update the doc
* dev: mention that the logging must be configured at DEBUG level
* streams: drain() has no more a strange return value, it's just
a standard coroutine
Benjamin Peterson [Sun, 24 Aug 2014 23:08:22 +0000 (18:08 -0500)]
merge 3.4 (#22265)
Benjamin Peterson [Sun, 24 Aug 2014 23:07:28 +0000 (18:07 -0500)]
allow test to work on implementations not using ref-counting (closes #22265)
Benjamin Peterson [Sun, 24 Aug 2014 23:04:25 +0000 (18:04 -0500)]
merge 3.4 (#22267)
Benjamin Peterson [Sun, 24 Aug 2014 23:02:15 +0000 (18:02 -0500)]
fix some test_weakref tests to not rely on ref-counting (closes #22267)
Antoine Pitrou [Sun, 24 Aug 2014 14:50:28 +0000 (10:50 -0400)]
Issue #16808: inspect.stack() now returns a named tuple instead of a tuple.
Patch by Daniel Shahaf.
Serhiy Storchaka [Sun, 24 Aug 2014 09:23:36 +0000 (12:23 +0300)]
Issue #22034: Improve handling of wrong argument types in posixpath.join().
Serhiy Storchaka [Sun, 24 Aug 2014 09:18:09 +0000 (12:18 +0300)]
Issue #22034: Got rid of misleading error message for bytearray arguments in
posixpath.join().
Serhiy Storchaka [Sun, 24 Aug 2014 06:10:58 +0000 (09:10 +0300)]
Issue #22236: Tkinter tests now don't reuse default root window. New root
window is created for every test class.
Fixed Tkinter images copying operations in NoDefaultRoot mode.
Tcl command names generated for "after" callbacks now contains a name of
original function.
Serhiy Storchaka [Sun, 24 Aug 2014 06:07:47 +0000 (09:07 +0300)]
Issue #22236: Tkinter tests now don't reuse default root window. New root
window is created for every test class.
Fixed Tkinter images copying operations in NoDefaultRoot mode.
Tcl command names generated for "after" callbacks now contains a name of
original function.
Terry Jan Reedy [Sun, 24 Aug 2014 02:22:07 +0000 (22:22 -0400)]
Merge with 3.4
Terry Jan Reedy [Sun, 24 Aug 2014 02:21:47 +0000 (22:21 -0400)]
Issue #13540: add missing markup.
Ned Deily [Sun, 24 Aug 2014 01:10:49 +0000 (18:10 -0700)]
Issue #21166: fix typo in comment
Ned Deily [Sun, 24 Aug 2014 01:10:16 +0000 (18:10 -0700)]
Issue #21166: fix typo in comment
Terry Jan Reedy [Sat, 23 Aug 2014 23:29:58 +0000 (19:29 -0400)]
Merge with 3.4
Terry Jan Reedy [Sat, 23 Aug 2014 23:29:47 +0000 (19:29 -0400)]
Issue #22243: fix except grammar in reference.
Terry Jan Reedy [Sat, 23 Aug 2014 22:29:02 +0000 (18:29 -0400)]
Merge with 3.4
Terry Jan Reedy [Sat, 23 Aug 2014 22:28:44 +0000 (18:28 -0400)]
Issue #22232 (partial fix): update Universal newlines Glossary entry.
Terry Jan Reedy [Sat, 23 Aug 2014 22:24:09 +0000 (18:24 -0400)]
Merge with 3.4
Terry Jan Reedy [Sat, 23 Aug 2014 22:23:50 +0000 (18:23 -0400)]
Merge heads.
Terry Jan Reedy [Sat, 23 Aug 2014 22:22:43 +0000 (18:22 -0400)]
Merge heads.
Nick Coghlan [Sat, 23 Aug 2014 04:48:22 +0000 (14:48 +1000)]
Merge PEP 466 What's New in 2.7 changes from 3.4
Nick Coghlan [Sat, 23 Aug 2014 04:47:47 +0000 (14:47 +1000)]
Forward port PEP 466 What's New in 2.7 updates
Antoine Pitrou [Sat, 23 Aug 2014 03:13:50 +0000 (23:13 -0400)]
Issue #2527: Add a *globals* argument to timeit functions, in order to override the globals namespace in which the timed code is executed.
Patch by Ben Roberts.
Ned Deily [Fri, 22 Aug 2014 20:36:30 +0000 (13:36 -0700)]
Issue #21166: merge from 3.4
Ned Deily [Fri, 22 Aug 2014 20:32:49 +0000 (13:32 -0700)]
Issue #21166: Prevent possible segfaults and other random failures of
python --generate-posix-vars in pybuilddir.txt build target by ensuring
that pybuilddir.txt is always regenerated when configure is run and
that the newly built skeleton python does not inadvertently import
modules from previously installed instances.
Brett Cannon [Fri, 22 Aug 2014 18:23:20 +0000 (14:23 -0400)]
Issue #20152: Port pyexpat to Argument Clinic.
Could not emit an external file as pyexpat has a conditionally built
method which Clinic won't hide otherwise.
Brett Cannon [Fri, 22 Aug 2014 18:08:46 +0000 (14:08 -0400)]
Add a missing Argument Clinic file
Brett Cannon [Fri, 22 Aug 2014 18:03:51 +0000 (14:03 -0400)]
Issue #20152: Port the pwd module to Argument Clinic.
Brett Cannon [Fri, 22 Aug 2014 18:01:56 +0000 (14:01 -0400)]
Fix a missing #include.
Brett Cannon [Fri, 22 Aug 2014 17:59:24 +0000 (13:59 -0400)]
Issue #20152: Port the spwd module to Argument Clinic.
Berker Peksag [Fri, 22 Aug 2014 17:52:37 +0000 (20:52 +0300)]
Issue #19447: Use importlib.util.cache_from_source() instead of ``bad_coding + 'c'``.
Thanks to Arfrever Frehtes Taifersar Arahesis.
Berker Peksag [Fri, 22 Aug 2014 17:52:15 +0000 (20:52 +0300)]
Issue #19447: Use importlib.util.cache_from_source() instead of ``bad_coding + 'c'``.
Thanks to Arfrever Frehtes Taifersar Arahesis.
Berker Peksag [Fri, 22 Aug 2014 17:18:12 +0000 (20:18 +0300)]
Issue #19447: Add a test case to py_compile.compile() to make sure
it don't raise an exception if doraise is False.
Patch by Bohuslav "Slavek" Kabrda.
Berker Peksag [Fri, 22 Aug 2014 17:17:32 +0000 (20:17 +0300)]
Issue #19447: Add a test case to py_compile.compile() to make sure
it don't raise an exception if doraise is False.
Patch by Bohuslav "Slavek" Kabrda.
Brett Cannon [Fri, 22 Aug 2014 15:52:46 +0000 (11:52 -0400)]
Issue #20152: Convert the grp module to Argument Clinic.
Brett Cannon [Fri, 22 Aug 2014 15:45:03 +0000 (11:45 -0400)]
Issue #20152: Convert _multibytecodecs to Argument Clinic.
Berker Peksag [Fri, 22 Aug 2014 15:25:16 +0000 (18:25 +0300)]
Issue #22150: Fix deprecated-removed directive in Sphinx 1.2.
Berker Peksag [Fri, 22 Aug 2014 15:24:29 +0000 (18:24 +0300)]
Issue #22150: Fix deprecated-removed directive in Sphinx 1.2.
Brett Cannon [Fri, 22 Aug 2014 14:46:07 +0000 (10:46 -0400)]
Merge for issue #22191 fix
Brett Cannon [Fri, 22 Aug 2014 14:44:47 +0000 (10:44 -0400)]
Issue #22191: Fix warnings.__all__.
Thanks to Jon Poler for the patch.
Brett Cannon [Fri, 22 Aug 2014 14:28:42 +0000 (10:28 -0400)]
Issue #19714: Tests for importlib.machinery.WindowsRegistryFinder.
Patch by Claudiu Popa, review by Martin v. Löwis.
Senthil Kumaran [Fri, 22 Aug 2014 10:57:06 +0000 (16:27 +0530)]
merge from 3.4
Fix issue22245 - Fix urllib2_localnet test.
Do not aggresively close wfile in the do_GET method in the BasicAuthHandler.
Senthil Kumaran [Fri, 22 Aug 2014 10:56:21 +0000 (16:26 +0530)]
Fix issue22245 - Fix urllib2_localnet test.
Do not aggresively close wfile in the do_GET method in the BasicAuthHandler.
Antoine Pitrou [Thu, 21 Aug 2014 23:16:17 +0000 (19:16 -0400)]
Issue #22118: Switch urllib.parse to use RFC 3986 semantics for the resolution of relative URLs, rather than RFCs 1808 and 2396.
Patch by Demian Brecht.
Serhiy Storchaka [Thu, 21 Aug 2014 07:01:16 +0000 (10:01 +0300)]
Issue #21549: Added the "members" parameter to TarFile.list().
Benjamin Peterson [Wed, 20 Aug 2014 23:41:57 +0000 (18:41 -0500)]
use __qualname__ to compute bound method repr (closes #21389)
Patch from Steven Barker.
Senthil Kumaran [Wed, 20 Aug 2014 02:25:53 +0000 (07:55 +0530)]
merge from 3.4
Fix Issue #8797: Raise HTTPError on failed Basic Authentication immediately. Initial patch by Sam Bull.
Senthil Kumaran [Wed, 20 Aug 2014 02:23:58 +0000 (07:53 +0530)]
Fix Issue #8797: Raise HTTPError on failed Basic Authentication immediately. Initial patch by Sam Bull.
Terry Jan Reedy [Tue, 19 Aug 2014 23:47:51 +0000 (19:47 -0400)]
Merge with 3.4
Terry Jan Reedy [Tue, 19 Aug 2014 23:47:38 +0000 (19:47 -0400)]
Idle ColorDelegator: finish removing code for 'as'.
Terry Jan Reedy [Tue, 19 Aug 2014 21:18:11 +0000 (17:18 -0400)]
Merge with 3.4
Terry Jan Reedy [Tue, 19 Aug 2014 21:17:57 +0000 (17:17 -0400)]
Idle ColorDelegator: remove special case code for 'as' in import statements.
'As' became a full keyword when with statements were added in 2.5/2.6.
Benjamin Peterson [Tue, 19 Aug 2014 21:13:26 +0000 (16:13 -0500)]
allow recursion depth to be specified (closes #19628)
Patch from Claudiu Popa.
Serhiy Storchaka [Tue, 19 Aug 2014 15:20:48 +0000 (18:20 +0300)]
Fixed typo.
Serhiy Storchaka [Tue, 19 Aug 2014 15:20:23 +0000 (18:20 +0300)]
Fixed typo.
Serhiy Storchaka [Tue, 19 Aug 2014 14:12:46 +0000 (17:12 +0300)]
Issue #15696: Add a __sizeof__ implementation for mmap objects on Windows.
Serhiy Storchaka [Tue, 19 Aug 2014 14:11:20 +0000 (17:11 +0300)]
Issue #15696: Add a __sizeof__ implementation for mmap objects on Windows.
Serhiy Storchaka [Mon, 18 Aug 2014 14:48:15 +0000 (17:48 +0300)]
Clean up test_user_command.
Serhiy Storchaka [Mon, 18 Aug 2014 14:47:29 +0000 (17:47 +0300)]
Clean up test_user_command.
Benjamin Peterson [Mon, 18 Aug 2014 04:01:33 +0000 (23:01 -0500)]
merge 3.4 (closes #22200)
Benjamin Peterson [Mon, 18 Aug 2014 04:00:42 +0000 (23:00 -0500)]
remove 2.2 and 2.6 compat code (closes #22200)
Patch from Thomas Kluyver.
Victor Stinner [Sun, 17 Aug 2014 20:20:00 +0000 (22:20 +0200)]
Issue #22207: Fix "comparison between signed and unsigned integers" warning in
test checking for integer overflow on Py_ssize_t type: cast explicitly to
size_t.
Victor Stinner [Sun, 17 Aug 2014 20:11:06 +0000 (22:11 +0200)]
Issue #22206: Using pthread, PyThread_create_key() now sets errno to ENOMEM and
returns -1 (error) on integer overflow.
Victor Stinner [Sun, 17 Aug 2014 19:14:46 +0000 (21:14 +0200)]
_pickle: Optimize raw_unicode_escape(), use directly a bytes object, don't use
a temporary bytearray object.
Victor Stinner [Sun, 17 Aug 2014 19:12:18 +0000 (21:12 +0200)]
Optimize PyBytes_FromObject(): only overallocate when size=0 to not get the
empty string singleton
Victor Stinner [Sun, 17 Aug 2014 19:09:30 +0000 (21:09 +0200)]
Issue #22218: Fix "comparison between signed and unsigned integers" warning in
Modules/_sqlite/cursor.c.
Victor Stinner [Sun, 17 Aug 2014 19:05:55 +0000 (21:05 +0200)]
Issue #22218: Fix "comparison between signed and unsigned integers" warnings in
Modules/_pickle.c.
Victor Stinner [Sun, 17 Aug 2014 17:33:28 +0000 (19:33 +0200)]
Issue #22218: Fix "comparison between signed and unsigned integers" warnings in
socketmodule.c.
Serhiy Storchaka [Sun, 17 Aug 2014 13:58:11 +0000 (16:58 +0300)]
Issue #22165: Fixed test_undecodable_filename on Mac OS.
Serhiy Storchaka [Sun, 17 Aug 2014 13:57:39 +0000 (16:57 +0300)]
Issue #22165: Fixed test_undecodable_filename on Mac OS.
Serhiy Storchaka [Sun, 17 Aug 2014 12:32:42 +0000 (15:32 +0300)]
Issue #22068: Avoided reference loops with Variables and Fonts in Tkinter.
Serhiy Storchaka [Sun, 17 Aug 2014 12:31:59 +0000 (15:31 +0300)]
Issue #22068: Avoided reference loops with Variables and Fonts in Tkinter.
Serhiy Storchaka [Sun, 17 Aug 2014 12:17:56 +0000 (15:17 +0300)]
Issue #22201: Command-line interface of the zipfile module now correctly
extracts ZIP files with directory entries. Patch by Ryan Wilson.
Serhiy Storchaka [Sun, 17 Aug 2014 12:14:48 +0000 (15:14 +0300)]
Issue #22201: Command-line interface of the zipfile module now correctly
extracts ZIP files with directory entries. Patch by Ryan Wilson.
Serhiy Storchaka [Sun, 17 Aug 2014 09:21:06 +0000 (12:21 +0300)]
Issue #22165: Fixed test_undecodable_filename on non-UTF-8 locales.
Serhiy Storchaka [Sun, 17 Aug 2014 09:20:02 +0000 (12:20 +0300)]
Issue #22165: Fixed test_undecodable_filename on non-UTF-8 locales.
Serhiy Storchaka [Sun, 17 Aug 2014 05:24:49 +0000 (08:24 +0300)]
Issue #22165: SimpleHTTPRequestHandler now supports undecodable file names.
Serhiy Storchaka [Sun, 17 Aug 2014 05:22:11 +0000 (08:22 +0300)]
Issue #22165: SimpleHTTPRequestHandler now supports undecodable file names.
Nick Coghlan [Sun, 17 Aug 2014 04:01:19 +0000 (14:01 +1000)]
Issue #20184: Add signature introspection for 30 of the builtins
Also adds a test to test_inspect to track progress on builtin
introspection support, to ensure it doesn't regress in the future.
Nick Coghlan [Sun, 17 Aug 2014 04:07:53 +0000 (14:07 +1000)]
Clarify ord() and chr() documentation
Senthil Kumaran [Sat, 16 Aug 2014 17:24:24 +0000 (22:54 +0530)]
merge 3.4; backout changeset
3435c5865cfc due to buildbot failures. Ref #8797
Senthil Kumaran [Sat, 16 Aug 2014 17:22:37 +0000 (22:52 +0530)]
backout changeset
3435c5865cfc due to buildbot failures. Ref #8797
Victor Stinner [Sat, 16 Aug 2014 13:44:02 +0000 (15:44 +0200)]
Issue #22156: simplify _tracemalloc.c, use an int for the MAX_NFRAME constant
Victor Stinner [Sat, 16 Aug 2014 12:38:17 +0000 (14:38 +0200)]
(Merge 3.4) Closes #22188: test_gdb now runs gdb with -nx: "Do not execute
commands from any .gdbinit initialization files".
Victor Stinner [Sat, 16 Aug 2014 12:38:02 +0000 (14:38 +0200)]
Closes #22188: test_gdb now runs gdb with -nx: "Do not execute commands from
any .gdbinit initialization files".
Victor Stinner [Sat, 16 Aug 2014 12:11:14 +0000 (14:11 +0200)]
(Merge 3.4) Closes #22205: sys._debugmallocstats is a cpython specific feature,
so test_debugmallocstats should be marked as such. Patch written by Martin
Matusiak.
Victor Stinner [Sat, 16 Aug 2014 12:11:01 +0000 (14:11 +0200)]
Closes #22205: sys._debugmallocstats is a cpython specific feature, so
test_debugmallocstats should be marked as such. Patch written by Martin
Matusiak.
Senthil Kumaran [Sat, 16 Aug 2014 08:49:09 +0000 (14:19 +0530)]
merge from 3.4
Fix Issue #8797: Raise HTTPError on failed Basic Authentication immediately. Initial patch by Sam Bull.
Senthil Kumaran [Sat, 16 Aug 2014 08:47:38 +0000 (14:17 +0530)]
Fix Issue #8797: Raise HTTPError on failed Basic Authentication immediately. Initial patch by Sam Bull.
Victor Stinner [Fri, 15 Aug 2014 23:03:39 +0000 (01:03 +0200)]
Issue #22156: Fix some "comparison between signed and unsigned integers"
compiler warnings in the Modules/ subdirectory.
Victor Stinner [Fri, 15 Aug 2014 21:17:38 +0000 (23:17 +0200)]
Issue #22156: Fix "comparison between signed and unsigned integers" compiler
warnings in the Objects/ subdirectory.
PyType_FromSpecWithBases() and PyType_FromSpec() now reject explicitly negative
slot identifiers.
Victor Stinner [Fri, 15 Aug 2014 21:30:40 +0000 (23:30 +0200)]
Issue #22156: Fix "comparison between signed and unsigned integers" compiler
warnings in the Python/ subdirectory.
Terry Jan Reedy [Fri, 15 Aug 2014 05:23:15 +0000 (01:23 -0400)]
Merge with 3.4
Terry Jan Reedy [Fri, 15 Aug 2014 05:23:02 +0000 (01:23 -0400)]
Issue #22065: Update turtledemo menu creation; don't use obsolete Menubutton.
Terry Jan Reedy [Fri, 15 Aug 2014 04:56:43 +0000 (00:56 -0400)]
Null merge.
Terry Jan Reedy [Fri, 15 Aug 2014 04:55:42 +0000 (00:55 -0400)]
#22053: actually remove .txt files from 3.4.