Victor Stinner
e492ae50e2
tracemalloc now supports domains
...
Issue #26588 :
* The _tracemalloc now supports tracing memory allocations of multiple address
spaces (domains).
* Add domain parameter to tracemalloc_add_trace() and
tracemalloc_remove_trace().
* tracemalloc_add_trace() now starts by removing the previous trace, if any.
* _tracemalloc._get_traces() now returns a list of (domain, size,
traceback_frames): the domain is new.
* Add tracemalloc.DomainFilter
* tracemalloc.Filter: add an optional domain parameter to the constructor and a
domain attribute
* Sublte change: use Py_uintptr_t rather than void* in the traces key.
* Add tracemalloc_config.use_domain, currently hardcoded to 1
2016-03-22 12:58:23 +01:00
Martin Panter
0b2d71bc70
Issue #24266 : Merge readline Ctrl+C handling from 3.5
2016-03-22 09:28:58 +00:00
Martin Panter
d6990d221b
Issue #24266 : Cancel history search mode with Ctrl+C in Readline 7
2016-03-22 07:24:05 +00:00
Serhiy Storchaka
e431d3c9aa
Issue #26581 : Use the first coding cookie on a line, not the last one.
2016-03-20 23:36:29 +02:00
Victor Stinner
19a8e844e4
Add socket finalizer
...
Issue #26590 : Implement a safe finalizer for the _socket.socket type. It now
releases the GIL to close the socket. Use PyErr_ResourceWarning() to raise the
ResourceWarning to pass the socket object to the warning logger, to get the
traceback where the socket was created (allocated).
2016-03-21 16:36:48 +01:00
Victor Stinner
fac395681f
Optimize bytes.replace(b'', b'.')
...
Issue #26574 : Optimize bytes.replace(b'', b'.') and
bytearray.replace(b'', b'.'): up to 80% faster. Patch written by Josh Snider.
2016-03-21 10:38:58 +01:00
Berker Peksag
1cd4ff6284
Issue #26560 : Avoid potential ValueError in BaseHandler.start_response
...
Initial patch by Peter Inglesby.
2016-03-19 09:04:59 +02:00
Serhiy Storchaka
a051bf3afb
Issue #26581 : Use the first coding cookie on a line, not the last one.
2016-03-20 23:47:48 +02:00
Berker Peksag
3c3d7f4b99
Issue #18787 : spwd.getspnam() now raises a PermissionError if the user
...
doesn't have privileges.
2016-03-19 11:44:17 +02:00
Berker Peksag
cf934a1c9b
Issue #26560 : Avoid potential ValueError in BaseHandler.start_response
...
Initial patch by Peter Inglesby.
2016-03-19 09:05:59 +02:00
Victor Stinner
914cde89d4
On ResourceWarning, log traceback where the object was allocated
...
Issue #26567 :
* Add a new function PyErr_ResourceWarning() function to pass the destroyed
object
* Add a source attribute to warnings.WarningMessage
* Add warnings._showwarnmsg() which uses tracemalloc to get the traceback where
source object was allocated.
2016-03-19 01:03:51 +01:00
Brett Cannon
32cba67b9f
Merge for issue #26271
2016-03-18 10:30:21 -07:00
Brett Cannon
e4044bfe63
Issue #26271 : Fix the Freeze tool to use variables passed in from the
...
configure script related to compiler flags.
Thanks to Daniel Shaulov for the bug report and patch.
2016-03-18 10:29:43 -07:00
Steve Dower
3ca3342307
Issue #26313 : ssl.py _load_windows_store_certs fails if windows cert store is empty. Patch by Baji.
2016-03-17 15:02:53 -07:00
Steve Dower
8dd7aebc23
Issue #26313 : ssl.py _load_windows_store_certs fails if windows cert store is empty. Patch by Baji.
2016-03-17 15:02:39 -07:00
Ned Deily
c9188000d7
Issue #26583 : merge from 3.5
2016-03-17 17:56:42 -04:00
Ned Deily
1c80b152bd
Issue #26583 : Skip test_timestamp_overflow in test_import if bytecode
...
files cannot be written.
2016-03-17 17:53:52 -04:00
Victor Stinner
ec748c47ac
Merge 3.5
2016-03-17 09:11:54 +01:00
Martin Panter
499d3654a8
Issue #17603 : Merge configure.ac fix from 3.5
2016-03-18 03:03:10 +00:00
Martin Panter
d887d1f365
Issue #17603 : Check for st_blocks field without requiring fileblocks.o
2016-03-18 02:36:41 +00:00
Victor Stinner
5c13aa1562
Fix pyclbr to support importing packages
...
Issue #26569 : Fix pyclbr.readmodule() and pyclbr.readmodule_ex() to support
importing packages.
2016-03-17 09:06:41 +01:00
Martin Panter
ce911c3fed
Issue #26499 : Fixes to HTTPResponse.readline() and read1(), by Silent Ghost
2016-03-17 06:42:48 +00:00
Victor Stinner
ad524375af
Fail if PyMem_Malloc() is called without holding the GIL
...
Issue #26563 : Debug hooks on Python memory allocators now raise a fatal error
if functions of the PyMem_Malloc() family are called without holding the GIL.
2016-03-16 12:12:53 +01:00
Martin Panter
32f2eb4941
Issue #21042 : Revert Linux find_library() to return just filename
...
This reverts most of revision 3092cf163eb4. The change worked on x86
architectures, but did not work on ARM, probably due to extra ABI flags in
the ldconfig output.
2016-03-17 07:50:22 +00:00
Martin Panter
ec195fba5b
Issue #26499 : Merge HTTPResponse fix from 3.5
2016-03-17 07:05:34 +00:00
Victor Stinner
0611c26a58
On memory error, dump the memory block traceback
...
Issue #26564 : _PyObject_DebugDumpAddress() now dumps the traceback where a
memory block was allocated on memory block. Use the tracemalloc module to get
the traceback.
2016-03-15 22:22:13 +01:00
Antoine Pitrou
58f2bd86fb
Issue #26523 : The multiprocessing thread pool (multiprocessing.dummy.Pool) was untested.
2016-03-15 10:52:51 +01:00
Antoine Pitrou
62b6a0d70c
Issue #26523 : The multiprocessing thread pool (multiprocessing.dummy.Pool) was untested.
2016-03-15 10:48:28 +01:00
Robert Collins
bfef0be420
#25320 : Handle sockets in directories unittest discovery is scanning.
...
Patch from Victor van den Elzen.
2016-03-15 13:33:28 +13:00
Robert Collins
ecd5383891
#25320 : Handle sockets in directories unittest discovery is scanning.
...
Patch from Victor van den Elzen.
2016-03-15 13:29:17 +13:00
Victor Stinner
c4aec3628b
Check the GIL in PyObject_Malloc()
...
Issue #26558 : The debug hook of PyObject_Malloc() now checks that the GIL is
held when the function is called.
2016-03-14 22:26:53 +01:00
Victor Stinner
34be807ca4
Add PYTHONMALLOC env var
...
Issue #26516 :
* Add PYTHONMALLOC environment variable to set the Python memory
allocators and/or install debug hooks.
* PyMem_SetupDebugHooks() can now also be used on Python compiled in release
mode.
* The PYTHONMALLOCSTATS environment variable can now also be used on Python
compiled in release mode. It now has no effect if set to an empty string.
* In debug mode, debug hooks are now also installed on Python memory allocators
when Python is configured without pymalloc.
2016-03-14 12:04:26 +01:00
Berker Peksag
0647ef05eb
Issue #16181 : cookiejar.http2time() now returns None if year is higher than datetime.MAXYEAR
2016-03-14 05:48:28 +02:00
Berker Peksag
20be53e5b5
Issue #16181 : cookiejar.http2time() now returns None if year is higher than datetime.MAXYEAR
2016-03-14 05:48:02 +02:00
Steve Dower
8d9bcb5d62
Issue #26079 : Fixing the build output folder for tix-8.4.3.6. Patch by Bjoern Thiel.
2016-03-12 08:39:07 -08:00
Steve Dower
d3722e7b6f
Issue #26079 : Fixing the build output folder for tix-8.4.3.6. Patch by Bjoern Thiel.
2016-03-12 08:38:55 -08:00
Steve Dower
6d6b986d90
Issue #23606 : Adds note to ctypes documentation regarding cdll.msvcrt.
2016-03-12 08:26:29 -08:00
Steve Dower
d669b6bd0a
Issue #23606 : Adds note to ctypes documentation regarding cdll.msvcrt.
2016-03-12 08:25:22 -08:00
Steve Dower
11b3918164
Issue #26513 : Fixes platform module detection of Windows Server
2016-03-12 08:07:34 -08:00
Steve Dower
126c9c17ef
Issue #26513 : Fixes platform module detection of Windows Server
2016-03-12 08:06:23 -08:00
Serhiy Storchaka
6e4150f36b
Issue #23718 : Fixed parsing time in week 0 before Jan 1. Original patch by
...
Tamás Bence Gedai.
2016-03-12 10:53:09 +02:00
Serhiy Storchaka
8a7240eeed
Issue #23718 : Fixed parsing time in week 0 before Jan 1. Original patch by
...
Tamás Bence Gedai.
2016-03-12 10:51:16 +02:00
Victor Stinner
2c2a4e63d7
Add Mock.assert_called()
...
Issue #26323 : Add assert_called() and assert_called_once() methods to
unittest.mock.Mock.
2016-03-11 22:17:48 +01:00
Berker Peksag
d0e9b6919f
Issue #20589 : Invoking Path.owner() and Path.group() on Windows now raise
...
NotImplementedError instead of ImportError.
2016-03-11 23:08:11 +02:00
Berker Peksag
04d4229719
Issue #20589 : Invoking Path.owner() and Path.group() on Windows now raise
...
NotImplementedError instead of ImportError.
2016-03-11 23:07:27 +02:00
Serhiy Storchaka
2d68f18656
Issue #26177 : Fixed the keys() method for Canvas and Scrollbar widgets.
2016-03-09 10:52:08 +02:00
Martin Panter
b9f3114d42
Issue #21042 : Return full path in ctypes.util.find_library() on Linux
...
Patch by Tamás Bence Gedai.
2016-03-10 01:06:23 +00:00
Serhiy Storchaka
42a4366ad5
Issue #26177 : Fixed the keys() method for Canvas and Scrollbar widgets.
...
Added few missed tests for configure options.
2016-03-09 10:33:51 +02:00
Steve Dower
43cbd05b6c
Issue #26465 : Update Windows builds to use OpenSSL 1.0.2g.
2016-03-08 10:29:24 -08:00
Steve Dower
947f411b0d
Issue #26465 : Update Windows builds to use OpenSSL 1.0.2g.
2016-03-08 10:26:52 -08:00