Steve Dower [Wed, 14 Dec 2016 19:22:14 +0000 (11:22 -0800)]
Fixes maximum usable length of buffer for formatting time zone in localtime().
Steve Dower [Wed, 14 Dec 2016 19:22:05 +0000 (11:22 -0800)]
Fixes maximum usable length of buffer for formatting time zone in localtime().
Serhiy Storchaka [Wed, 14 Dec 2016 17:56:53 +0000 (19:56 +0200)]
Merge from 3.6.
Serhiy Storchaka [Wed, 14 Dec 2016 17:54:38 +0000 (19:54 +0200)]
Merge from 3.6.
Serhiy Storchaka [Wed, 14 Dec 2016 17:52:17 +0000 (19:52 +0200)]
Revert changeset
1f31bf3f76f5 (issue5322) except tests.
Xavier de Gaye [Wed, 14 Dec 2016 10:54:49 +0000 (11:54 +0100)]
Issue #28683: Merge 3.6.
Xavier de Gaye [Wed, 14 Dec 2016 10:52:28 +0000 (11:52 +0100)]
Issue #28683: Fix the tests that bind() a unix socket and raise PermissionError
on Android for a non-root user.
Xavier de Gaye [Wed, 14 Dec 2016 10:16:06 +0000 (11:16 +0100)]
Issue #20211: Merge 3.6.
Xavier de Gaye [Wed, 14 Dec 2016 10:14:33 +0000 (11:14 +0100)]
Issue #20211: Do not add the directory for installing C header files and
the directory for installing object code libraries to the cross compilation
search paths.
Yury Selivanov [Wed, 14 Dec 2016 00:03:51 +0000 (19:03 -0500)]
Issue #26110: Add LOAD_METHOD/CALL_METHOD opcodes.
Special thanks to INADA Naoki for pushing the patch through
the last mile, Serhiy Storchaka for reviewing the code, and to
Victor Stinner for suggesting the idea (originally implemented
in the PyPy project).
Steve Dower [Tue, 13 Dec 2016 17:06:55 +0000 (09:06 -0800)]
Issue #26071: Fixes preprocessor definition and rebuilds wininst-14.0[-amd64].exe
Steve Dower [Tue, 13 Dec 2016 17:06:42 +0000 (09:06 -0800)]
Issue #26071: Fixes preprocessor definition and rebuilds wininst-14.0[-amd64].exe
Steve Dower [Tue, 13 Dec 2016 17:06:24 +0000 (09:06 -0800)]
Issue #26071: Fixes preprocessor definition and rebuilds wininst-14.0[-amd64].exe
Xavier de Gaye [Tue, 13 Dec 2016 15:32:21 +0000 (16:32 +0100)]
Issue #16255: subrocess.Popen uses /system/bin/sh on Android as the shell,
instead of /bin/sh.
Xavier de Gaye [Tue, 13 Dec 2016 15:05:15 +0000 (16:05 +0100)]
Issue #28190: Merge 3.6.
Xavier de Gaye [Tue, 13 Dec 2016 15:04:14 +0000 (16:04 +0100)]
Issue #28190: Cross compiling the _curses module does not use anymore
/usr/include/ncursesw as a headers search path.
Xavier de Gaye [Tue, 13 Dec 2016 09:03:34 +0000 (10:03 +0100)]
Issue #28759: Merge 3.6.
Xavier de Gaye [Tue, 13 Dec 2016 09:00:01 +0000 (10:00 +0100)]
Issue #28759: Fix the tests that fail with PermissionError when run as
a non-root user on Android where access rights are controled by SELinux MAC.
Xavier de Gaye [Tue, 13 Dec 2016 08:22:01 +0000 (09:22 +0100)]
Issue #26936: Fix the test_socket failures on Android - getservbyname(),
getservbyport() and getaddrinfo() are broken on some Android API levels.
Xavier de Gaye [Tue, 13 Dec 2016 08:12:49 +0000 (09:12 +0100)]
Issue #26856: Merge 3.6.
Xavier de Gaye [Tue, 13 Dec 2016 08:11:38 +0000 (09:11 +0100)]
Issue #26856: Fix the tests assuming that the pwd module has getpwall() and
assuming some invariants about uids that are not valid for Android.
Yury Selivanov [Mon, 12 Dec 2016 21:45:21 +0000 (16:45 -0500)]
Merge 3.6 (issue #28089)
Yury Selivanov [Mon, 12 Dec 2016 21:44:58 +0000 (16:44 -0500)]
Issue #28089: Document TCP_NODELAY in asyncio
Initial patch by Mariatta Wijaya.
Steve Dower [Mon, 12 Dec 2016 19:19:03 +0000 (11:19 -0800)]
Issue #28896: Disable WindowsRegistryFinder by default.
Steve Dower [Mon, 12 Dec 2016 19:17:59 +0000 (11:17 -0800)]
Issue #28896: Disable WindowsRegistryFinder by default.
Xavier de Gaye [Mon, 12 Dec 2016 08:56:55 +0000 (09:56 +0100)]
Issue #28764: Merge 3.6.
Xavier de Gaye [Mon, 12 Dec 2016 08:55:57 +0000 (09:55 +0100)]
Issue #28764: Fix a test_mailbox failure on Android API 24 when run as a non-root user.
Steve Dower [Sun, 11 Dec 2016 22:48:44 +0000 (14:48 -0800)]
Issue #28783: Replaces bdist_wininst in nuget packages with stub
Steve Dower [Sun, 11 Dec 2016 22:48:32 +0000 (14:48 -0800)]
Issue #28783: Replaces bdist_wininst in nuget packages with stub
Steve Dower [Sun, 11 Dec 2016 22:35:07 +0000 (14:35 -0800)]
Issue #28783: Replaces bdist_wininst in nuget packages with stub
Serhiy Storchaka [Sun, 11 Dec 2016 17:39:36 +0000 (19:39 +0200)]
Issue #28739: f-string expressions no longer accepted as docstrings and
by ast.literal_eval() even if they do not include subexpressions.
Serhiy Storchaka [Sun, 11 Dec 2016 17:37:19 +0000 (19:37 +0200)]
Issue #28739: f-string expressions no longer accepted as docstrings and
by ast.literal_eval() even if they do not include subexpressions.
Serhiy Storchaka [Sun, 11 Dec 2016 12:44:21 +0000 (14:44 +0200)]
Issue #28512: Fixed setting the offset attribute of SyntaxError by
PyErr_SyntaxLocationEx() and PyErr_SyntaxLocationObject().
Serhiy Storchaka [Sun, 11 Dec 2016 12:43:18 +0000 (14:43 +0200)]
Issue #28512: Fixed setting the offset attribute of SyntaxError by
PyErr_SyntaxLocationEx() and PyErr_SyntaxLocationObject().
Serhiy Storchaka [Sun, 11 Dec 2016 12:39:01 +0000 (14:39 +0200)]
Issue #28512: Fixed setting the offset attribute of SyntaxError by
PyErr_SyntaxLocationEx() and PyErr_SyntaxLocationObject().
Martin Panter [Sun, 11 Dec 2016 03:17:06 +0000 (03:17 +0000)]
Issues #28916, #26483: Merge stdtypes.rst from 3.6
Martin Panter [Sun, 11 Dec 2016 02:31:32 +0000 (02:31 +0000)]
Issues #28916, #26483: Merge stdtypes.rst from 3.5
Martin Panter [Sun, 11 Dec 2016 01:08:25 +0000 (01:08 +0000)]
Issue #26483: Clarify str.isdecimal() and isdigit()
Patch by Julien Palard.
Martin Panter [Sun, 11 Dec 2016 01:07:29 +0000 (01:07 +0000)]
Issue #28916: Correct description of %o and %x alternative forms
* In Python 3, the specifier is 0o
* There is no special case for leading zeros
* Remove duplicate tests
* Clarify other existing tests and comments
Brett Cannon [Sat, 10 Dec 2016 22:15:22 +0000 (14:15 -0800)]
Merge for issue #28424
Brett Cannon [Sat, 10 Dec 2016 22:14:47 +0000 (14:14 -0800)]
Merge for issue #28424
Brett Cannon [Sat, 10 Dec 2016 22:13:38 +0000 (14:13 -0800)]
Issue #28424: Document pkgutil.get_data() doesn't work with namespace packages.
Thanks to Douglas Greiman for the patch.
Xavier de Gaye [Sat, 10 Dec 2016 16:34:46 +0000 (17:34 +0100)]
Issue #28849: Merge 3.6.
Xavier de Gaye [Sat, 10 Dec 2016 16:31:28 +0000 (17:31 +0100)]
Issue #28849: Do not define sys.implementation._multiarch on Android.
Antoine Pitrou [Sat, 10 Dec 2016 16:19:21 +0000 (17:19 +0100)]
Issue #28779: multiprocessing.set_forkserver_preload() would crash the forkserver process if a preloaded module instantiated some multiprocessing objects such as locks.
Antoine Pitrou [Sat, 10 Dec 2016 16:16:17 +0000 (17:16 +0100)]
Issue #28779: multiprocessing.set_forkserver_preload() would crash the forkserver process if a preloaded module instantiated some multiprocessing objects such as locks.
Antoine Pitrou [Sat, 10 Dec 2016 16:13:16 +0000 (17:13 +0100)]
Issue #28779: multiprocessing.set_forkserver_preload() would crash the forkserver process if a preloaded module instantiated some multiprocessing objects such as locks.
Xavier de Gaye [Sat, 10 Dec 2016 15:48:07 +0000 (16:48 +0100)]
Issue #28918: Merge 3.6.
Xavier de Gaye [Sat, 10 Dec 2016 15:45:53 +0000 (16:45 +0100)]
Issue #28918: Fix the cross compilation of xxlimited when Python
has been built with Py_DEBUG defined.
Martin Panter [Sat, 10 Dec 2016 05:57:49 +0000 (05:57 +0000)]
Issue #28771: Merge C API doc fix from 3.6
Martin Panter [Sat, 10 Dec 2016 05:57:38 +0000 (05:57 +0000)]
Issue #28771: Merge C API doc fix from 3.5
Martin Panter [Sat, 10 Dec 2016 05:56:13 +0000 (05:56 +0000)]
Issue #28771: Update tp_get/setattr signature documentation
Martin Panter [Sat, 10 Dec 2016 05:39:12 +0000 (05:39 +0000)]
Issue #28820: Merge typo fixes from 3.6
Martin Panter [Sat, 10 Dec 2016 05:32:55 +0000 (05:32 +0000)]
Fix typos in comment and documentation
Martin Panter [Sat, 10 Dec 2016 05:38:25 +0000 (05:38 +0000)]
Issue #28820: Merge spelling fixes from 3.5
Martin Panter [Sat, 10 Dec 2016 05:12:56 +0000 (05:12 +0000)]
Issue #28820: Fix spelling of “practice” as a noun
Martin Panter [Sat, 10 Dec 2016 04:22:27 +0000 (04:22 +0000)]
Issue #28755: Merge Arg Clinic howto from 3.6
Martin Panter [Sat, 10 Dec 2016 04:14:02 +0000 (04:14 +0000)]
Issues #28755, #28753: Merge Arg Clinic howto from 3.5
Martin Panter [Sat, 10 Dec 2016 04:10:45 +0000 (04:10 +0000)]
Issue #28755: Improve syntax highlighting in Arg Clinic howto
Martin Panter [Sat, 10 Dec 2016 03:49:12 +0000 (03:49 +0000)]
Issue 28753: Argument Clinic howto docfix, courtesy Julien Palard.
Victor Stinner [Fri, 9 Dec 2016 17:51:13 +0000 (18:51 +0100)]
Backed out changeset
99c34e47348b
The change broke test_gdb.
Victor Stinner [Fri, 9 Dec 2016 17:08:18 +0000 (18:08 +0100)]
Issue #20185: Convert _warnings.warn() to Argument Clinic
Fix warn_explicit(): interpret source=None as source=NULL.
Victor Stinner [Fri, 9 Dec 2016 16:12:17 +0000 (17:12 +0100)]
Inline PyEval_EvalFrameEx() in callers
The PEP 523 modified PyEval_EvalFrameEx(): it's now an indirection to
interp->eval_frame().
Inline the call in performance critical code. Leave PyEval_EvalFrame()
unchanged, this function is only kept for backward compatibility.
Victor Stinner [Fri, 9 Dec 2016 16:08:59 +0000 (17:08 +0100)]
Remove useless variable initialization
Don't initialize variables which are not used before they are assigned.
Victor Stinner [Fri, 9 Dec 2016 16:06:43 +0000 (17:06 +0100)]
Initialize variables to fix compiler warnings
Warnings seen on the "AMD64 Debian PGO 3.x" buildbot. Warnings are false
positive, but variable initialization should not harm performances.
Victor Stinner [Fri, 9 Dec 2016 15:22:32 +0000 (16:22 +0100)]
Use PyObject_CallFunctionObjArgs()
Issue #28915: Replace PyObject_CallFunction() with
PyObject_CallFunctionObjArgs() when the format string was only made of "O"
formats, PyObject* arguments.
PyObject_CallFunctionObjArgs() avoids the creation of a temporary tuple and
doesn't have to parse a format string.
Victor Stinner [Fri, 9 Dec 2016 15:09:30 +0000 (16:09 +0100)]
Use _PyObject_CallMethodIdObjArgs()
Issue #28915: Replace _PyObject_CallMethodId() with
_PyObject_CallMethodIdObjArgs() in various modules when the format string was
only made of "O" formats, PyObject* arguments.
_PyObject_CallMethodIdObjArgs() avoids the creation of a temporary tuple and
doesn't have to parse a format string.
Victor Stinner [Fri, 9 Dec 2016 14:39:28 +0000 (15:39 +0100)]
Use _PyObject_CallMethodIdObjArgs() in _io
Issue #28915: Replace _PyObject_CallMethodId() with
_PyObject_CallMethodIdObjArgs() when the format string was only made of "O"
formats, PyObject* arguments.
_PyObject_CallMethodIdObjArgs() avoids the creation of a temporary tuple and
doesn't have to parse a format string.
Victor Stinner [Fri, 9 Dec 2016 14:24:31 +0000 (15:24 +0100)]
Use _PyObject_CallMethodIdObjArgs() in _datetime
Issue #28915: Replace _PyObject_CallMethodId() with
_PyObject_CallMethodIdObjArgs() when the format string was only made of "O"
formats, PyObject* arguments.
_PyObject_CallMethodIdObjArgs() avoids the creation of a temporary tuple and
doesn't have to parse a format string.
Victor Stinner [Fri, 9 Dec 2016 14:26:00 +0000 (15:26 +0100)]
Use _PyObject_CallMethodIdObjArgs() in _elementtree
Issue #28915: Replace _PyObject_CallMethodId() with
_PyObject_CallMethodIdObjArgs() when the format string was only made of "O"
formats, PyObject* arguments.
_PyObject_CallMethodIdObjArgs() avoids the creation of a temporary tuple and
doesn't have to parse a format string.
Victor Stinner [Fri, 9 Dec 2016 14:18:31 +0000 (15:18 +0100)]
Use _PyObject_CallMethodIdObjArgs() in _ctypes
Issue #28915: Replace _PyObject_CallMethodId() with
_PyObject_CallMethodIdObjArgs() in unpickle(). _PyObject_CallMethodIdObjArgs()
avoids the creation of a temporary tuple and doesn't have to parse a format
string.
Replace _PyObject_CallMethodId() with _PyObject_GetAttrId()+PyObject_Call() for
the second call since it requires to "unpack" a tuple.
Add also a check in the type of the second parameter (state): it must be a
tuple.
Victor Stinner [Fri, 9 Dec 2016 14:35:40 +0000 (15:35 +0100)]
Fix refleak introduced in change
032cbdb596fe
Issue #28915.
Victor Stinner [Fri, 9 Dec 2016 15:05:51 +0000 (16:05 +0100)]
regrtest --fromfile now accepts a list of filenames
Victor Stinner [Fri, 9 Dec 2016 13:24:02 +0000 (14:24 +0100)]
Use _PyObject_CallMethodIdObjArgs() in _asyncio
Issue #28915: Replace _PyObject_CallMethodId() with
_PyObject_CallMethodIdObjArgs() when the format string was only made of "O"
formats, PyObject* arguments.
_PyObject_CallMethodIdObjArgs() avoids the creation of a temporary tuple and
doesn't have to parse a format string.
Victor Stinner [Fri, 9 Dec 2016 11:29:18 +0000 (12:29 +0100)]
Issue #28915: Use _PyObject_CallNoArg()
Replace PyObject_CallFunction(func, NULL) with _PyObject_CallNoArg(func).
Xavier de Gaye [Fri, 9 Dec 2016 08:35:49 +0000 (09:35 +0100)]
Issue #26937: Merge 3.6.
Xavier de Gaye [Fri, 9 Dec 2016 08:33:09 +0000 (09:33 +0100)]
Issue #26937: The chown() method of the tarfile.TarFile class does not fail now
when the grp module cannot be imported, as for example on Android platforms.
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.