]>
granicus.if.org Git - python/log
Martin Panter [Thu, 17 Mar 2016 07:05:34 +0000 (07:05 +0000)]
Issue #26499: Merge HTTPResponse fix from 3.5
Martin Panter [Thu, 17 Mar 2016 06:42:48 +0000 (06:42 +0000)]
Issue #26499: Fixes to HTTPResponse.readline() and read1(), by Silent Ghost
Victor Stinner [Tue, 15 Mar 2016 22:08:44 +0000 (23:08 +0100)]
regrtest: Fix module.__path__
Issue #26538: libregrtest: Fix setup_tests() to keep module.__path__ type
(_NamespacePath), don't convert to a list.
Add _NamespacePath.__setitem__() method to importlib._bootstrap_external.
Victor Stinner [Tue, 15 Mar 2016 22:36:28 +0000 (23:36 +0100)]
Issue #26564: Fix test_capi
Victor Stinner [Tue, 15 Mar 2016 21:49:40 +0000 (22:49 +0100)]
Oops, revert unwanted change used to create an example
Issue #26564.
Victor Stinner [Tue, 15 Mar 2016 21:22:13 +0000 (22:22 +0100)]
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.
Victor Stinner [Tue, 15 Mar 2016 20:57:23 +0000 (21:57 +0100)]
Merge 3.5 (_tracemalloc)
Victor Stinner [Tue, 15 Mar 2016 20:57:02 +0000 (21:57 +0100)]
_tracemalloc: store lineno as unsigned int
Issue #26564. Cleanup the code, lineno is never negative.
Victor Stinner [Tue, 15 Mar 2016 20:49:37 +0000 (21:49 +0100)]
Enhance and rewrite traceback dump C functions
Issue #26564:
* Expose _Py_DumpASCII() and _Py_DumpDecimal() in traceback.h
* Change the type of the second _Py_DumpASCII() parameter from int to unsigned
long
* Rewrite _Py_DumpDecimal() and dump_hexadecimal() to write directly characters
in the expected order, avoid the need of reversing the string.
* dump_hexadecimal() limits width to the size of the buffer
* _Py_DumpASCII() does nothing if the object is not a Unicode string
* dump_frame() wrtites "???" as the line number if the line number is negative
Victor Stinner [Tue, 15 Mar 2016 16:24:13 +0000 (17:24 +0100)]
Merge 3.5 (test_faulthandler)
Victor Stinner [Tue, 15 Mar 2016 16:23:35 +0000 (17:23 +0100)]
faulthandler: Test Py_FatalError() with GIL released
Issue #26558.
Victor Stinner [Tue, 15 Mar 2016 13:28:04 +0000 (14:28 +0100)]
_tracemalloc: filename cannot be NULL
Victor Stinner [Tue, 15 Mar 2016 10:12:35 +0000 (11:12 +0100)]
Issue #26566: Rewrite test_signal.InterProcessSignalTests
* Add Lib/test/signalinterproctester.py
* Don't disable the garbage collector anymore
* Don't use os.fork() with a subprocess to not inherit existing signal handlers
or threads: start from a fresh process
* Don't use UNIX kill command to send a signal but Python os.kill()
* Use a timeout of 10 seconds to wait for the signal instead of 1 second
* Always use signal.pause(), instead of time.wait(1), to wait for a signal
* Use context manager on subprocess.Popen
* remove code to retry on EINTR: it's no more needed since the PEP 475
* remove unused function exit_subprocess()
* Cleanup the code
Antoine Pitrou [Tue, 15 Mar 2016 09:52:51 +0000 (10:52 +0100)]
Issue #26523: The multiprocessing thread pool (multiprocessing.dummy.Pool) was untested.
Antoine Pitrou [Tue, 15 Mar 2016 09:48:28 +0000 (10:48 +0100)]
Issue #26523: The multiprocessing thread pool (multiprocessing.dummy.Pool) was untested.
Robert Collins [Tue, 15 Mar 2016 00:33:28 +0000 (13:33 +1300)]
#25320: Handle sockets in directories unittest discovery is scanning.
Patch from Victor van den Elzen.
Robert Collins [Tue, 15 Mar 2016 00:29:17 +0000 (13:29 +1300)]
#25320: Handle sockets in directories unittest discovery is scanning.
Patch from Victor van den Elzen.
Victor Stinner [Mon, 14 Mar 2016 21:26:53 +0000 (22:26 +0100)]
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.
Victor Stinner [Mon, 14 Mar 2016 21:07:55 +0000 (22:07 +0100)]
Add more checks on the GIL
Issue #10915, #15751, #26558:
* PyGILState_Check() now returns 1 (success) before the creation of the GIL and
after the destruction of the GIL. It allows to use the function early in
Python initialization and late in Python finalization.
* Add a flag to disable PyGILState_Check(). Disable PyGILState_Check() when
Py_NewInterpreter() is called
* Add assert(PyGILState_Check()) to: _Py_dup(), _Py_fstat(), _Py_read()
and _Py_write()
Victor Stinner [Mon, 14 Mar 2016 20:55:43 +0000 (21:55 +0100)]
Issue #26516: Fix test_capi on AIX
Fix regex for parse a pointer address.
Victor Stinner [Mon, 14 Mar 2016 17:22:12 +0000 (18:22 +0100)]
Merge 3.5 (test_venv)
Victor Stinner [Mon, 14 Mar 2016 17:21:58 +0000 (18:21 +0100)]
Fix test_venv on FreeBSD buildbot
Ignore pip warning in test_venv.test_with_venv().
Victor Stinner [Mon, 14 Mar 2016 17:09:39 +0000 (18:09 +0100)]
_pickle: Fix load_counted_tuple(), use Py_ssize_t for size
Fix a warning on Windows 64-bit.
Victor Stinner [Mon, 14 Mar 2016 17:07:53 +0000 (18:07 +0100)]
posix_getcwd(): limit to INT_MAX on Windows
It's more to fix a conversion warning during compilation, I don't think that
Windows support current working directory larger than 2 GB ...
Victor Stinner [Mon, 14 Mar 2016 16:47:30 +0000 (17:47 +0100)]
Merge 3.5 (test_site)
Victor Stinner [Mon, 14 Mar 2016 16:47:03 +0000 (17:47 +0100)]
Skip test_site if USER_SITE cannot be created
Issue #17758: Skip test_site if site.USER_SITE directory doesn't exist and
cannot be created.
Victor Stinner [Mon, 14 Mar 2016 16:40:09 +0000 (17:40 +0100)]
Issue #26516: Fix test_capi on 32-bit system
On 32-bit system, only 4 bytes after dumped for the tail.
Victor Stinner [Mon, 14 Mar 2016 16:10:36 +0000 (17:10 +0100)]
Issue #26516: Fix test_capi on Windows
Pointers are formatted differently.
Victor Stinner [Mon, 14 Mar 2016 16:01:32 +0000 (17:01 +0100)]
Issue #26558: Remove useless check in tracemalloc
The first instruction of tracemalloc_add_trace() is traceback_new() which
already checks the GIL.
Victor Stinner [Mon, 14 Mar 2016 15:53:12 +0000 (16:53 +0100)]
Fix Py_FatalError() if called without the GIL
Issue #26558: If Py_FatalError() is called without the GIL, don't try to print
the current exception, nor try to flush stdout and stderr: only dump the
traceback of Python threads.
Victor Stinner [Mon, 14 Mar 2016 15:53:12 +0000 (16:53 +0100)]
Fix Py_FatalError() if called without the GIL
Issue #26558: If Py_FatalError() is called without the GIL, don't try to print
the current exception, nor try to flush stdout and stderr: only dump the
traceback of Python threads.
Victor Stinner [Mon, 14 Mar 2016 11:04:26 +0000 (12:04 +0100)]
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.
Serhiy Storchaka [Mon, 14 Mar 2016 08:40:14 +0000 (10:40 +0200)]
Issue #20556: Used specific assert methods in threading tests.
Serhiy Storchaka [Mon, 14 Mar 2016 08:28:59 +0000 (10:28 +0200)]
Issue #20556: Used specific assert methods in threading tests.
Berker Peksag [Mon, 14 Mar 2016 04:06:03 +0000 (06:06 +0200)]
Issue #747320: Use email.utils.formatdate() to avoid code duplication
in BaseHTTPRequestHandler
Initial patch by karlcow.
Berker Peksag [Mon, 14 Mar 2016 03:48:28 +0000 (05:48 +0200)]
Issue #16181: cookiejar.http2time() now returns None if year is higher than datetime.MAXYEAR
Berker Peksag [Mon, 14 Mar 2016 03:48:02 +0000 (05:48 +0200)]
Issue #16181: cookiejar.http2time() now returns None if year is higher than datetime.MAXYEAR
Ezio Melotti [Sun, 13 Mar 2016 09:41:45 +0000 (11:41 +0200)]
#24918: merge with 3.5.
Ezio Melotti [Sun, 13 Mar 2016 09:41:05 +0000 (11:41 +0200)]
#24918: fix CSS for code blocks when a side box is present. Patch by Manvi B.
Raymond Hettinger [Sun, 13 Mar 2016 08:12:49 +0000 (00:12 -0800)]
merge
Raymond Hettinger [Sun, 13 Mar 2016 08:12:31 +0000 (00:12 -0800)]
Minor recipe edit: convert "while 1" to "while True".
Ezio Melotti [Sun, 13 Mar 2016 07:40:55 +0000 (09:40 +0200)]
#25687: merge with 3.5.
Ezio Melotti [Sun, 13 Mar 2016 07:40:09 +0000 (09:40 +0200)]
#25687: clarify that errors in tearDown increase the total number of reported errors. Initial patch by HyeSoo Park.
Raymond Hettinger [Sun, 13 Mar 2016 06:58:44 +0000 (22:58 -0800)]
merge
Raymond Hettinger [Sun, 13 Mar 2016 06:58:24 +0000 (22:58 -0800)]
Issue #26548: Minor fix to awkward wording in docs
Steve Dower [Sat, 12 Mar 2016 16:39:07 +0000 (08:39 -0800)]
Issue #26079: Fixing the build output folder for tix-8.4.3.6. Patch by Bjoern Thiel.
Steve Dower [Sat, 12 Mar 2016 16:38:55 +0000 (08:38 -0800)]
Issue #26079: Fixing the build output folder for tix-8.4.3.6. Patch by Bjoern Thiel.
Steve Dower [Sat, 12 Mar 2016 16:26:29 +0000 (08:26 -0800)]
Issue #23606: Adds note to ctypes documentation regarding cdll.msvcrt.
Steve Dower [Sat, 12 Mar 2016 16:25:22 +0000 (08:25 -0800)]
Issue #23606: Adds note to ctypes documentation regarding cdll.msvcrt.
Steve Dower [Sat, 12 Mar 2016 16:07:34 +0000 (08:07 -0800)]
Issue #26513: Fixes platform module detection of Windows Server
Steve Dower [Sat, 12 Mar 2016 16:06:23 +0000 (08:06 -0800)]
Issue #26513: Fixes platform module detection of Windows Server
Serhiy Storchaka [Sat, 12 Mar 2016 08:53:09 +0000 (10:53 +0200)]
Issue #23718: Fixed parsing time in week 0 before Jan 1. Original patch by
Tamás Bence Gedai.
Serhiy Storchaka [Sat, 12 Mar 2016 08:51:16 +0000 (10:51 +0200)]
Issue #23718: Fixed parsing time in week 0 before Jan 1. Original patch by
Tamás Bence Gedai.
Victor Stinner [Sat, 12 Mar 2016 07:16:48 +0000 (08:16 +0100)]
Revert change
291d47954618
Revert:
"Always test datetime.strftime("%4Y")
Issue #13305: Always test datetime.datetime.strftime("%4Y") for years < 1900."
In fact, strftime("%4Y") fails on most platforms.
Victor Stinner [Fri, 11 Mar 2016 21:53:15 +0000 (22:53 +0100)]
Merge 3.5
Victor Stinner [Fri, 11 Mar 2016 21:53:00 +0000 (22:53 +0100)]
Issue #20589: Fix test_pathlib
Victor Stinner [Fri, 11 Mar 2016 21:36:14 +0000 (22:36 +0100)]
Always test datetime.strftime("%4Y")
Issue #13305: Always test datetime.datetime.strftime("%4Y") for years < 1900.
Berker Peksag [Fri, 11 Mar 2016 21:19:48 +0000 (23:19 +0200)]
Issue #26542: Fix markup of code example in difflib documentation
Patch by Dmitry Shachnev.
Victor Stinner [Fri, 11 Mar 2016 21:17:48 +0000 (22:17 +0100)]
Add Mock.assert_called()
Issue #26323: Add assert_called() and assert_called_once() methods to
unittest.mock.Mock.
Berker Peksag [Fri, 11 Mar 2016 21:20:09 +0000 (23:20 +0200)]
Issue #26542: Fix markup of code example in difflib documentation
Patch by Dmitry Shachnev.
Berker Peksag [Fri, 11 Mar 2016 21:08:11 +0000 (23:08 +0200)]
Issue #20589: Invoking Path.owner() and Path.group() on Windows now raise
NotImplementedError instead of ImportError.
Berker Peksag [Fri, 11 Mar 2016 21:07:27 +0000 (23:07 +0200)]
Issue #20589: Invoking Path.owner() and Path.group() on Windows now raise
NotImplementedError instead of ImportError.
Terry Jan Reedy [Fri, 11 Mar 2016 20:31:02 +0000 (15:31 -0500)]
Merge with 3.5
Terry Jan Reedy [Fri, 11 Mar 2016 20:30:35 +0000 (15:30 -0500)]
Issue 25959: Explain in docstring that PhotoImage.zoom arguments are
multipliers, not final sizes. Explain y default for .zoom and .subsample.
Initial patch by Serhiy Storchaka.
Victor Stinner [Wed, 9 Mar 2016 14:02:31 +0000 (15:02 +0100)]
Merge 3.5 (malloc doc)
Victor Stinner [Wed, 9 Mar 2016 13:49:52 +0000 (14:49 +0100)]
Issue #26516: Enhance Python mem allocators doc
* add link to PYTHONMALLOCSTATS env var
* add parameters to PyMem macros like PyMem_MALLOC()
* fix PyMem_SetupDebugHooks(): add Calloc functions
* add some newlines for readability
Serhiy Storchaka [Wed, 9 Mar 2016 08:52:08 +0000 (10:52 +0200)]
Issue #26177: Fixed the keys() method for Canvas and Scrollbar widgets.
Martin Panter [Thu, 10 Mar 2016 01:06:23 +0000 (01:06 +0000)]
Issue #21042: Return full path in ctypes.util.find_library() on Linux
Patch by Tamás Bence Gedai.
Serhiy Storchaka [Wed, 9 Mar 2016 08:33:51 +0000 (10:33 +0200)]
Issue #26177: Fixed the keys() method for Canvas and Scrollbar widgets.
Added few missed tests for configure options.
Serhiy Storchaka [Tue, 8 Mar 2016 21:36:25 +0000 (23:36 +0200)]
Issue #15068: Avoid creating a reference loop in fileinput.
Serhiy Storchaka [Tue, 8 Mar 2016 21:35:35 +0000 (23:35 +0200)]
Issue #15068: Avoid creating a reference loop in fileinput.
Steve Dower [Tue, 8 Mar 2016 21:10:46 +0000 (13:10 -0800)]
Backs out buildbot clean trigger.
Steve Dower [Tue, 8 Mar 2016 21:10:29 +0000 (13:10 -0800)]
Backs out buildbot clean trigger.
Steve Dower [Tue, 8 Mar 2016 20:51:19 +0000 (12:51 -0800)]
Adds warning to prepare_ssl when nasm is not available.
Force clean externals on buildbots.
Steve Dower [Tue, 8 Mar 2016 20:50:57 +0000 (12:50 -0800)]
Adds warning to prepare_ssl when nasm is not available.
Force clean of externals on buildbots.
Serhiy Storchaka [Tue, 8 Mar 2016 19:26:44 +0000 (21:26 +0200)]
Issue #25911: Tring to silence deprecation warnings in bytes path walk tests.
Serhiy Storchaka [Tue, 8 Mar 2016 19:26:26 +0000 (21:26 +0200)]
Issue #25911: Tring to silence deprecation warnings in bytes path walk tests.
Serhiy Storchaka [Tue, 8 Mar 2016 19:16:47 +0000 (21:16 +0200)]
Backed out changeset
da020e408c7f
Serhiy Storchaka [Tue, 8 Mar 2016 19:15:43 +0000 (21:15 +0200)]
Backed out changeset
f9e22717722d
Serhiy Storchaka [Tue, 8 Mar 2016 19:13:35 +0000 (21:13 +0200)]
Backed out changeset
19a3e0e664af
Steve Dower [Tue, 8 Mar 2016 18:29:24 +0000 (10:29 -0800)]
Issue #26465: Update Windows builds to use OpenSSL 1.0.2g.
Steve Dower [Tue, 8 Mar 2016 18:26:52 +0000 (10:26 -0800)]
Issue #26465: Update Windows builds to use OpenSSL 1.0.2g.
Serhiy Storchaka [Tue, 8 Mar 2016 16:35:19 +0000 (18:35 +0200)]
Issue #15068: Got rid of excessive buffering in fileinput.
The bufsize parameter is now deprecated and ignored.
Serhiy Storchaka [Tue, 8 Mar 2016 16:28:36 +0000 (18:28 +0200)]
Issue #15068: Got rid of excessive buffering in the fileinput module.
The bufsize parameter is no longer used.
Serhiy Storchaka [Tue, 8 Mar 2016 14:12:46 +0000 (16:12 +0200)]
Issues #23808, #25911: Trying to fix walk tests on Windows.
On Windows a symlink can has the FILE_ATTRIBUTE_DIRECTORY flag.
Serhiy Storchaka [Tue, 8 Mar 2016 14:12:09 +0000 (16:12 +0200)]
Issues #23808, #25911: Trying to fix walk tests on Windows.
On Windows a symlink can has the FILE_ATTRIBUTE_DIRECTORY flag.
Serhiy Storchaka [Tue, 8 Mar 2016 14:11:26 +0000 (16:11 +0200)]
Issues #23808, #25911: Trying to fix walk tests on Windows.
On Windows a symlink can has the FILE_ATTRIBUTE_DIRECTORY flag.
Ned Deily [Tue, 8 Mar 2016 06:11:14 +0000 (01:11 -0500)]
Issue #26465: merge from 3.5
Ned Deily [Tue, 8 Mar 2016 06:09:08 +0000 (01:09 -0500)]
Issue #26465: Update OS X installer build to use OpenSSL 1.0.2g.
Ned Deily [Tue, 8 Mar 2016 05:40:12 +0000 (00:40 -0500)]
Issue #24324: merge from 3.5
Ned Deily [Tue, 8 Mar 2016 05:28:37 +0000 (00:28 -0500)]
Issue #24324: Do not enable unreachable code warnings when using
gcc as the option does not work correctly in older versions of gcc
and has been silently removed as of gcc-4.5.
Ned Deily [Mon, 7 Mar 2016 19:52:46 +0000 (14:52 -0500)]
Issue #26505: merge from 3.5
Ned Deily [Mon, 7 Mar 2016 19:51:59 +0000 (14:51 -0500)]
Issue #26505: Fix typos in getaddrinfo license text.
Patch by Alex Willmer.
Berker Peksag [Mon, 7 Mar 2016 17:01:05 +0000 (19:01 +0200)]
Issue #24852: Remove outdated "HOWTO Use Python in the web" document
Berker Peksag [Mon, 7 Mar 2016 17:00:47 +0000 (19:00 +0200)]
Issue #24852: Remove outdated "HOWTO Use Python in the web" document
Berker Peksag [Mon, 7 Mar 2016 16:51:06 +0000 (18:51 +0200)]
Issue #21034: Remove outdated paragraph from venv documentation
Since Python 3.4, there is no need to install pip and setuptools
into a venv manually.
Berker Peksag [Mon, 7 Mar 2016 16:50:49 +0000 (18:50 +0200)]
Issue #21034: Remove outdated paragraph from venv documentation
Since Python 3.4, there is no need to install pip and setuptools
into a venv manually.
Raymond Hettinger [Mon, 7 Mar 2016 02:12:08 +0000 (18:12 -0800)]
Merge
Raymond Hettinger [Mon, 7 Mar 2016 02:11:38 +0000 (18:11 -0800)]
Document another recipe for itertools: all_equal(). Inspired by David Beazley.
Alexander Belopolsky [Sun, 6 Mar 2016 19:58:43 +0000 (14:58 -0500)]
Closes #19475: Added timespec to the datetime.isoformat() method.
Added an optional argument timespec to the datetime isoformat() method
to choose the precision of the time component.
Original patch by Alessandro Cucci.