]> granicus.if.org Git - python/log
python
8 years agoIssue #26941: Merge 3.6.
Xavier de Gaye [Thu, 8 Dec 2016 11:21:53 +0000 (12:21 +0100)]
Issue #26941: Merge 3.6.

8 years agoIssue #26941: Fix test_threading that hangs on the Android armv7 qemu emulator.
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.

8 years agoIssue #26940: Merge 3.6.
Xavier de Gaye [Thu, 8 Dec 2016 10:27:27 +0000 (11:27 +0100)]
Issue #26940: Merge 3.6.

8 years agoIssue #26940: Fix test_importlib that hangs on the Android armv7 qemu emulator.
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.

8 years agoIssue #26939: Merge 3.6.
Xavier de Gaye [Thu, 8 Dec 2016 10:09:54 +0000 (11:09 +0100)]
Issue #26939: Merge 3.6.

8 years agoIssue #26939: Add the support.setswitchinterval() function to fix
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.

8 years agomerge 3.6 (#28898)
Benjamin Peterson [Thu, 8 Dec 2016 07:55:03 +0000 (23:55 -0800)]
merge 3.6 (#28898)

8 years agoguard HAVE_LONG_LONG definition to prevent redefinition (#28898)
Benjamin Peterson [Thu, 8 Dec 2016 07:54:28 +0000 (23:54 -0800)]
guard HAVE_LONG_LONG definition to prevent redefinition (#28898)

8 years agoIssue #28900: Update documentation sidebar for 3.6.0rc.
Ned Deily [Thu, 8 Dec 2016 04:38:30 +0000 (23:38 -0500)]
Issue #28900: Update documentation sidebar for 3.6.0rc.

8 years agoIssue #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.

8 years agoIssue #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.

8 years agoMerge 3.6 (issue #28635)
Yury Selivanov [Thu, 8 Dec 2016 00:20:10 +0000 (16:20 -0800)]
Merge 3.6 (issue #28635)

8 years agoIssue #28635: Drop the note that whatsnew is incomplete
Yury Selivanov [Thu, 8 Dec 2016 00:19:56 +0000 (16:19 -0800)]
Issue #28635: Drop the note that whatsnew is incomplete

8 years agoIssue #28818: Simplify lookdict functions
INADA Naoki [Wed, 7 Dec 2016 11:41:42 +0000 (20:41 +0900)]
Issue #28818: Simplify lookdict functions

8 years agoMerge from 3.6.
Serhiy Storchaka [Wed, 7 Dec 2016 11:32:09 +0000 (13:32 +0200)]
Merge from 3.6.

8 years agoMerge from 3.5.
Serhiy Storchaka [Wed, 7 Dec 2016 11:31:47 +0000 (13:31 +0200)]
Merge from 3.5.

8 years agoChange order of io.UnsupportedOperation base classes.
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.

8 years agonull merge from 3.6
INADA Naoki [Wed, 7 Dec 2016 09:38:15 +0000 (18:38 +0900)]
null merge from 3.6

8 years agoIssue #28731: Optimize _PyDict_NewPresized() to create correct size dict.
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%.

8 years agoIssue #5322: Fixed setting __new__ to a PyCFunction inside Python code.
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.

8 years agoIssue #5322: Fixed setting __new__ to a PyCFunction inside Python code.
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.

8 years agoIssue #28847: A deprecation warning is now emitted if the index file is missed
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).

8 years agoIssue #28847: dbm.dumb now supports reading read-only files and no longer
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.

8 years agoIssue #28847: dbm.dumb now supports reading read-only files and no longer
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.

8 years agoIssue #28847: dbm.dumb now supports reading read-only files and no longer
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.

8 years agonull merge from 3.6
Ned Deily [Wed, 7 Dec 2016 07:02:48 +0000 (02:02 -0500)]
null merge from 3.6

8 years agoPrepare for 3.6.1. Any further 3.6.0 release candidates and 3.6.0 final will be...
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.

8 years agomerge tag from 3.6
Ned Deily [Wed, 7 Dec 2016 00:07:19 +0000 (19:07 -0500)]
merge tag from 3.6

8 years agoAdded tag v3.6.0rc1 for changeset 29a273eee9a5
Ned Deily [Wed, 7 Dec 2016 00:04:14 +0000 (19:04 -0500)]
Added tag v3.6.0rc1 for changeset 29a273eee9a5

8 years agoVersion bump for 3.6.0rc1 v3.6.0rc1
Ned Deily [Wed, 7 Dec 2016 00:02:30 +0000 (19:02 -0500)]
Version bump for 3.6.0rc1

8 years agoUpdate pydoc topics for 3.6.0rc1
Ned Deily [Tue, 6 Dec 2016 23:53:16 +0000 (18:53 -0500)]
Update pydoc topics for 3.6.0rc1

8 years ago_PyObject_FastCallKeywords() now calls directly tp_call
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.

8 years agoRegenerate configure with autoconf 2.69.
Ned Deily [Tue, 6 Dec 2016 22:33:19 +0000 (17:33 -0500)]
Regenerate configure with autoconf 2.69.

8 years agoRegenerate configure with autoconf 2.69.
Ned Deily [Tue, 6 Dec 2016 22:31:32 +0000 (17:31 -0500)]
Regenerate configure with autoconf 2.69.

8 years agoIssue #28835: merge from 3.6
Ned Deily [Tue, 6 Dec 2016 22:13:58 +0000 (17:13 -0500)]
Issue #28835: merge from 3.6

8 years agoIssue #28835: Tidy previous showwarning changes based on review comments.
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.

8 years agoMerge from 3.6
Ned Deily [Tue, 6 Dec 2016 22:02:03 +0000 (17:02 -0500)]
Merge from 3.6

8 years agoUpdate the Mac installer README file for 3.6.0.
Ned Deily [Tue, 6 Dec 2016 22:00:44 +0000 (17:00 -0500)]
Update the Mac installer README file for 3.6.0.

8 years agoFix typo in a comment of abstract.c
Victor Stinner [Tue, 6 Dec 2016 17:49:15 +0000 (18:49 +0100)]
Fix typo in a comment of abstract.c

8 years agoUse _PyObject_CallNoArg()
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)

8 years agoUse _PyObject_CallNoArg()
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)

8 years agoIssue #27030: Unknown escapes in re.sub() replacement template are allowed
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.

8 years agoIssue #28838: Fix weird indentation of abstract.h
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.

8 years agoMerge documentation for issue #27030 from 3.6.
Serhiy Storchaka [Tue, 6 Dec 2016 17:25:19 +0000 (19:25 +0200)]
Merge documentation for issue #27030 from 3.6.

8 years agoUniformize argument names of "call" functions
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)

8 years agoFixed misplaced comment.
Serhiy Storchaka [Tue, 6 Dec 2016 11:46:17 +0000 (13:46 +0200)]
Fixed misplaced comment.

8 years agoFixed misplaced comment.
Serhiy Storchaka [Tue, 6 Dec 2016 11:45:44 +0000 (13:45 +0200)]
Fixed misplaced comment.

8 years agoFixed misplaced comment.
Serhiy Storchaka [Tue, 6 Dec 2016 11:43:46 +0000 (13:43 +0200)]
Fixed misplaced comment.

8 years agoMerge 3.6
Victor Stinner [Tue, 6 Dec 2016 10:02:54 +0000 (11:02 +0100)]
Merge 3.6

8 years agowarnings: Fix the issue number
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).

8 years agoMerge 3.6
Victor Stinner [Tue, 6 Dec 2016 09:59:54 +0000 (10:59 +0100)]
Merge 3.6

8 years agocatch_warnings() calls showwarning() if overriden
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.

8 years agomerge 3.6
Benjamin Peterson [Tue, 6 Dec 2016 06:31:20 +0000 (22:31 -0800)]
merge 3.6

8 years agomerge 3.5
Benjamin Peterson [Tue, 6 Dec 2016 06:31:12 +0000 (22:31 -0800)]
merge 3.5

8 years agorm unused import
Benjamin Peterson [Tue, 6 Dec 2016 06:30:55 +0000 (22:30 -0800)]
rm unused import

8 years agoFixed merge error in Misc/NEWS for issue #23722.
Serhiy Storchaka [Mon, 5 Dec 2016 22:24:19 +0000 (00:24 +0200)]
Fixed merge error in Misc/NEWS for issue #23722.

8 years agoIssue #28808: PyUnicode_CompareWithASCIIString() now never raises exceptions.
Serhiy Storchaka [Mon, 5 Dec 2016 22:20:26 +0000 (00:20 +0200)]
Issue #28808: PyUnicode_CompareWithASCIIString() now never raises exceptions.

8 years agoIssue #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.

8 years agoIssue #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.

8 years agoUse directly _PyObject_GenericSetAttrWithDict()
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().

8 years agoIssue #28152: Fix -Wunreachable-code warning on clang
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.

8 years agoIssue #28152: Fix -Wunreachable-code warning on clang
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.

8 years agoIssue #28152: Fix -Wunreachable-code warnings on 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.

8 years agoIssue #28858: Remove _PyObject_CallArg1() macro
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.

8 years agoMerge #23722 from 3.6
Nick Coghlan [Mon, 5 Dec 2016 06:59:22 +0000 (16:59 +1000)]
Merge #23722 from 3.6

8 years agoIssue #23722: improve __classcell__ compatibility
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.

8 years agoBacked out changeset b9c9691c72c5
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().

8 years agomerge
Raymond Hettinger [Sun, 4 Dec 2016 19:00:57 +0000 (11:00 -0800)]
merge

8 years agoNeaten-up and extend the examples in the random module docs.
Raymond Hettinger [Sun, 4 Dec 2016 19:00:34 +0000 (11:00 -0800)]
Neaten-up and extend the examples in the random module docs.

8 years agoFixed mismatching title overline.
Serhiy Storchaka [Sun, 4 Dec 2016 13:43:57 +0000 (15:43 +0200)]
Fixed mismatching title overline.

8 years agoFixed mismatching title overline.
Serhiy Storchaka [Sun, 4 Dec 2016 13:43:37 +0000 (15:43 +0200)]
Fixed mismatching title overline.

8 years agoFixed mismatching title overline.
Serhiy Storchaka [Sun, 4 Dec 2016 13:42:13 +0000 (15:42 +0200)]
Fixed mismatching title overline.

8 years agoFixed double hyphens that are rendered to literal en-dashes in the documenation.
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.

8 years agoFixed 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.

8 years agoFixed 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.

8 years agoNull merge with 3.6
Steve Dower [Sat, 3 Dec 2016 23:57:15 +0000 (15:57 -0800)]
Null merge with 3.6

8 years agoRevert unintended merge
Steve Dower [Sat, 3 Dec 2016 23:57:00 +0000 (15:57 -0800)]
Revert unintended merge

8 years agoRevert unintended merge
Steve Dower [Sat, 3 Dec 2016 20:12:23 +0000 (12:12 -0800)]
Revert unintended merge

8 years agoIssue #28846: Various installer fixes
Steve Dower [Sat, 3 Dec 2016 20:11:25 +0000 (12:11 -0800)]
Issue #28846: Various installer fixes

8 years agoEnsures intermediate directory is created before using it
Steve Dower [Sat, 3 Dec 2016 19:56:44 +0000 (11:56 -0800)]
Ensures intermediate directory is created before using it

8 years agoEnsures intermediate directory is created before accessing it.
Steve Dower [Sat, 3 Dec 2016 19:56:20 +0000 (11:56 -0800)]
Ensures intermediate directory is created before accessing it.

8 years agoIssue #28846: Various installer fixes
Steve Dower [Sat, 3 Dec 2016 19:24:02 +0000 (11:24 -0800)]
Issue #28846: Various installer fixes

8 years agoIssue #28846: Various installer fixes
Steve Dower [Sat, 3 Dec 2016 19:18:53 +0000 (11:18 -0800)]
Issue #28846: Various installer fixes

8 years agoMerge heads
Serhiy Storchaka [Fri, 2 Dec 2016 21:34:24 +0000 (23:34 +0200)]
Merge heads

8 years agoIssue #21818: Fixed references to classes that have names matching with module
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.

8 years agoIssue #21818: Fixed references to classes that have names matching with module
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.

8 years agoIssue #21818: Fixed references to classes that have names matching with module
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.

8 years agoMerge from 3.6.
Serhiy Storchaka [Fri, 2 Dec 2016 19:38:46 +0000 (21:38 +0200)]
Merge from 3.6.

8 years agoNull merge
Serhiy Storchaka [Fri, 2 Dec 2016 19:33:05 +0000 (21:33 +0200)]
Null merge

8 years agoIssue #27172: Undeprecate inspect.getfullargspec()
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.

8 years agoIssue #5322: Fixed setting __new__ to a PyCFunction inside Python code.
Serhiy Storchaka [Fri, 2 Dec 2016 06:42:43 +0000 (08:42 +0200)]
Issue #5322: Fixed setting __new__ to a PyCFunction inside Python code.
Original patch by Andreas Stührk.

8 years agofix _PyObject_CallArg1 compiler warnings (closes #28855)
Benjamin Peterson [Fri, 2 Dec 2016 06:01:32 +0000 (22:01 -0800)]
fix _PyObject_CallArg1 compiler warnings (closes #28855)

8 years agoAdd sys.getandroidapilevel()
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.

8 years ago - Import latest config.sub config.guess files
doko@ubuntu.com [Thu, 1 Dec 2016 20:42:56 +0000 (21:42 +0100)]
 - Import latest config.sub config.guess files

8 years agoMerge 3.6 (issue #28843)
Yury Selivanov [Thu, 1 Dec 2016 16:37:47 +0000 (11:37 -0500)]
Merge 3.6 (issue #28843)

8 years agoIssue #28843: Fix asyncio C Task to handle exceptions __traceback__.
Yury Selivanov [Thu, 1 Dec 2016 16:36:22 +0000 (11:36 -0500)]
Issue #28843: Fix asyncio C Task to handle exceptions __traceback__.

8 years agoReplace PyObject_CallFunction() with fastcall
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.

8 years agoWITH_CLEANUP_START uses fastcall
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().

8 years agoReplace PyObject_CallFunctionObjArgs() with 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.

8 years agoBacked out changeset 7efddbf1aa70
Victor Stinner [Wed, 30 Nov 2016 11:10:54 +0000 (12:10 +0100)]
Backed out changeset 7efddbf1aa70