]> granicus.if.org Git - python/log
python
7 years agoAddress a minor Coverity warning re: unchecked PyArg_ParseTuple calls
Gregory P. Smith [Wed, 18 Jan 2017 00:54:56 +0000 (16:54 -0800)]
Address a minor Coverity warning re: unchecked PyArg_ParseTuple calls
in socket.sendto().  A PyErr_Occurred() check was happening later, but
it is better to just use the return value and not call PyErr_Occurred().

7 years ago_hashopenssl uses METH_FASTCALL
Victor Stinner [Tue, 17 Jan 2017 03:20:26 +0000 (04:20 +0100)]
_hashopenssl uses METH_FASTCALL

7 years agosorted() uses METH_FASTCALL
Victor Stinner [Tue, 17 Jan 2017 14:17:49 +0000 (15:17 +0100)]
sorted() uses METH_FASTCALL

7 years agonext() uses FASTCALL
Victor Stinner [Tue, 17 Jan 2017 03:09:14 +0000 (04:09 +0100)]
next() uses FASTCALL

7 years agogetattr() uses METH_FASTCALL
Victor Stinner [Tue, 17 Jan 2017 02:52:27 +0000 (03:52 +0100)]
getattr() uses METH_FASTCALL

7 years agoNull merge
Serhiy Storchaka [Tue, 17 Jan 2017 10:47:18 +0000 (12:47 +0200)]
Null merge

7 years agoMerge from 3.6.
Larry Hastings [Tue, 17 Jan 2017 09:06:09 +0000 (01:06 -0800)]
Merge from 3.6.

7 years agoMerge from 3.5.
Larry Hastings [Tue, 17 Jan 2017 09:05:10 +0000 (01:05 -0800)]
Merge from 3.5.

7 years agoMerge from 3.4.
Larry Hastings [Tue, 17 Jan 2017 09:01:19 +0000 (01:01 -0800)]
Merge from 3.4.

7 years agoMerge 3.5.3 release head with main 3.5 branch.
Larry Hastings [Tue, 17 Jan 2017 08:56:40 +0000 (00:56 -0800)]
Merge 3.5.3 release head with main 3.5 branch.

7 years agoPost-release updates for 3.5.3.
Larry Hastings [Tue, 17 Jan 2017 08:49:32 +0000 (00:49 -0800)]
Post-release updates for 3.5.3.

7 years agoPost-release updates for 3.4.6.
Larry Hastings [Tue, 17 Jan 2017 08:49:13 +0000 (00:49 -0800)]
Post-release updates for 3.4.6.

7 years agoIssue #29029: Speed up processing positional arguments in
Serhiy Storchaka [Tue, 17 Jan 2017 08:07:25 +0000 (10:07 +0200)]
Issue #29029: Speed up processing positional arguments in
PyArg_ParseTupleAndKeywords(), _PyArg_ParseTupleAndKeywordsFast() and like.

7 years agomerge
Raymond Hettinger [Tue, 17 Jan 2017 06:44:14 +0000 (22:44 -0800)]
merge

7 years agomerge
Raymond Hettinger [Tue, 17 Jan 2017 06:43:43 +0000 (22:43 -0800)]
merge

7 years agoIssue #29011: Fix an important omission by adding Deque to the typing module.
Raymond Hettinger [Tue, 17 Jan 2017 06:42:37 +0000 (22:42 -0800)]
Issue #29011:  Fix an important omission by adding Deque to the typing module.

7 years agoConvert some OrderedDict methods to Argument Clinic
Victor Stinner [Tue, 17 Jan 2017 02:46:13 +0000 (03:46 +0100)]
Convert some OrderedDict methods to Argument Clinic

Issue #29289. Convert methods:

* fromkeys() class method
* setdefault()
* popitem()
* move_to_end()

7 years agoRun Argument Clinic: METH_VARARGS=>METH_FASTCALL
Victor Stinner [Tue, 17 Jan 2017 01:21:47 +0000 (02:21 +0100)]
Run Argument Clinic: METH_VARARGS=>METH_FASTCALL

Issue #29286. Run Argument Clinic to get the new faster METH_FASTCALL calling
convention for functions using "boring" positional arguments.

Manually fix _elementtree: _elementtree_XMLParser_doctype() must remain
consistent with the clinic code.

7 years agoArgument Clinic: Use METH_FASTCALL for boring positionals
Victor Stinner [Tue, 17 Jan 2017 01:35:41 +0000 (02:35 +0100)]
Argument Clinic: Use METH_FASTCALL for boring positionals

Issue #29286. Use METH_FASTCALL calling convention instead of METH_VARARGS to
parse "boring" position arguments. METH_FASTCALL is faster since it avoids the
creation of a temporary tuple to pass positional arguments.

Replace PyArg_UnpackTuple() with _PyArg_UnpackStack()+_PyArg_NoStackKeywords().

7 years agoAdd _PyArg_UnpackStack() function helper
Victor Stinner [Tue, 17 Jan 2017 01:33:55 +0000 (02:33 +0100)]
Add _PyArg_UnpackStack() function helper

Issue #29286.

7 years agoRun Argument Clinic: METH_VARARGS=>METH_FASTCALL
Victor Stinner [Tue, 17 Jan 2017 00:35:17 +0000 (01:35 +0100)]
Run Argument Clinic: METH_VARARGS=>METH_FASTCALL

Issue #29286. Run Argument Clinic to get the new faster METH_FASTCALL calling
convention for functions using only positional arguments.

7 years agoArgument Clinic: Use METH_FASTCALL for positionals
Victor Stinner [Tue, 17 Jan 2017 00:42:54 +0000 (01:42 +0100)]
Argument Clinic: Use METH_FASTCALL for positionals

Issue #29286. Use METH_FASTCALL calling convention instead of METH_VARARGS to
parse position arguments. METH_FASTCALL is faster since it avoids the creation
of a temporary tuple to pass positional arguments.

7 years ago_PyStack_UnpackDict() now returns -1 on error
Victor Stinner [Tue, 17 Jan 2017 00:57:29 +0000 (01:57 +0100)]
_PyStack_UnpackDict() now returns -1 on error

Issue #29286. Change _PyStack_UnpackDict() prototype to be able to notify of
failure when args is NULL.

7 years agoAdd _PyArg_NoStackKeywords() helper function
Victor Stinner [Tue, 17 Jan 2017 00:40:01 +0000 (01:40 +0100)]
Add _PyArg_NoStackKeywords() helper function

Issue #29286. Similar to _PyArg_NoKeywords(), but expects a tuple of keyword
names, instead of a dict.

7 years agoAdd _PyArg_ParseStack() helper function
Victor Stinner [Tue, 17 Jan 2017 00:29:49 +0000 (01:29 +0100)]
Add _PyArg_ParseStack() helper function

Issue #29286. Function similar to PyArg_ParseTuple(), but uses a C array of
PyObject* to pass arguments. Don't support the compatibility mode.

7 years agoRename _PyArg_ParseStack to _PyArg_ParseStackAndKeywords
Victor Stinner [Tue, 17 Jan 2017 00:29:01 +0000 (01:29 +0100)]
Rename _PyArg_ParseStack to _PyArg_ParseStackAndKeywords

Issue #29286.

7 years agoRename keywords to kwargs in getargs.c
Victor Stinner [Mon, 16 Jan 2017 23:37:42 +0000 (00:37 +0100)]
Rename keywords to kwargs in getargs.c

Issue #29029. Patch written by Serhiy Storchaka.

7 years agotype_prepare() now uses fast call (METH_FASTCALL)
Victor Stinner [Mon, 16 Jan 2017 22:52:00 +0000 (23:52 +0100)]
type_prepare() now uses fast call (METH_FASTCALL)

7 years agoCleanup getargs.c
Victor Stinner [Mon, 16 Jan 2017 22:16:47 +0000 (23:16 +0100)]
Cleanup getargs.c

Factorize argument checks in:

* vgetargskeywordsfast()
* vgetargskeywordsfast_impl()

7 years ago__build_class__() builtin uses METH_FASTCALL
Victor Stinner [Mon, 16 Jan 2017 22:46:26 +0000 (23:46 +0100)]
__build_class__() builtin uses METH_FASTCALL

7 years agoAdd _PyStack_AsTupleSlice() helper
Victor Stinner [Mon, 16 Jan 2017 22:50:53 +0000 (23:50 +0100)]
Add _PyStack_AsTupleSlice() helper

7 years agoOptimize _PyCFunction_FastCallKeywords()
Victor Stinner [Mon, 16 Jan 2017 16:18:53 +0000 (17:18 +0100)]
Optimize _PyCFunction_FastCallKeywords()

Issue #29259: Write fast path in _PyCFunction_FastCallKeywords() for
METH_FASTCALL, avoid the creation of a temporary dictionary for keyword
arguments.

Cleanup also _PyCFunction_FastCallDict():

* Don't dereference func before checking that it's not NULL
* Move code to raise the "no keyword argument" exception into a new
  no_keyword_error label.

Update python-gdb.py for the change.

7 years agoIssue #20180: forgot to update AC output.
INADA Naoki [Mon, 16 Jan 2017 12:49:13 +0000 (21:49 +0900)]
Issue #20180: forgot to update AC output.

7 years agoIssue #20180: convert unicode methods to AC.
INADA Naoki [Mon, 16 Jan 2017 11:41:20 +0000 (20:41 +0900)]
Issue #20180: convert unicode methods to AC.

7 years agoIssue #26110: Add document for LOAD_METHOD and CALL_METHOD opcode.
INADA Naoki [Mon, 16 Jan 2017 08:23:30 +0000 (17:23 +0900)]
Issue #26110: Add document for LOAD_METHOD and CALL_METHOD opcode.

Changed stack layout bit for "easy to explain."

7 years agoAdded tag v3.4.6 for changeset b662f4776921
Larry Hastings [Mon, 16 Jan 2017 08:20:40 +0000 (00:20 -0800)]
Added tag v3.4.6 for changeset b662f4776921

7 years agoAdded tag v3.5.3 for changeset 1880cb95a742
Larry Hastings [Mon, 16 Jan 2017 08:20:31 +0000 (00:20 -0800)]
Added tag v3.5.3 for changeset 1880cb95a742

7 years agoVersion bump for Python 3.4.6. v3.4.6
Larry Hastings [Mon, 16 Jan 2017 08:19:54 +0000 (00:19 -0800)]
Version bump for Python 3.4.6.

7 years agoVersion bump for Python 3.5.3. v3.5.3
Larry Hastings [Mon, 16 Jan 2017 08:19:36 +0000 (00:19 -0800)]
Version bump for Python 3.5.3.

7 years agomerge 3.6
Benjamin Peterson [Mon, 16 Jan 2017 08:05:54 +0000 (00:05 -0800)]
merge 3.6

7 years agomerge 3.5
Benjamin Peterson [Mon, 16 Jan 2017 08:05:47 +0000 (00:05 -0800)]
merge 3.5

7 years agogenerate spaces instead of tabs into config.c
Benjamin Peterson [Mon, 16 Jan 2017 08:05:12 +0000 (00:05 -0800)]
generate spaces instead of tabs into config.c

7 years agoCloses #29132: Merged fix from 3.6.
Vinay Sajip [Sun, 15 Jan 2017 10:07:56 +0000 (10:07 +0000)]
Closes #29132: Merged fix from 3.6.

7 years agoFixed #29132: Updated shlex to work better with punctuation chars in POSIX mode.
Vinay Sajip [Sun, 15 Jan 2017 10:06:52 +0000 (10:06 +0000)]
Fixed #29132: Updated shlex to work better with punctuation chars in POSIX mode.

Thanks to Evan_ for the report and patch.

7 years agoIssue #29062: Doc: Fix make suspicious
INADA Naoki [Sat, 14 Jan 2017 12:04:40 +0000 (21:04 +0900)]
Issue #29062: Doc: Fix make suspicious

7 years agoIssue #29062: Doc: Fix make suspicious
INADA Naoki [Sat, 14 Jan 2017 12:04:21 +0000 (21:04 +0900)]
Issue #29062: Doc: Fix make suspicious

7 years agoRepeat “when pass” fixes for 3.7 section
Martin Panter [Sat, 14 Jan 2017 08:43:13 +0000 (08:43 +0000)]
Repeat “when pass” fixes for 3.7 section

7 years agoMerge doc fixes from 3.6
Martin Panter [Sat, 14 Jan 2017 09:56:00 +0000 (09:56 +0000)]
Merge doc fixes from 3.6

7 years agoMore instances of “when pass”
Martin Panter [Sat, 14 Jan 2017 08:33:10 +0000 (08:33 +0000)]
More instances of “when pass”

7 years agoMerge doc fixes from 3.5
Martin Panter [Sat, 14 Jan 2017 09:54:57 +0000 (09:54 +0000)]
Merge doc fixes from 3.5

7 years agoAvoid line breaks after hyphens, otherwise they are turned into spaces
Martin Panter [Sat, 14 Jan 2017 08:24:20 +0000 (08:24 +0000)]
Avoid line breaks after hyphens, otherwise they are turned into spaces

7 years agoFix grammar, typos and markup in documentation and code comments
Martin Panter [Sat, 14 Jan 2017 08:23:08 +0000 (08:23 +0000)]
Fix grammar, typos and markup in documentation and code comments

* Indent versionchanged at method level, not class level
* Mark up ``--help`` to avoid generating an en dash
* Use forward slash in Unix command line with a dollar sign ($) prompt

7 years agoIssue #1621: Overflow should not be possible in listextend()
Martin Panter [Sat, 14 Jan 2017 06:30:37 +0000 (06:30 +0000)]
Issue #1621: Overflow should not be possible in listextend()

7 years agoIssue #29145: Merge test from 3.6
Martin Panter [Sat, 14 Jan 2017 06:29:32 +0000 (06:29 +0000)]
Issue #29145: Merge test from 3.6

7 years agoMerge tests from 3.5
Martin Panter [Sat, 14 Jan 2017 06:26:51 +0000 (06:26 +0000)]
Merge tests from 3.5

7 years agoMerged upstream changes.
Vinay Sajip [Fri, 13 Jan 2017 19:18:33 +0000 (19:18 +0000)]
Merged upstream changes.

7 years agoClosed #29261: merged fix from 3.6.
Vinay Sajip [Fri, 13 Jan 2017 19:17:51 +0000 (19:17 +0000)]
Closed #29261: merged fix from 3.6.

7 years agoFixes #29261: merged fix from 3.5.
Vinay Sajip [Fri, 13 Jan 2017 19:17:03 +0000 (19:17 +0000)]
Fixes #29261: merged fix from 3.5.

7 years agoDocument Python versions in which the removed features were deprecated.
Serhiy Storchaka [Fri, 13 Jan 2017 19:14:40 +0000 (21:14 +0200)]
Document Python versions in which the removed features were deprecated.

7 years agoFixes #29261: added venv/scripts/common to LIBSUBDIRS.
Vinay Sajip [Fri, 13 Jan 2017 19:08:47 +0000 (19:08 +0000)]
Fixes #29261: added venv/scripts/common to LIBSUBDIRS.

7 years agoIssue #29197: Removed deprecated function ntpath.splitunc().
Serhiy Storchaka [Fri, 13 Jan 2017 18:55:05 +0000 (20:55 +0200)]
Issue #29197: Removed deprecated function ntpath.splitunc().

7 years agoIssue #29210: Removed support of deprecated argument "exclude" in
Serhiy Storchaka [Fri, 13 Jan 2017 11:25:24 +0000 (13:25 +0200)]
Issue #29210:  Removed support of deprecated argument "exclude" in
tarfile.TarFile.add().

7 years agoIssue #29062: Merge hashlib-blake2.rst into hashlib.rst
INADA Naoki [Fri, 13 Jan 2017 10:31:15 +0000 (19:31 +0900)]
Issue #29062: Merge hashlib-blake2.rst into hashlib.rst

7 years agoIssue #29062: Merge hashlib-blake2.rst into hashlib.rst
INADA Naoki [Fri, 13 Jan 2017 10:29:58 +0000 (19:29 +0900)]
Issue #29062: Merge hashlib-blake2.rst into hashlib.rst

7 years agoIssue #29219: Fixed infinite recursion in the repr of uninitialized
Serhiy Storchaka [Fri, 13 Jan 2017 07:44:00 +0000 (09:44 +0200)]
Issue #29219: Fixed infinite recursion in the repr of uninitialized
ctypes.CDLL instances.

7 years agoIssue #29219: Fixed infinite recursion in the repr of uninitialized
Serhiy Storchaka [Fri, 13 Jan 2017 07:42:17 +0000 (09:42 +0200)]
Issue #29219: Fixed infinite recursion in the repr of uninitialized
ctypes.CDLL instances.

7 years agoIssue #29219: Fixed infinite recursion in the repr of uninitialized
Serhiy Storchaka [Fri, 13 Jan 2017 07:37:56 +0000 (09:37 +0200)]
Issue #29219: Fixed infinite recursion in the repr of uninitialized
ctypes.CDLL instances.

7 years agoIssue #29192: Removed deprecated features in the http.cookies module.
Serhiy Storchaka [Fri, 13 Jan 2017 07:23:15 +0000 (09:23 +0200)]
Issue #29192: Removed deprecated features in the http.cookies module.

7 years agoIssue #29193: A format string argument for string.Formatter.format()
Serhiy Storchaka [Fri, 13 Jan 2017 07:10:51 +0000 (09:10 +0200)]
Issue #29193: A format string argument for string.Formatter.format()
is now positional-only.

7 years agoIssue #29195: Removed support of deprecated undocumented keyword arguments
Serhiy Storchaka [Fri, 13 Jan 2017 06:53:58 +0000 (08:53 +0200)]
Issue #29195: Removed support of deprecated undocumented keyword arguments
in methods of regular expression objects.

7 years agoPy_SIZE() was misused for dict.
Serhiy Storchaka [Fri, 13 Jan 2017 06:38:15 +0000 (08:38 +0200)]
Py_SIZE() was misused for dict.

7 years agoPy_SIZE() was misused for dict.
Serhiy Storchaka [Fri, 13 Jan 2017 06:37:05 +0000 (08:37 +0200)]
Py_SIZE() was misused for dict.

7 years agoPy_SIZE() was misused for dict.
Serhiy Storchaka [Fri, 13 Jan 2017 06:34:34 +0000 (08:34 +0200)]
Py_SIZE() was misused for dict.

7 years agoFix typo
Raymond Hettinger [Fri, 13 Jan 2017 06:25:25 +0000 (22:25 -0800)]
Fix typo

7 years agoCloses #28130: Documented that time.tzset() updates time module globals.
Alexander Belopolsky [Thu, 12 Jan 2017 18:17:23 +0000 (13:17 -0500)]
Closes #28130: Documented that time.tzset() updates time module globals.

Thanks Greg Bengeult for the patch.

7 years agoMerge heads
Serhiy Storchaka [Thu, 12 Jan 2017 17:46:11 +0000 (19:46 +0200)]
Merge heads

7 years agoNull merge
Serhiy Storchaka [Thu, 12 Jan 2017 17:44:15 +0000 (19:44 +0200)]
Null merge

7 years agoNull merge
Serhiy Storchaka [Thu, 12 Jan 2017 17:44:06 +0000 (19:44 +0200)]
Null merge

7 years agoNull merge
Serhiy Storchaka [Thu, 12 Jan 2017 17:43:15 +0000 (19:43 +0200)]
Null merge

7 years agoNull merge
Serhiy Storchaka [Thu, 12 Jan 2017 17:43:06 +0000 (19:43 +0200)]
Null merge

7 years agoMerge heads
Serhiy Storchaka [Thu, 12 Jan 2017 17:42:44 +0000 (19:42 +0200)]
Merge heads

7 years agoIssue #28969: Fixed race condition in C implementation of functools.lru_cache.
Serhiy Storchaka [Thu, 12 Jan 2017 17:42:20 +0000 (19:42 +0200)]
Issue #28969: Fixed race condition in C implementation of functools.lru_cache.
KeyError could be raised when cached function with full cache was
simultaneously called from differen threads with the same uncached arguments.

7 years agoIssue #22343: Merged change from 3.6.
Vinay Sajip [Thu, 12 Jan 2017 17:14:42 +0000 (17:14 +0000)]
Issue #22343: Merged change from 3.6.

7 years agoIssue #22343: Merged change from 3.5.
Vinay Sajip [Thu, 12 Jan 2017 17:13:27 +0000 (17:13 +0000)]
Issue #22343: Merged change from 3.5.

7 years agoIssue #28969: Fixed race condition in C implementation of functools.lru_cache.
Serhiy Storchaka [Thu, 12 Jan 2017 17:12:21 +0000 (19:12 +0200)]
Issue #28969: Fixed race condition in C implementation of functools.lru_cache.
KeyError could be raised when cached function with full cache was
simultaneously called from differen threads with the same uncached arguments.

7 years agoIssue #22343: Made bash activate script available on Windows.
Vinay Sajip [Thu, 12 Jan 2017 17:12:10 +0000 (17:12 +0000)]
Issue #22343: Made bash activate script available on Windows.

7 years agoIssue #28969: Fixed race condition in C implementation of functools.lru_cache.
Serhiy Storchaka [Thu, 12 Jan 2017 16:34:33 +0000 (18:34 +0200)]
Issue #28969: Fixed race condition in C implementation of functools.lru_cache.
KeyError could be raised when cached function with full cache was
simultaneously called from differen threads with the same uncached arguments.

7 years agoIssues #1621, #29145: Test for str.join() overflow
Martin Panter [Thu, 12 Jan 2017 11:54:59 +0000 (11:54 +0000)]
Issues #1621, #29145: Test for str.join() overflow

7 years agoIssue #22980: Skip a sysconfig test if _ctypes is not available.
Martin Panter [Fri, 13 Jan 2017 10:38:09 +0000 (10:38 +0000)]
Issue #22980: Skip a sysconfig test if _ctypes is not available.

Extracted from revision a1daf2d289ad by Zachary Ware.

7 years agoMerge 3.6
Victor Stinner [Thu, 12 Jan 2017 10:53:20 +0000 (11:53 +0100)]
Merge 3.6

7 years agoMerge 3.5
Victor Stinner [Thu, 12 Jan 2017 10:53:09 +0000 (11:53 +0100)]
Merge 3.5

7 years agoFix script_helper.run_python_until_end(): copy SYSTEMROOT
Victor Stinner [Thu, 12 Jan 2017 10:51:46 +0000 (11:51 +0100)]
Fix script_helper.run_python_until_end(): copy SYSTEMROOT

Windows requires at least the SYSTEMROOT environment variable to start Python.
If run_python_until_end() doesn't copy SYSTEMROOT, the function always fail on
Windows.

7 years agoIssue #25591: Fix test_imaplib if ssl miss
Victor Stinner [Thu, 12 Jan 2017 10:51:31 +0000 (11:51 +0100)]
Issue #25591: Fix test_imaplib if ssl miss

7 years agoNull merge
Serhiy Storchaka [Wed, 11 Jan 2017 18:18:03 +0000 (20:18 +0200)]
Null merge

7 years agoMerge with 3.5.
Serhiy Storchaka [Wed, 11 Jan 2017 18:17:34 +0000 (20:17 +0200)]
Merge with 3.5.

7 years agoIssue #20804: Document the limitation of the unittest.mock.sentinel attributes.
Serhiy Storchaka [Wed, 11 Jan 2017 18:16:44 +0000 (20:16 +0200)]
Issue #20804: Document the limitation of the unittest.mock.sentinel attributes.

7 years agoIssue #20804: The unittest.mock.sentinel attributes now preserve their
Serhiy Storchaka [Wed, 11 Jan 2017 18:13:03 +0000 (20:13 +0200)]
Issue #20804: The unittest.mock.sentinel attributes now preserve their
identity when they are copied or pickled.

7 years agoIssue #29220: Merged fixes from 3.6.
Vinay Sajip [Wed, 11 Jan 2017 17:44:07 +0000 (17:44 +0000)]
Issue #29220: Merged fixes from 3.6.

7 years agoIssue #292Merged fixes from 3.5.
Vinay Sajip [Wed, 11 Jan 2017 17:41:28 +0000 (17:41 +0000)]
Issue #292Merged fixes from 3.5.

7 years agoIssue #29220: Improved fix and test.
Vinay Sajip [Wed, 11 Jan 2017 17:35:36 +0000 (17:35 +0000)]
Issue #29220: Improved fix and test.