]>
granicus.if.org Git - python/log
Serhiy Storchaka [Wed, 4 May 2016 19:23:26 +0000 (22:23 +0300)]
Issue #26765: Moved common code and docstrings for bytes and bytearray methods
to bytes_methods.c.
Steven D'Aprano [Wed, 4 May 2016 18:47:10 +0000 (04:47 +1000)]
Automated merge with ssh://hg.python.org/cpython
Serhiy Storchaka [Wed, 4 May 2016 18:42:52 +0000 (21:42 +0300)]
Issue #26811: gc.get_objects() no longer contains a broken tuple with NULL
pointer.
Serhiy Storchaka [Wed, 4 May 2016 18:42:05 +0000 (21:42 +0300)]
Issue #26811: gc.get_objects() no longer contains a broken tuple with NULL
pointer.
Steven D'Aprano [Wed, 4 May 2016 17:54:29 +0000 (03:54 +1000)]
Issue 26002 and 25974
patches by Upendra Kumar and Stefan Krah
speed up median by using bisect, and general speedup for Decimals using as_integer_ratio
Jason R. Coombs [Wed, 4 May 2016 16:00:32 +0000 (12:00 -0400)]
Issue #20120: Merge with 3.5
Jason R. Coombs [Wed, 4 May 2016 15:57:32 +0000 (11:57 -0400)]
Issue #20120: Use RawConfigParser for .pypirc parsing, removing support for interpolation unintentionally added with move to Python 3. Behavior no longer does any interpolation in .pypirc files, matching behavior in Python 2.7 and Setuptools 19.0.
Serhiy Storchaka [Wed, 4 May 2016 08:27:17 +0000 (11:27 +0300)]
Issue #26873: xmlrpc now raises ResponseError on unsupported type tags
instead of silently return incorrect result.
Serhiy Storchaka [Wed, 4 May 2016 08:26:42 +0000 (11:26 +0300)]
Issue #26873: xmlrpc now raises ResponseError on unsupported type tags
instead of silently return incorrect result.
Serhiy Storchaka [Wed, 4 May 2016 06:44:44 +0000 (09:44 +0300)]
Issue #26932: Fixed support of RTLD_* constants defined as enum values,
not via macros (in particular on Android). Patch by Chi Hsuan Yen.
Serhiy Storchaka [Tue, 3 May 2016 18:17:52 +0000 (21:17 +0300)]
Issue #24950: Fixed expanduser tests when the users home directory in pwd is "/".
Based on patch by SilentGhost.
Serhiy Storchaka [Tue, 3 May 2016 18:17:03 +0000 (21:17 +0300)]
Issue #24950: Fixed expanduser tests when the users home directory in pwd is "/".
Based on patch by SilentGhost.
Terry Jan Reedy [Mon, 2 May 2016 22:30:19 +0000 (18:30 -0400)]
Merge with 3.5
Terry Jan Reedy [Mon, 2 May 2016 22:30:02 +0000 (18:30 -0400)]
Clarify IDLE-console differences with respect to the sys module.
The reload(sys) effect was the crux of a Stackoverflow question.
Donald Stufft [Mon, 2 May 2016 11:05:29 +0000 (07:05 -0400)]
Upgrade ensurepip bundled setuptools to 20.10.1
Donald Stufft [Mon, 2 May 2016 11:04:59 +0000 (07:04 -0400)]
Upgrade ensurepip bundled setuptools to 20.10.1
Donald Stufft [Mon, 2 May 2016 11:03:46 +0000 (07:03 -0400)]
Upgrade ensurepip bundled setuptools to 20.10.1
Serhiy Storchaka [Mon, 2 May 2016 10:45:20 +0000 (13:45 +0300)]
Got rid of redundand "self" parameter declarations.
Argument Clinic is now able to infer all needed information.
Berker Peksag [Mon, 2 May 2016 09:26:00 +0000 (12:26 +0300)]
Issue #18916: Update thread module docstrings
* Fix acquire() signature
* Remove outdated help(LockType) reference
* Replace PyThread_allocate_lock() with threading.Lock()
Patch by Christopher Welborn.
Berker Peksag [Mon, 2 May 2016 09:25:35 +0000 (12:25 +0300)]
Issue #18916: Update thread module docstrings
* Fix acquire() signature
* Remove outdated help(LockType) reference
* Replace PyThread_allocate_lock() with threading.Lock()
Patch by Christopher Welborn.
Serhiy Storchaka [Sun, 1 May 2016 17:34:00 +0000 (20:34 +0300)]
Regenerate Argument Clinic code for issue #26874.
Serhiy Storchaka [Sun, 1 May 2016 17:33:24 +0000 (20:33 +0300)]
Regenerate Argument Clinic code for issue #26874.
Ethan Furman [Sun, 1 May 2016 17:04:21 +0000 (10:04 -0700)]
issue26893: use mro() to examine class heirarchy
Ethan Furman [Sun, 1 May 2016 17:03:53 +0000 (10:03 -0700)]
issue26893: use mro() to examine class heirarchy
Serhiy Storchaka [Sun, 1 May 2016 10:36:42 +0000 (13:36 +0300)]
Issue #26711: Fixed the comparison of plistlib.Data with other types.
Serhiy Storchaka [Sun, 1 May 2016 10:36:16 +0000 (13:36 +0300)]
Issue #26711: Fixed the comparison of plistlib.Data with other types.
Serhiy Storchaka [Sun, 1 May 2016 10:07:14 +0000 (13:07 +0300)]
Fixed declarations of _Py_DumpTraceback() and _Py_DumpTracebackThreads().
Serhiy Storchaka [Sun, 1 May 2016 10:06:43 +0000 (13:06 +0300)]
Fixed declarations of _Py_DumpTraceback() and _Py_DumpTracebackThreads().
Berker Peksag [Sun, 1 May 2016 08:27:59 +0000 (11:27 +0300)]
Issue #26898: Fix typo in math.isclose() docstring
Patch by Marco Buttu.
Berker Peksag [Sun, 1 May 2016 08:27:37 +0000 (11:27 +0300)]
Issue #26898: Fix typo in math.isclose() docstring
Patch by Marco Buttu.
Berker Peksag [Sun, 1 May 2016 06:06:57 +0000 (09:06 +0300)]
Issue #23960: Cleanup args and kwargs on error in PyErr_SetImportError
Patch by Ofer Schwarz.
Berker Peksag [Sun, 1 May 2016 06:06:36 +0000 (09:06 +0300)]
Issue #23960: Cleanup args and kwargs on error in PyErr_SetImportError
Patch by Ofer Schwarz.
Meador Inge [Sun, 1 May 2016 03:17:22 +0000 (22:17 -0500)]
Issue #24114: Fix an uninitialized variable in `ctypes.util`.
The bug only occurs on SunOS when the ctypes implementation searches
for the `crle` program. Patch by Xiang Zhang. Tested on SunOS by
Kees Bos.
Meador Inge [Sun, 1 May 2016 02:56:59 +0000 (21:56 -0500)]
Issue #24114: Fix an uninitialized variable in `ctypes.util`.
The bug only occurs on SunOS when the ctypes implementation searches
for the `crle` program. Patch by Xiang Zhang. Tested on SunOS by
Kees Bos.
Martin Panter [Sat, 30 Apr 2016 01:30:57 +0000 (01:30 +0000)]
Issue #26864: Merge no_proxy fixes from 3.5
Martin Panter [Sat, 30 Apr 2016 01:03:40 +0000 (01:03 +0000)]
Issue #26864: Fix case insensitivity and suffix comparison with no_proxy
Patch by Xiang Zhang.
Berker Peksag [Fri, 29 Apr 2016 16:50:02 +0000 (19:50 +0300)]
Issue #13436: Add a test to make sure that ast.ImportFrom(level=None) works
Berker Peksag [Fri, 29 Apr 2016 14:25:51 +0000 (17:25 +0300)]
Issue #25551: Test condition behavior instead of its internals
test_reset_internal_locks was looking at Event's _cond._lock. This
makes it harder to change internals of the Condition object and
makes the test fragile.
The test was added by Nir Soffer in
6108d30dde21 .
Patch by Nir Soffer.
Berker Peksag [Fri, 29 Apr 2016 14:25:29 +0000 (17:25 +0300)]
Issue #25551: Test condition behavior instead of its internals
test_reset_internal_locks was looking at Event's _cond._lock. This
makes it harder to change internals of the Condition object and
makes the test fragile.
The test was added by Nir Soffer in
6108d30dde21 .
Patch by Nir Soffer.
Berker Peksag [Fri, 29 Apr 2016 13:54:10 +0000 (16:54 +0300)]
Fix typos. Reported by andportnoy on GitHub.
Berker Peksag [Fri, 29 Apr 2016 13:48:11 +0000 (16:48 +0300)]
Issue #24902: Print server URL on http.server startup
Initial patch by Felix Kaiser.
Berker Peksag [Fri, 29 Apr 2016 11:41:41 +0000 (14:41 +0300)]
Issue #26322: Document typing.Set, patch by Joseph Moran
Berker Peksag [Fri, 29 Apr 2016 11:41:16 +0000 (14:41 +0300)]
Issue #26322: Document typing.Set, patch by Joseph Moran
Raymond Hettinger [Fri, 29 Apr 2016 08:37:05 +0000 (01:37 -0700)]
Removed unused initialization and the uninteresting comment.
Serhiy Storchaka [Fri, 29 Apr 2016 08:31:52 +0000 (11:31 +0300)]
Issue #26880: Removed redundant checks in set.__init__.
Serhiy Storchaka [Fri, 29 Apr 2016 06:12:25 +0000 (09:12 +0300)]
Issue #26822: Decreased an overhead of using _PyArg_NoKeywords() in calls of
itemgetter, attrgetter and methodcaller objects.
Serhiy Storchaka [Fri, 29 Apr 2016 06:10:55 +0000 (09:10 +0300)]
Issue #26822: Decreased an overhead of using _PyArg_NoKeywords() in calls of
itemgetter, attrgetter and methodcaller objects.
Zachary Ware [Thu, 28 Apr 2016 19:47:33 +0000 (14:47 -0500)]
Closes #26875: Merge with 3.5
Zachary Ware [Thu, 28 Apr 2016 19:47:12 +0000 (14:47 -0500)]
Issue #26875: Fix mmap example
Patch by Xiang Zhang.
Zachary Ware [Thu, 28 Apr 2016 19:40:08 +0000 (14:40 -0500)]
Closes #26874: Merge with 3.5
Zachary Ware [Thu, 28 Apr 2016 19:39:50 +0000 (14:39 -0500)]
Issue #26874: Simplify the divmod docstring
Zachary Ware [Thu, 28 Apr 2016 19:25:32 +0000 (14:25 -0500)]
Closes #26874: Merge with 3.5
Zachary Ware [Thu, 28 Apr 2016 19:24:55 +0000 (14:24 -0500)]
Issue #26874: Fix divmod docstring
Serhiy Storchaka [Wed, 27 Apr 2016 20:13:46 +0000 (23:13 +0300)]
Issue #25788: fileinput.hook_encoded() now supports an "errors" argument
for passing to open. Original patch by Joseph Hackman.
Serhiy Storchaka [Wed, 27 Apr 2016 20:06:41 +0000 (23:06 +0300)]
fileinput.hook_encoded() uses builtin open(), not codecs.open().
Serhiy Storchaka [Wed, 27 Apr 2016 20:06:15 +0000 (23:06 +0300)]
fileinput.hook_encoded() uses builtin open(), not codecs.open().
Stefan Krah [Tue, 26 Apr 2016 15:04:18 +0000 (17:04 +0200)]
Issue #26863: HAVE_FACCESSAT should (currently) not be defined on Android.
Stefan Krah [Tue, 26 Apr 2016 14:48:48 +0000 (16:48 +0200)]
Issue #26854: Android has a different include path for soundcard.h.
Stefan Krah [Tue, 26 Apr 2016 14:34:41 +0000 (16:34 +0200)]
Issue #26846: Post commit cleanup.
Stefan Krah [Tue, 26 Apr 2016 14:20:17 +0000 (16:20 +0200)]
Issue #26857: Workaround for missing symbol "gethostbyaddr_r" on Android.
Martin Panter [Tue, 26 Apr 2016 11:47:10 +0000 (11:47 +0000)]
Issue #20598: Merge argparse docs from 3.5
Martin Panter [Tue, 26 Apr 2016 11:41:25 +0000 (11:41 +0000)]
Issue #20598: Replace trivial split() calls with lists in argparse docs
Victor Stinner [Tue, 26 Apr 2016 10:35:13 +0000 (12:35 +0200)]
Issue #25349, #26249: Fix memleak in formatfloat()
Stefan Krah [Tue, 26 Apr 2016 09:43:21 +0000 (11:43 +0200)]
Issue #20306: Android is the only system that returns NULL for the pw_passwd
field. Rather than cluttering the tests, translate the arguably more correct
"None" to an empty string.
Raymond Hettinger [Tue, 26 Apr 2016 08:11:28 +0000 (01:11 -0700)]
merge
Raymond Hettinger [Tue, 26 Apr 2016 08:11:10 +0000 (01:11 -0700)]
Issue #24715: Improve sort stability example
Raymond Hettinger [Tue, 26 Apr 2016 07:10:00 +0000 (00:10 -0700)]
Issue #16394: Note the tee() pure python equivalent is only a rough approximation.
Serhiy Storchaka [Tue, 26 Apr 2016 06:31:11 +0000 (09:31 +0300)]
Issue #26634: recursive_repr() now sets __qualname__ of wrapper.
Patch by Xiang Zhang.
Serhiy Storchaka [Tue, 26 Apr 2016 06:30:44 +0000 (09:30 +0300)]
Issue #26634: recursive_repr() now sets __qualname__ of wrapper.
Patch by Xiang Zhang.
Stefan Krah [Mon, 25 Apr 2016 23:56:50 +0000 (01:56 +0200)]
Issue #22747: Workaround for systems without langinfo.h.
Stefan Krah [Mon, 25 Apr 2016 23:09:18 +0000 (01:09 +0200)]
Issue #20306: The pw_gecos and pw_passwd fields are not required by POSIX.
If they aren't present, set them to an empty string.
Stefan Krah [Mon, 25 Apr 2016 20:48:42 +0000 (22:48 +0200)]
Issue #26846: Workaround for non-standard stdlib.h on Android.
Stefan Krah [Mon, 25 Apr 2016 19:38:53 +0000 (21:38 +0200)]
Issue #17905: Do not guard locale include with HAVE_LANGINFO_H.
Senthil Kumaran [Mon, 25 Apr 2016 15:18:07 +0000 (08:18 -0700)]
merge 3.5
Issue #26804: urllib.request will prefer lower_case proxy environment variables
over UPPER_CASE or Mixed_Case ones.
Patch contributed by Hans-Peter Jansen. Reviewed by Martin Panter and Senthil Kumaran.
Senthil Kumaran [Mon, 25 Apr 2016 15:16:23 +0000 (08:16 -0700)]
Issue #26804: urllib.request will prefer lower_case proxy environment variables
over UPPER_CASE or Mixed_Case ones.
Patch contributed by Hans-Peter Jansen. Reviewed by Martin Panter and Senthil Kumaran.
Zachary Ware [Mon, 25 Apr 2016 14:27:49 +0000 (09:27 -0500)]
Merge with 3.5
Zachary Ware [Mon, 25 Apr 2016 14:27:27 +0000 (09:27 -0500)]
FileExistsError is raised by mkdir when dir exists
Reported by Saul Spatz on docs@
Berker Peksag [Mon, 25 Apr 2016 11:32:41 +0000 (14:32 +0300)]
Issue #23662: Document default value of RFC 2109 attributes
Berker Peksag [Mon, 25 Apr 2016 11:32:19 +0000 (14:32 +0300)]
Issue #23662: Document default value of RFC 2109 attributes
Serhiy Storchaka [Mon, 25 Apr 2016 10:49:11 +0000 (13:49 +0300)]
Remove outdated TkVersion checks.
Minimal supported Tcl/Tk version is 8.4, and this is checked in _tkinter.c.
Serhiy Storchaka [Mon, 25 Apr 2016 05:58:59 +0000 (08:58 +0300)]
Merge 3.5
Serhiy Storchaka [Mon, 25 Apr 2016 05:58:25 +0000 (08:58 +0300)]
Issue #26837: assertSequenceEqual() now correctly outputs non-stringified
differing items (like bytes in the -b mode). This affects assertListEqual()
and assertTupleEqual().
Serhiy Storchaka [Sun, 24 Apr 2016 21:12:32 +0000 (00:12 +0300)]
Removed unused imports.
Serhiy Storchaka [Sun, 24 Apr 2016 21:05:30 +0000 (00:05 +0300)]
Remove more unused imports in tests.
Serhiy Storchaka [Sun, 24 Apr 2016 20:53:16 +0000 (23:53 +0300)]
Merge 3.5
Serhiy Storchaka [Sun, 24 Apr 2016 20:50:18 +0000 (23:50 +0300)]
Remove duplicated tests.
There were duplicated methods with the same name and body.
Serhiy Storchaka [Sun, 24 Apr 2016 20:42:49 +0000 (23:42 +0300)]
Remove unused support.run_unittest imports.
It is not needed since tests use unittest.main().
Victor Stinner [Sun, 24 Apr 2016 20:33:26 +0000 (22:33 +0200)]
Issue #26249: Mention PyMem_Malloc() change in What's New in Python 3.6 in the
Optimizations section.
Serhiy Storchaka [Sun, 24 Apr 2016 18:41:02 +0000 (21:41 +0300)]
Issue #23277: Remove unused imports in tests.
Serhiy Storchaka [Sun, 24 Apr 2016 10:45:58 +0000 (13:45 +0300)]
Issue #23277: Remove unused support.run_unittest import.
Serhiy Storchaka [Sun, 24 Apr 2016 10:25:01 +0000 (13:25 +0300)]
Issue #23277: Remove more unused sys and os imports.
Serhiy Storchaka [Sun, 24 Apr 2016 06:59:17 +0000 (09:59 +0300)]
Issue #26801: shutil.get_terminal_size() now handles the case of stdout is
reopened on Windows. Added tests for fallbacks.
Serhiy Storchaka [Sun, 24 Apr 2016 06:58:43 +0000 (09:58 +0300)]
Issue #26801: shutil.get_terminal_size() now handles the case of stdout is
reopened on Windows. Added tests for fallbacks.
Martin Panter [Sun, 24 Apr 2016 04:55:00 +0000 (04:55 +0000)]
Issue #24911: Merge socket context manager doc from 3.5
Berker Peksag [Sun, 24 Apr 2016 04:31:42 +0000 (07:31 +0300)]
Issue #23277: Remove unused sys and os imports
Patch by Jon Dufresne.
Martin Panter [Sun, 24 Apr 2016 04:24:36 +0000 (04:24 +0000)]
Issue #24911: All socket objects are context managers; update examples
Martin Panter [Sun, 24 Apr 2016 04:07:58 +0000 (04:07 +0000)]
Issue #23806: Merge susp-ignored.csv from 3.5
Martin Panter [Sun, 24 Apr 2016 04:06:15 +0000 (04:06 +0000)]
Issue #23806: Update susp-ignored.csv
Berker Peksag [Sun, 24 Apr 2016 00:32:50 +0000 (03:32 +0300)]
Issue #26041: Remove "will be removed in Python 3.7" from description messages
We will keep platform.dist() and platform.linux_distribution() to make porting
from Python 2 easier.
Patch by Kumaripaba Miyurusara Athukorala.
Berker Peksag [Sun, 24 Apr 2016 00:32:24 +0000 (03:32 +0300)]
Issue #26041: Remove "will be removed in Python 3.7" from description messages
We will keep platform.dist() and platform.linux_distribution() to make porting
from Python 2 easier.
Patch by Kumaripaba Miyurusara Athukorala.