]>
granicus.if.org Git - python/log
Victor Stinner [Tue, 6 Dec 2016 10:02:54 +0000 (11:02 +0100)]
Merge 3.6
Victor Stinner [Tue, 6 Dec 2016 10:02:12 +0000 (11:02 +0100)]
warnings: Fix the issue number
The fix for catch_warnings() is the issue #28835 (not the issue #28089).
Victor Stinner [Tue, 6 Dec 2016 09:59:54 +0000 (10:59 +0100)]
Merge 3.6
Victor Stinner [Tue, 6 Dec 2016 09:53:52 +0000 (10:53 +0100)]
catch_warnings() calls showwarning() if overriden
Issue #28089: Fix a regression introduced in warnings.catch_warnings(): call
warnings.showwarning() if it was overriden inside the context manager.
Benjamin Peterson [Tue, 6 Dec 2016 06:31:20 +0000 (22:31 -0800)]
merge 3.6
Benjamin Peterson [Tue, 6 Dec 2016 06:31:12 +0000 (22:31 -0800)]
merge 3.5
Benjamin Peterson [Tue, 6 Dec 2016 06:30:55 +0000 (22:30 -0800)]
rm unused import
Serhiy Storchaka [Mon, 5 Dec 2016 22:24:19 +0000 (00:24 +0200)]
Fixed merge error in Misc/NEWS for issue #23722.
Serhiy Storchaka [Mon, 5 Dec 2016 22:20:26 +0000 (00:20 +0200)]
Issue #28808: PyUnicode_CompareWithASCIIString() now never raises exceptions.
Serhiy Storchaka [Mon, 5 Dec 2016 22:17:45 +0000 (00:17 +0200)]
Issue #28808: PyUnicode_CompareWithASCIIString() now never raises exceptions.
Serhiy Storchaka [Mon, 5 Dec 2016 22:13:34 +0000 (00:13 +0200)]
Issue #28808: PyUnicode_CompareWithASCIIString() now never raises exceptions.
Victor Stinner [Mon, 5 Dec 2016 17:23:27 +0000 (18:23 +0100)]
Use directly _PyObject_GenericSetAttrWithDict()
Modify type_setattro() to call directly _PyObject_GenericSetAttrWithDict()
instead of PyObject_GenericSetAttr().
PyObject_GenericSetAttr() is a thin wrapper to
_PyObject_GenericSetAttrWithDict().
Victor Stinner [Mon, 5 Dec 2016 17:00:42 +0000 (18:00 +0100)]
Issue #28152: Fix -Wunreachable-code warning on clang
Replace 0 with (0) to ignore a compiler warning about dead code on
"((int)(SEM_VALUE_MAX) < 0)": SEM_VALUE_MAX is not negative on Linux.
Victor Stinner [Mon, 5 Dec 2016 16:55:36 +0000 (17:55 +0100)]
Issue #28152: Fix -Wunreachable-code warning on clang
Replace C if() with precompiler #if to fix a warning on dead code when using
clang.
Victor Stinner [Mon, 5 Dec 2016 16:56:36 +0000 (17:56 +0100)]
Issue #28152: Fix -Wunreachable-code warnings on Clang
Don't declare dead code when the code is declared with Clang.
Victor Stinner [Mon, 5 Dec 2016 16:04:32 +0000 (17:04 +0100)]
Issue #28858: Remove _PyObject_CallArg1() macro
Replace
_PyObject_CallArg1(func, arg)
with
PyObject_CallFunctionObjArgs(func, arg, NULL)
Using the _PyObject_CallArg1() macro increases the usage of the C stack, which
was unexpected and unwanted. PyObject_CallFunctionObjArgs() doesn't have this
issue.
Nick Coghlan [Mon, 5 Dec 2016 06:59:22 +0000 (16:59 +1000)]
Merge #23722 from 3.6
Nick Coghlan [Mon, 5 Dec 2016 06:47:55 +0000 (16:47 +1000)]
Issue #23722: improve __classcell__ compatibility
Handling zero-argument super() in __init_subclass__ and
__set_name__ involved moving __class__ initialisation to
type.__new__. This requires cooperation from custom
metaclasses to ensure that the new __classcell__ entry
is passed along appropriately.
The initial implementation of that change resulted in abruptly
broken zero-argument super() support in metaclasses that didn't
adhere to the new requirements (such as Django's metaclass for
Model definitions).
The updated approach adopted here instead emits a deprecation
warning for those cases, and makes them work the same way they
did in Python 3.5.
This patch also improves the related class machinery documentation
to cover these details and to include more reader-friendly
cross-references and index entries.
Victor Stinner [Sun, 4 Dec 2016 21:59:09 +0000 (22:59 +0100)]
Backed out changeset
b9c9691c72c5
Issue #28858: The change
b9c9691c72c5 introduced a regression. It seems like
_PyObject_CallArg1() uses more stack memory than
PyObject_CallFunctionObjArgs().
Raymond Hettinger [Sun, 4 Dec 2016 19:00:57 +0000 (11:00 -0800)]
merge
Raymond Hettinger [Sun, 4 Dec 2016 19:00:34 +0000 (11:00 -0800)]
Neaten-up and extend the examples in the random module docs.
Serhiy Storchaka [Sun, 4 Dec 2016 13:43:57 +0000 (15:43 +0200)]
Fixed mismatching title overline.
Serhiy Storchaka [Sun, 4 Dec 2016 13:43:37 +0000 (15:43 +0200)]
Fixed mismatching title overline.
Serhiy Storchaka [Sun, 4 Dec 2016 13:42:13 +0000 (15:42 +0200)]
Fixed mismatching title overline.
Serhiy Storchaka [Sun, 4 Dec 2016 08:22:36 +0000 (10:22 +0200)]
Fixed double hyphens that are rendered to literal en-dashes in the documenation.
Serhiy Storchaka [Sun, 4 Dec 2016 08:22:09 +0000 (10:22 +0200)]
Fixed double hyphens that are rendered to literal en-dashes in the documenation.
Serhiy Storchaka [Sun, 4 Dec 2016 08:20:55 +0000 (10:20 +0200)]
Fixed double hyphens that are rendered to literal en-dashes in the documenation.
Steve Dower [Sat, 3 Dec 2016 23:57:15 +0000 (15:57 -0800)]
Null merge with 3.6
Steve Dower [Sat, 3 Dec 2016 23:57:00 +0000 (15:57 -0800)]
Revert unintended merge
Steve Dower [Sat, 3 Dec 2016 20:12:23 +0000 (12:12 -0800)]
Revert unintended merge
Steve Dower [Sat, 3 Dec 2016 20:11:25 +0000 (12:11 -0800)]
Issue #28846: Various installer fixes
Steve Dower [Sat, 3 Dec 2016 19:56:44 +0000 (11:56 -0800)]
Ensures intermediate directory is created before using it
Steve Dower [Sat, 3 Dec 2016 19:56:20 +0000 (11:56 -0800)]
Ensures intermediate directory is created before accessing it.
Steve Dower [Sat, 3 Dec 2016 19:24:02 +0000 (11:24 -0800)]
Issue #28846: Various installer fixes
Steve Dower [Sat, 3 Dec 2016 19:18:53 +0000 (11:18 -0800)]
Issue #28846: Various installer fixes
Serhiy Storchaka [Fri, 2 Dec 2016 21:34:24 +0000 (23:34 +0200)]
Merge heads
Serhiy Storchaka [Fri, 2 Dec 2016 21:15:42 +0000 (23:15 +0200)]
Issue #21818: Fixed references to classes that have names matching with module
names.
Serhiy Storchaka [Fri, 2 Dec 2016 21:15:22 +0000 (23:15 +0200)]
Issue #21818: Fixed references to classes that have names matching with module
names.
Serhiy Storchaka [Fri, 2 Dec 2016 21:13:53 +0000 (23:13 +0200)]
Issue #21818: Fixed references to classes that have names matching with module
names.
Serhiy Storchaka [Fri, 2 Dec 2016 19:38:46 +0000 (21:38 +0200)]
Merge from 3.6.
Serhiy Storchaka [Fri, 2 Dec 2016 19:33:05 +0000 (21:33 +0200)]
Null merge
Nick Coghlan [Fri, 2 Dec 2016 10:29:57 +0000 (20:29 +1000)]
Issue #27172: Undeprecate inspect.getfullargspec()
This is still useful for single source Python 2/3 code
migrating away from inspect.getargspec(), but that wasn't
clear with the documented deprecation in place.
Benjamin Peterson [Fri, 2 Dec 2016 06:01:32 +0000 (22:01 -0800)]
fix _PyObject_CallArg1 compiler warnings (closes #28855)
Victor Stinner [Fri, 2 Dec 2016 00:13:46 +0000 (01:13 +0100)]
Add sys.getandroidapilevel()
Issue #28740: Add sys.getandroidapilevel(): return the build time
API version of Android as an integer.
Function only available on Android.
doko@ubuntu.com [Thu, 1 Dec 2016 20:42:56 +0000 (21:42 +0100)]
- Import latest config.sub config.guess files
Yury Selivanov [Thu, 1 Dec 2016 16:37:47 +0000 (11:37 -0500)]
Merge 3.6 (issue #28843)
Yury Selivanov [Thu, 1 Dec 2016 16:36:22 +0000 (11:36 -0500)]
Issue #28843: Fix asyncio C Task to handle exceptions __traceback__.
Victor Stinner [Thu, 1 Dec 2016 13:51:04 +0000 (14:51 +0100)]
Replace PyObject_CallFunction() with fastcall
Replace
PyObject_CallFunction(func, "O", arg)
and
PyObject_CallFunction(func, "O", arg, NULL)
with
_PyObject_CallArg1(func, arg)
Replace
PyObject_CallFunction(func, NULL)
with
_PyObject_CallNoArg(func)
_PyObject_CallNoArg() and _PyObject_CallArg1() are simpler and don't allocate
memory on the C stack.
Victor Stinner [Thu, 1 Dec 2016 13:45:31 +0000 (14:45 +0100)]
WITH_CLEANUP_START uses fastcall
Modify WITH_CLEANUP_START bytecode: replace PyObject_CallFunctionObjArgs() with
_PyObject_FastCall().
Victor Stinner [Thu, 1 Dec 2016 13:43:22 +0000 (14:43 +0100)]
Replace PyObject_CallFunctionObjArgs() with fastcall
* PyObject_CallFunctionObjArgs(func, NULL) => _PyObject_CallNoArg(func)
* PyObject_CallFunctionObjArgs(func, arg, NULL) => _PyObject_CallArg1(func, arg)
PyObject_CallFunctionObjArgs() allocates 40 bytes on the C stack and requires
extra work to "parse" C arguments to build a C array of PyObject*.
_PyObject_CallNoArg() and _PyObject_CallArg1() are simpler and don't allocate
memory on the C stack.
This change is part of the fastcall project. The change on listsort() is
related to the issue #23507.
Victor Stinner [Wed, 30 Nov 2016 11:10:54 +0000 (12:10 +0100)]
Backed out changeset
7efddbf1aa70
Victor Stinner [Tue, 29 Nov 2016 17:47:56 +0000 (18:47 +0100)]
Uniformize argument names of "call" functions
* Callable object: callable, o, callable_object => func
* Object for method calls: o => obj
* Method name: name or nameid => method
Cleanup also the C code:
* Don't initialize variables to NULL if they are not used before their first
assignement
* Add braces for readability
Guido van Rossum [Tue, 29 Nov 2016 17:46:29 +0000 (09:46 -0800)]
Issue #28790: Fix error when using Generic and __slots__ (Ivan L) (3.6->3.7)
Guido van Rossum [Tue, 29 Nov 2016 17:46:26 +0000 (09:46 -0800)]
Issue #28790: Fix error when using Generic and __slots__ (Ivan L) (3.5->3.6)
Guido van Rossum [Tue, 29 Nov 2016 17:46:21 +0000 (09:46 -0800)]
Issue #28790: Fix error when using Generic and __slots__ (Ivan L)
Victor Stinner [Tue, 29 Nov 2016 17:22:02 +0000 (18:22 +0100)]
Null merge 3.6
Victor Stinner [Tue, 29 Nov 2016 15:55:04 +0000 (16:55 +0100)]
Add TCP_CONGESTION and TCP_USER_TIMEOUT
Issue #26273: Add new socket.TCP_CONGESTION (Linux 2.6.13) and
socket.TCP_USER_TIMEOUT (Linux 2.6.37) constants.
Patch written by Omar Sandoval.
Victor Stinner [Tue, 29 Nov 2016 15:55:04 +0000 (16:55 +0100)]
Add TCP_CONGESTION and TCP_USER_TIMEOUT
Issue #26273: Add new socket.TCP_CONGESTION (Linux 2.6.13) and
socket.TCP_USER_TIMEOUT (Linux 2.6.37) constants.
Patch written by Omar Sandoval.
Serhiy Storchaka [Tue, 29 Nov 2016 07:56:07 +0000 (09:56 +0200)]
Issue #28797: Modifying the class __dict__ inside the __set_name__ method of
a descriptor that is used inside that class no longer prevents calling the
__set_name__ method of other descriptors.
Serhiy Storchaka [Tue, 29 Nov 2016 07:54:17 +0000 (09:54 +0200)]
Issue #28797: Modifying the class __dict__ inside the __set_name__ method of
a descriptor that is used inside that class no longer prevents calling the
__set_name__ method of other descriptors.
Serhiy Storchaka [Mon, 28 Nov 2016 18:56:37 +0000 (20:56 +0200)]
Issue #28823: Simplified compiling with opcode BUILD_MAP_UNPACK.
Victor Stinner [Mon, 28 Nov 2016 17:32:31 +0000 (18:32 +0100)]
call_function(): document PyMethod optimization
Victor Stinner [Mon, 28 Nov 2016 17:13:52 +0000 (18:13 +0100)]
Reintroduce Python2 support in generate_opcode_h.py
Issue #28821.
Add also a message to show that the command did something :-)
Yury Selivanov [Mon, 28 Nov 2016 16:45:58 +0000 (11:45 -0500)]
Merge 3.6 (issue #28635)
Yury Selivanov [Mon, 28 Nov 2016 16:45:36 +0000 (11:45 -0500)]
Issue #28635: Document Python 3.6 opcode changes
Thanks to Serhiy Storchaka for pointing out the missing notes.
Patch by Elvis Pranskevichus.
Victor Stinner [Mon, 28 Nov 2016 11:06:13 +0000 (12:06 +0100)]
Issue #28799: Update Misc/SpecialBuilds.txt
Remove CALL_PROFILE.
Victor Stinner [Mon, 28 Nov 2016 10:59:04 +0000 (11:59 +0100)]
Remove CALL_PROFILE special build
Issue #28799:
* Remove the PyEval_GetCallStats() function.
* Deprecate the untested and undocumented sys.callstats() function.
* Remove the CALL_PROFILE special build
Use the sys.setprofile() function, cProfile or profile module to profile
function calls.
Serhiy Storchaka [Mon, 28 Nov 2016 08:52:05 +0000 (10:52 +0200)]
Issue #12844: More than 255 arguments can now be passed to a function.
Zachary Ware [Mon, 28 Nov 2016 06:19:23 +0000 (00:19 -0600)]
Merge with 3.6
Zachary Ware [Mon, 28 Nov 2016 06:19:07 +0000 (00:19 -0600)]
Fix grammar in whatsnew
Łukasz Langa [Sat, 26 Nov 2016 22:04:40 +0000 (14:04 -0800)]
Merge 3.6, fix for #24142
Łukasz Langa [Sat, 26 Nov 2016 22:02:48 +0000 (14:02 -0800)]
Merge 3.5, fix for #24142
Łukasz Langa [Sat, 26 Nov 2016 22:00:39 +0000 (14:00 -0800)]
Fixes #24142: [configparser] always join multiline values to not leave the parser in an invalid state
Serhiy Storchaka [Sat, 26 Nov 2016 11:50:21 +0000 (13:50 +0200)]
Issue #28763: Use double hyphens (rendered as en-dashes) in numerical ranges
in the documentation.
Serhiy Storchaka [Sat, 26 Nov 2016 11:49:59 +0000 (13:49 +0200)]
Issue #28763: Use double hyphens (rendered as en-dashes) in numerical ranges
in the documentation.
Serhiy Storchaka [Sat, 26 Nov 2016 11:43:28 +0000 (13:43 +0200)]
Issue #28763: Use double hyphens (rendered as en-dashes) in numerical ranges
in the documentation.
Berker Peksag [Fri, 25 Nov 2016 17:10:51 +0000 (20:10 +0300)]
Merge from 3.6
Berker Peksag [Fri, 25 Nov 2016 17:10:30 +0000 (20:10 +0300)]
Merge from 3.5
Berker Peksag [Fri, 25 Nov 2016 17:10:07 +0000 (20:10 +0300)]
Add missing square bracket in typing.get_type_hints()
Berker Peksag [Fri, 25 Nov 2016 16:48:05 +0000 (19:48 +0300)]
Issue #28738: Merge from 3.6
Berker Peksag [Fri, 25 Nov 2016 16:47:43 +0000 (19:47 +0300)]
Issue #28738: Merge from 3.6
Berker Peksag [Fri, 25 Nov 2016 16:46:57 +0000 (19:46 +0300)]
Issue #28738: Document SIGBREAK as an acceptable value on Windows
Patch by Wojtek Ruszczewski.
Berker Peksag [Fri, 25 Nov 2016 14:38:13 +0000 (17:38 +0300)]
Issue #28796: Silence Sphinx warnings
WARNING: Inline emphasis start-string without end-string.
Patch by Julien Palard.
Berker Peksag [Fri, 25 Nov 2016 14:31:57 +0000 (17:31 +0300)]
Issue #28793: Merge from 3.6
Berker Peksag [Fri, 25 Nov 2016 14:31:27 +0000 (17:31 +0300)]
Issue #28793: Fix c/p error in AsyncGenerator documentation
Patch by Julien Palard.
Victor Stinner [Fri, 25 Nov 2016 10:59:52 +0000 (11:59 +0100)]
Fix a ResourceWarning in generate_opcode_h.py
Use a context manager to close the Python file. Replace also open() with
tokenize.open() to handle coding cookie if any in Lib/opcode.py.
Victor Stinner [Thu, 24 Nov 2016 22:31:59 +0000 (23:31 +0100)]
Issue #28792: Remove aliases from _bisect
Remove aliases from the C module. Always implement bisect() and insort()
aliases in bisect.py
Remove also the "# backward compatibility" command, there is no plan to
deprecate nor remove these aliases. When keys are equal, it makes sense to use
bisect.bisect() and bisect.insort().
Victor Stinner [Thu, 24 Nov 2016 21:33:49 +0000 (22:33 +0100)]
Merge 3.6
Victor Stinner [Thu, 24 Nov 2016 21:33:01 +0000 (22:33 +0100)]
Fix _PyGen_yf()
Issue #28782: Fix a bug in the implementation ``yield from`` when checking
if the next instruction is YIELD_FROM. Regression introduced by WORDCODE
(issue #26647).
Reviewed by Serhiy Storchaka and Yury Selivanov.
Victor Stinner [Thu, 24 Nov 2016 21:31:25 +0000 (22:31 +0100)]
Merge 3.6
Guido van Rossum [Thu, 24 Nov 2016 19:57:05 +0000 (11:57 -0800)]
Issue #28773: Add typing.FrozenSet docs. (Manuel Krebber) (3.6->3.7)
Guido van Rossum [Thu, 24 Nov 2016 19:56:40 +0000 (11:56 -0800)]
Issue #28773: Add typing.FrozenSet docs. (Manuel Krebber) (3.5->3.6)
Guido van Rossum [Thu, 24 Nov 2016 19:56:00 +0000 (11:56 -0800)]
Issue #28773: Add typing.FrozenSet docs. (Manuel Krebber)
Raymond Hettinger [Thu, 24 Nov 2016 18:50:57 +0000 (10:50 -0800)]
merge
Raymond Hettinger [Thu, 24 Nov 2016 18:50:34 +0000 (10:50 -0800)]
Issue #27100: Silence deprecation warning in Lib/test/test_with.py
INADA Naoki [Thu, 24 Nov 2016 08:21:47 +0000 (17:21 +0900)]
Issue #28532: Add what's new entry for python -VV option
INADA Naoki [Thu, 24 Nov 2016 08:20:40 +0000 (17:20 +0900)]
Issue #28532: Add what's new entry for python -VV option
Steve Dower [Wed, 23 Nov 2016 20:23:16 +0000 (12:23 -0800)]
Issue #28783: Embedded and nuget packages incorrect reference missing bdist_wininst command.
Steve Dower [Wed, 23 Nov 2016 19:42:35 +0000 (11:42 -0800)]
Issue #28783: Embedded and nuget packages incorrect reference missing bdist_wininst command.
Steve Dower [Wed, 23 Nov 2016 18:23:47 +0000 (10:23 -0800)]
Issue #28783: Embedded and nuget packages incorrect reference missing bdist_wininst command.