]>
granicus.if.org Git - python/log
Victor Stinner [Thu, 8 Dec 2016 23:41:46 +0000 (00:41 +0100)]
Use _PyObject_FastCallVa() in type slots
Issue #28915: Replace Py_VaBuildValue()+PyObject_Call() with
_PyObject_FastCallVa() to avoid the creation of temporary tuple.
Victor Stinner [Thu, 8 Dec 2016 23:40:33 +0000 (00:40 +0100)]
Add _PyObject_VaCallFunctionObjArgs() private function
Issue #28915: Similar to _PyObject_CallFunctionObjArgs() but use va_list to
pass arguments.
Victor Stinner [Thu, 8 Dec 2016 23:38:53 +0000 (00:38 +0100)]
time_strptime() uses PyObject_Call()
Issue #28915: Use PyObject_Call() to pass a tuple of positional arguments,
instead of relying on _PyObject_CallMethodId() weird behaviour to unpack the
tuple.
Victor Stinner [Thu, 8 Dec 2016 23:38:16 +0000 (00:38 +0100)]
build_struct_time() uses Py_BuildValue()
Issue #28915: Avoid calling _PyObject_CallMethodId() with "(...)" format to
avoid the creation of a temporary tuple: use Py_BuildValue() with
_PyObject_CallMethodIdObjArgs().
Victor Stinner [Thu, 8 Dec 2016 23:36:19 +0000 (00:36 +0100)]
Use _PyObject_CallMethodIdObjArgs()
Issue #28915: Replace _PyObject_CallMethodId() with
_PyObject_CallMethodIdObjArgs() when the format string only use the format 'O'
for objects, like "(O)".
_PyObject_CallMethodIdObjArgs() avoids the code to parse a format string and
avoids the creation of a temporary tuple.
Victor Stinner [Thu, 8 Dec 2016 23:33:39 +0000 (00:33 +0100)]
Don't parenthesis in _PyObject_CallMethodId() format
Issue #28915: Without parenthesis, _PyObject_CallMethodId() avoids the creation
a temporary tuple, and so is more efficient.
Victor Stinner [Thu, 8 Dec 2016 23:31:47 +0000 (00:31 +0100)]
_PyObject_CallFunctionVa() uses fast call
Issue #28915: Use _Py_VaBuildStack() to build a C array of PyObject* and then
use _PyObject_FastCall().
The function has a special case if the stack only contains one parameter and
the parameter is a tuple: "unpack" the tuple of arguments in this case.
Victor Stinner [Thu, 8 Dec 2016 23:29:49 +0000 (00:29 +0100)]
Add _Py_VaBuildStack() function
Issue #28915: Similar to Py_VaBuildValue(), but work on a C array of PyObject*,
instead of creating a tuple.
Victor Stinner [Thu, 8 Dec 2016 23:27:22 +0000 (00:27 +0100)]
modsupport: replace int with Py_ssize_t
Issue #28915: Py_ssize_t type is better for indexes. The compiler might emit
more efficient code for i++. Py_ssize_t is the type of a PyTuple index for
example.
Replace also "int endchar" with "char endchar".
Victor Stinner [Thu, 8 Dec 2016 23:24:47 +0000 (00:24 +0100)]
modsupport: replace int with Py_ssize_t
Issue #28915.
Victor Stinner [Thu, 8 Dec 2016 23:22:56 +0000 (00:22 +0100)]
Add _PyObject_CallFunctionVa() helper
Issue #28915: Add _PyObject_CallFunctionVa() helper to factorize code of
functions:
* PyObject_CallFunction()
* _PyObject_CallFunction_SizeT()
* callmethod()
Victor Stinner [Thu, 8 Dec 2016 23:21:55 +0000 (00:21 +0100)]
Add _PyObject_FastCallVa() helper
Issue #28915: Add _PyObject_FastCallVa() helper to factorize code of functions:
* PyObject_CallFunctionObjArgs()
* PyObject_CallMethodObjArgs()
* _PyObject_CallMethodIdObjArgs()
Inline objargs_mkstack() into _PyObject_FastCallVa(), remove
objargs_mkstack().
Steve Dower [Thu, 8 Dec 2016 17:01:39 +0000 (09:01 -0800)]
Issue #28896: Deprecate WindowsRegistryFinder
Victor Stinner [Thu, 8 Dec 2016 16:17:17 +0000 (17:17 +0100)]
Null merge 3.6
Xavier de Gaye [Thu, 8 Dec 2016 11:21:53 +0000 (12:21 +0100)]
Issue #26941: Merge 3.6.
Xavier de Gaye [Thu, 8 Dec 2016 11:21:00 +0000 (12:21 +0100)]
Issue #26941: Fix test_threading that hangs on the Android armv7 qemu emulator.
Xavier de Gaye [Thu, 8 Dec 2016 10:27:27 +0000 (11:27 +0100)]
Issue #26940: Merge 3.6.
Xavier de Gaye [Thu, 8 Dec 2016 10:26:18 +0000 (11:26 +0100)]
Issue #26940: Fix test_importlib that hangs on the Android armv7 qemu emulator.
Xavier de Gaye [Thu, 8 Dec 2016 10:09:54 +0000 (11:09 +0100)]
Issue #26939: Merge 3.6.
Xavier de Gaye [Thu, 8 Dec 2016 10:06:56 +0000 (11:06 +0100)]
Issue #26939: Add the support.setswitchinterval() function to fix
test_functools hanging on the Android armv7 qemu emulator.
Benjamin Peterson [Thu, 8 Dec 2016 07:55:03 +0000 (23:55 -0800)]
merge 3.6 (#28898)
Benjamin Peterson [Thu, 8 Dec 2016 07:54:28 +0000 (23:54 -0800)]
guard HAVE_LONG_LONG definition to prevent redefinition (#28898)
Ned Deily [Thu, 8 Dec 2016 04:38:30 +0000 (23:38 -0500)]
Issue #28900: Update documentation sidebar for 3.6.0rc.
Ned Deily [Thu, 8 Dec 2016 04:37:12 +0000 (23:37 -0500)]
Issue #28900: Update documentation sidebar for 3.6.0rc.
Ned Deily [Thu, 8 Dec 2016 04:34:49 +0000 (23:34 -0500)]
Issue #28900: Update documentation sidebar for 3.6.0rc.
Yury Selivanov [Thu, 8 Dec 2016 00:20:10 +0000 (16:20 -0800)]
Merge 3.6 (issue #28635)
Yury Selivanov [Thu, 8 Dec 2016 00:19:56 +0000 (16:19 -0800)]
Issue #28635: Drop the note that whatsnew is incomplete
Steve Dower [Wed, 7 Dec 2016 21:02:27 +0000 (13:02 -0800)]
Issue #28896: Deprecate WindowsRegistryFinder
INADA Naoki [Wed, 7 Dec 2016 11:41:42 +0000 (20:41 +0900)]
Issue #28818: Simplify lookdict functions
Serhiy Storchaka [Wed, 7 Dec 2016 11:32:09 +0000 (13:32 +0200)]
Merge from 3.6.
Serhiy Storchaka [Wed, 7 Dec 2016 11:31:47 +0000 (13:31 +0200)]
Merge from 3.5.
Serhiy Storchaka [Wed, 7 Dec 2016 11:31:20 +0000 (13:31 +0200)]
Change order of io.UnsupportedOperation base classes.
This makes tests passing after changes by issue #5322.
INADA Naoki [Wed, 7 Dec 2016 09:38:15 +0000 (18:38 +0900)]
null merge from 3.6
INADA Naoki [Wed, 7 Dec 2016 09:34:44 +0000 (18:34 +0900)]
Issue #28731: Optimize _PyDict_NewPresized() to create correct size dict.
Improve speed of dict literal with constant keys up to 30%.
Serhiy Storchaka [Wed, 7 Dec 2016 09:27:55 +0000 (11:27 +0200)]
Issue #5322: Fixed setting __new__ to a PyCFunction inside Python code.
Original patch by Andreas Stührk.
Serhiy Storchaka [Wed, 7 Dec 2016 09:26:49 +0000 (11:26 +0200)]
Issue #5322: Fixed setting __new__ to a PyCFunction inside Python code.
Original patch by Andreas Stührk.
Serhiy Storchaka [Wed, 7 Dec 2016 09:11:12 +0000 (11:11 +0200)]
Issue #28847: A deprecation warning is now emitted if the index file is missed
and recreated in the 'r' and 'w' modes (will be an error in future Python
releases).
Serhiy Storchaka [Wed, 7 Dec 2016 09:02:18 +0000 (11:02 +0200)]
Issue #28847: dbm.dumb now supports reading read-only files and no longer
writes the index file when it is not changed.
Serhiy Storchaka [Wed, 7 Dec 2016 09:00:06 +0000 (11:00 +0200)]
Issue #28847: dbm.dumb now supports reading read-only files and no longer
writes the index file when it is not changed.
Serhiy Storchaka [Wed, 7 Dec 2016 08:56:39 +0000 (10:56 +0200)]
Issue #28847: dbm.dumb now supports reading read-only files and no longer
writes the index file when it is not changed.
Ned Deily [Wed, 7 Dec 2016 07:02:48 +0000 (02:02 -0500)]
null merge from 3.6
Ned Deily [Wed, 7 Dec 2016 06:59:27 +0000 (01:59 -0500)]
Prepare for 3.6.1. Any further 3.6.0 release candidates and 3.6.0 final will be cherrypicked and merged here.
Ned Deily [Wed, 7 Dec 2016 00:07:19 +0000 (19:07 -0500)]
merge tag from 3.6
Ned Deily [Wed, 7 Dec 2016 00:04:14 +0000 (19:04 -0500)]
Added tag v3.6.0rc1 for changeset
29a273eee9a5
Ned Deily [Wed, 7 Dec 2016 00:02:30 +0000 (19:02 -0500)]
Version bump for 3.6.0rc1
Ned Deily [Tue, 6 Dec 2016 23:53:16 +0000 (18:53 -0500)]
Update pydoc topics for 3.6.0rc1
Victor Stinner [Tue, 6 Dec 2016 23:37:38 +0000 (00:37 +0100)]
_PyObject_FastCallKeywords() now calls directly tp_call
_PyObject_FastCallKeywords() doesn't call _PyObject_FastCallDict() anymore:
call directly tp_call.
Ned Deily [Tue, 6 Dec 2016 22:33:19 +0000 (17:33 -0500)]
Regenerate configure with autoconf 2.69.
Ned Deily [Tue, 6 Dec 2016 22:31:32 +0000 (17:31 -0500)]
Regenerate configure with autoconf 2.69.
Ned Deily [Tue, 6 Dec 2016 22:13:58 +0000 (17:13 -0500)]
Issue #28835: merge from 3.6
Ned Deily [Tue, 6 Dec 2016 22:12:47 +0000 (17:12 -0500)]
Issue #28835: Tidy previous showwarning changes based on review comments.
Patch by Serhiy Storchaka.
Ned Deily [Tue, 6 Dec 2016 22:02:03 +0000 (17:02 -0500)]
Merge from 3.6
Ned Deily [Tue, 6 Dec 2016 22:00:44 +0000 (17:00 -0500)]
Update the Mac installer README file for 3.6.0.
Victor Stinner [Tue, 6 Dec 2016 17:49:15 +0000 (18:49 +0100)]
Fix typo in a comment of abstract.c
Victor Stinner [Tue, 6 Dec 2016 17:46:19 +0000 (18:46 +0100)]
Use _PyObject_CallNoArg()
Replace:
PyObject_CallFunctionObjArgs(callable, NULL)
with:
_PyObject_CallNoArg(callable)
Victor Stinner [Tue, 6 Dec 2016 17:45:50 +0000 (18:45 +0100)]
Use _PyObject_CallNoArg()
Replace:
PyObject_CallObject(callable, NULL)
with:
_PyObject_CallNoArg(callable)
Serhiy Storchaka [Tue, 6 Dec 2016 17:15:29 +0000 (19:15 +0200)]
Issue #27030: Unknown escapes in re.sub() replacement template are allowed
again. But they still are deprecated and will be disabled in 3.7.
Victor Stinner [Tue, 6 Dec 2016 15:55:39 +0000 (16:55 +0100)]
Issue #28838: Fix weird indentation of abstract.h
Remove most indentation to move code at the left.
Serhiy Storchaka [Tue, 6 Dec 2016 17:25:19 +0000 (19:25 +0200)]
Merge documentation for issue #27030 from 3.6.
Victor Stinner [Tue, 6 Dec 2016 15:27:24 +0000 (16:27 +0100)]
Uniformize argument names of "call" functions
Issue #28838: Rename parameters of the "calls" functions of the Python C API.
* Rename 'callable_object' and 'func' to 'callable': any Python callable object
is accepted, not only Python functions
* Rename 'method' and 'nameid' to 'name' (method name)
* Rename 'o' to 'obj'
* Move, fix and update documentation of PyObject_CallXXX() functions
in abstract.h
* Update also the documentaton of the C API (update parameter names)
Serhiy Storchaka [Tue, 6 Dec 2016 11:46:17 +0000 (13:46 +0200)]
Fixed misplaced comment.
Serhiy Storchaka [Tue, 6 Dec 2016 11:45:44 +0000 (13:45 +0200)]
Fixed misplaced comment.
Serhiy Storchaka [Tue, 6 Dec 2016 11:43:46 +0000 (13:43 +0200)]
Fixed misplaced comment.
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.