]> granicus.if.org Git - python/log
python
7 years agoIssue #29358: Add postcondition checks on types
Victor Stinner [Wed, 25 Jan 2017 22:33:27 +0000 (23:33 +0100)]
Issue #29358: Add postcondition checks on types

7 years agoIssue #29369: Use Py_IDENTIFIER in Python-ast.c
INADA Naoki [Wed, 25 Jan 2017 13:33:43 +0000 (22:33 +0900)]
Issue #29369: Use Py_IDENTIFIER in Python-ast.c

7 years agoIssue #27867: Function PySlice_GetIndicesEx() is deprecated and replaced with
Serhiy Storchaka [Wed, 25 Jan 2017 11:27:44 +0000 (13:27 +0200)]
Issue #27867: Function PySlice_GetIndicesEx() is deprecated and replaced with
a macro if Py_LIMITED_API is not set or set to the value between 0x03050400
and 0x03060000 (not including) or 0x03060100 or higher.  Added functions
PySlice_Unpack() and PySlice_AdjustIndices().

7 years agoIssue #27867: Function PySlice_GetIndicesEx() is replaced with a macro if
Serhiy Storchaka [Wed, 25 Jan 2017 11:25:52 +0000 (13:25 +0200)]
Issue #27867: Function PySlice_GetIndicesEx() is replaced with a macro if
Py_LIMITED_API is not set or set to the value between 0x03050400
and 0x03060000 (not including) or 0x03060100 or higher.

7 years agoIssue #27867: Function PySlice_GetIndicesEx() is replaced with a macro if
Serhiy Storchaka [Wed, 25 Jan 2017 11:23:05 +0000 (13:23 +0200)]
Issue #27867: Function PySlice_GetIndicesEx() is replaced with a macro if
Py_LIMITED_API is not set or set to the value between 0x03050400
and 0x03060000 (not including) or 0x03060100 or higher.

7 years ago[merge 3.6] - issue26149 - Point to Wiki for Editors and Python IDEs on Unix.
Senthil Kumaran [Wed, 25 Jan 2017 09:48:41 +0000 (01:48 -0800)]
[merge 3.6] - issue26149 - Point to Wiki for Editors and Python IDEs on Unix.

Patch contributed by Mariatta Wijaya.

7 years agoissue26149 - Point to Wiki for Editors and Python IDEs on Unix.
Senthil Kumaran [Wed, 25 Jan 2017 09:47:49 +0000 (01:47 -0800)]
issue26149 - Point to Wiki for Editors and Python IDEs on Unix.

Patch contributed by Mariatta Wijaya.

7 years agoIssues #29311, #29289: Fixed and improved docstrings for dict and OrderedDict
Serhiy Storchaka [Tue, 24 Jan 2017 22:30:04 +0000 (00:30 +0200)]
Issues #29311, #29289: Fixed and improved docstrings for dict and OrderedDict
methods.

7 years agoissue29167: fix race condition in (Int)Flag
Ethan Furman [Tue, 24 Jan 2017 20:13:34 +0000 (12:13 -0800)]
issue29167: fix race condition in (Int)Flag

7 years agocloses issue29167: fix race condition in (Int)Flag
Ethan Furman [Tue, 24 Jan 2017 20:12:06 +0000 (12:12 -0800)]
closes issue29167: fix race condition in (Int)Flag

7 years agoIssue #29083: Fixed the declaration of some public API functions.
Serhiy Storchaka [Tue, 24 Jan 2017 19:39:42 +0000 (21:39 +0200)]
Issue #29083: Fixed the declaration of some public API functions.
PyArg_VaParse() and PyArg_VaParseTupleAndKeywords() were not available in
limited API.  PyArg_ValidateKeywordArguments(), PyArg_UnpackTuple() and
Py_BuildValue() were not available in limited API of version < 3.3 when
PY_SSIZE_T_CLEAN is defined.

7 years agoIssue #29083: Fixed the declaration of some public API functions.
Serhiy Storchaka [Tue, 24 Jan 2017 19:34:44 +0000 (21:34 +0200)]
Issue #29083: Fixed the declaration of some public API functions.
PyArg_VaParse() and PyArg_VaParseTupleAndKeywords() were not available in
limited API.  PyArg_ValidateKeywordArguments(), PyArg_UnpackTuple() and
Py_BuildValue() were not available in limited API of version < 3.3 when
PY_SSIZE_T_CLEAN is defined.

7 years agoIssue #29083: Fixed the declaration of some public API functions.
Serhiy Storchaka [Tue, 24 Jan 2017 19:27:12 +0000 (21:27 +0200)]
Issue #29083: Fixed the declaration of some public API functions.
PyArg_VaParse() and PyArg_VaParseTupleAndKeywords() were not available in
limited API.  PyArg_ValidateKeywordArguments(), PyArg_UnpackTuple() and
Py_BuildValue() were not available in limited API of version < 3.3 when
PY_SSIZE_T_CLEAN is defined.

7 years agoIssue #29337: Fixed possible BytesWarning when compare the code objects.
Serhiy Storchaka [Tue, 24 Jan 2017 18:54:07 +0000 (20:54 +0200)]
Issue #29337: Fixed possible BytesWarning when compare the code objects.
Warnings could be emitted at compile time.

7 years agoIssue #29337: Fixed possible BytesWarning when compare the code objects.
Serhiy Storchaka [Tue, 24 Jan 2017 18:52:43 +0000 (20:52 +0200)]
Issue #29337: Fixed possible BytesWarning when compare the code objects.
Warnings could be emitted at compile time.

7 years agoIssue #29337: Fixed possible BytesWarning when compare the code objects.
Serhiy Storchaka [Tue, 24 Jan 2017 18:49:26 +0000 (20:49 +0200)]
Issue #29337: Fixed possible BytesWarning when compare the code objects.
Warnings could be emitted at compile time.

7 years agoIssue #29360: _PyStack_AsDict() doesn't check kwnames
Victor Stinner [Tue, 24 Jan 2017 14:05:30 +0000 (15:05 +0100)]
Issue #29360: _PyStack_AsDict() doesn't check kwnames

Remove two assertions which can fail on legit code. Keyword arguments are
checked later with better tests and raise a regular (TypeError) exception.

7 years agoIssue #29338: Fix test_enum.
Serhiy Storchaka [Tue, 24 Jan 2017 07:06:22 +0000 (09:06 +0200)]
Issue #29338: Fix test_enum.

7 years agoFix grammar in doc string, RST markup
Martin Panter [Tue, 24 Jan 2017 00:30:06 +0000 (00:30 +0000)]
Fix grammar in doc string, RST markup

7 years agoIssues #29189: Merge indentation fixes from 3.6
Martin Panter [Tue, 24 Jan 2017 00:30:00 +0000 (00:30 +0000)]
Issues #29189: Merge indentation fixes from 3.6

7 years agoIssues #29189: Merge indentation fixes from 3.5
Martin Panter [Tue, 24 Jan 2017 00:29:11 +0000 (00:29 +0000)]
Issues #29189: Merge indentation fixes from 3.5

7 years agoIssue #29189: Fix indentation in RST markup
Martin Panter [Tue, 24 Jan 2017 00:26:56 +0000 (00:26 +0000)]
Issue #29189: Fix indentation in RST markup

7 years agoIssues #29273: Merge test___all__ from 3.6
Martin Panter [Mon, 23 Jan 2017 23:15:19 +0000 (23:15 +0000)]
Issues #29273: Merge test___all__ from 3.6

7 years agoIssues #29273: Merge test___all__ from 3.5
Martin Panter [Mon, 23 Jan 2017 22:59:03 +0000 (22:59 +0000)]
Issues #29273: Merge test___all__ from 3.5

7 years agoIssue #29273: Remove unneeded workaround to restore locale
Martin Panter [Mon, 23 Jan 2017 22:11:09 +0000 (22:11 +0000)]
Issue #29273: Remove unneeded workaround to restore locale

The “readline” module already has a workaround using setlocale(LC_CTYPE,
NULL). The code in test___all__ calls getlocale(), which can subtly alter
the locale string and cause the test framework to complain.

7 years agoIssue #29338: Don't output an empty signature for class constructor.
Serhiy Storchaka [Mon, 23 Jan 2017 12:02:35 +0000 (14:02 +0200)]
Issue #29338: Don't output an empty signature for class constructor.

7 years agoMerge 3.6
Victor Stinner [Mon, 23 Jan 2017 11:34:00 +0000 (12:34 +0100)]
Merge 3.6

7 years agoIssue #26273: Document TCP_USER_TIMEOUT and TCP_CONGESTION
Victor Stinner [Mon, 23 Jan 2017 11:30:00 +0000 (12:30 +0100)]
Issue #26273: Document TCP_USER_TIMEOUT and TCP_CONGESTION

7 years agoIssue #29338: The help of a builtin or extension class now includes the
Serhiy Storchaka [Mon, 23 Jan 2017 10:37:00 +0000 (12:37 +0200)]
Issue #29338: The help of a builtin or extension class now includes the
constructor signature if __text_signature__ is provided for the class.

7 years agoIssue #26729: Fixed __text_signature__ for sorted().
Serhiy Storchaka [Mon, 23 Jan 2017 10:30:59 +0000 (12:30 +0200)]
Issue #26729: Fixed __text_signature__ for sorted().
Patch by Erik Welch.

7 years agoIssue #26729: Fixed __text_signature__ for sorted().
Serhiy Storchaka [Mon, 23 Jan 2017 10:30:35 +0000 (12:30 +0200)]
Issue #26729: Fixed __text_signature__ for sorted().
Patch by Erik Welch.

7 years agoIssue #26729: Fixed __text_signature__ for sorted().
Serhiy Storchaka [Mon, 23 Jan 2017 10:29:47 +0000 (12:29 +0200)]
Issue #26729: Fixed __text_signature__ for sorted().
Patch by Erik Welch.

7 years agoIssue #28999: Use Py_RETURN_NONE, Py_RETURN_TRUE and Py_RETURN_FALSE wherever
Serhiy Storchaka [Mon, 23 Jan 2017 08:23:58 +0000 (10:23 +0200)]
Issue #28999: Use Py_RETURN_NONE, Py_RETURN_TRUE and Py_RETURN_FALSE wherever
possible but Coccinelle couldn't find opportunity.

7 years agoIssue #28999: Use Py_RETURN_NONE, Py_RETURN_TRUE and Py_RETURN_FALSE wherever
Serhiy Storchaka [Mon, 23 Jan 2017 07:47:21 +0000 (09:47 +0200)]
Issue #28999: Use Py_RETURN_NONE, Py_RETURN_TRUE and Py_RETURN_FALSE wherever
possible.  Patch is writen with Coccinelle.

7 years agoSkip the test requiring ctypes if ctypes is unavailable.
Gregory P. Smith [Mon, 23 Jan 2017 06:20:04 +0000 (22:20 -0800)]
Skip the test requiring ctypes if ctypes is unavailable.

prevents http://buildbot.python.org/all/builders/x86%20Ubuntu%20Shared%203.x/builds/240/steps/test/logs/stdio

7 years agoSkip the test requiring ctypes if ctypes is unavailable.
Gregory P. Smith [Mon, 23 Jan 2017 06:19:51 +0000 (22:19 -0800)]
Skip the test requiring ctypes if ctypes is unavailable.

prevents http://buildbot.python.org/all/builders/x86%20Ubuntu%20Shared%203.x/builds/240/steps/test/logs/stdio

7 years agoSkip the test requiring ctypes if ctypes is unavailable.
Gregory P. Smith [Mon, 23 Jan 2017 06:19:38 +0000 (22:19 -0800)]
Skip the test requiring ctypes if ctypes is unavailable.

prevents http://buildbot.python.org/all/builders/x86%20Ubuntu%20Shared%203.x/builds/240/steps/test/logs/stdio

7 years agotypo fix, extra '.' on MacOS :)
Gregory P. Smith [Mon, 23 Jan 2017 04:55:20 +0000 (20:55 -0800)]
typo fix, extra '.' on MacOS :)

7 years agotypo fix, extra '.' on MacOS :)
Gregory P. Smith [Mon, 23 Jan 2017 04:55:02 +0000 (20:55 -0800)]
typo fix, extra '.' on MacOS :)

7 years agotypo fix, extra '.' :)
Gregory P. Smith [Mon, 23 Jan 2017 04:54:42 +0000 (20:54 -0800)]
typo fix, extra '.' :)

7 years agoIssue #28556: Allow defining methods in NamedTuple class syntax (#362) (3.6->3.7)
Guido van Rossum [Mon, 23 Jan 2017 01:47:22 +0000 (17:47 -0800)]
Issue #28556: Allow defining methods in NamedTuple class syntax (#362) (3.6->3.7)

7 years agoIssue #28556: Allow defining methods in NamedTuple class syntax (#362) (3.5->3.6)
Guido van Rossum [Mon, 23 Jan 2017 01:47:21 +0000 (17:47 -0800)]
Issue #28556: Allow defining methods in NamedTuple class syntax (#362) (3.5->3.6)

7 years agoIssue #28556: Allow defining methods in NamedTuple class syntax (#362)
Guido van Rossum [Mon, 23 Jan 2017 01:47:20 +0000 (17:47 -0800)]
Issue #28556: Allow defining methods in NamedTuple class syntax (#362)

7 years agoIssue #28556: various style fixes for typing.py (3.6->3.7)
Guido van Rossum [Mon, 23 Jan 2017 01:43:57 +0000 (17:43 -0800)]
Issue #28556: various style fixes for typing.py (3.6->3.7)

7 years agoIssue #28556: various style fixes for typing.py (3.5->3.6)
Guido van Rossum [Mon, 23 Jan 2017 01:43:56 +0000 (17:43 -0800)]
Issue #28556: various style fixes for typing.py (3.5->3.6)

7 years agoIssue #28556: various style fixes for typing.py
Guido van Rossum [Mon, 23 Jan 2017 01:43:53 +0000 (17:43 -0800)]
Issue #28556: various style fixes for typing.py

7 years agoIssue #29335: Fix subprocess.Popen.wait() when the child process has
Gregory P. Smith [Mon, 23 Jan 2017 01:30:28 +0000 (17:30 -0800)]
Issue #29335: Fix subprocess.Popen.wait() when the child process has
exited to a stopped instead of terminated state (ex: when under ptrace).

7 years agoIssue #29335: Fix subprocess.Popen.wait() when the child process has
Gregory P. Smith [Mon, 23 Jan 2017 01:29:44 +0000 (17:29 -0800)]
Issue #29335: Fix subprocess.Popen.wait() when the child process has
exited to a stopped instead of terminated state (ex: when under ptrace).

7 years agoIssue #29335: Fix subprocess.Popen.wait() when the child process has
Gregory P. Smith [Mon, 23 Jan 2017 01:28:38 +0000 (17:28 -0800)]
Issue #29335: Fix subprocess.Popen.wait() when the child process has
exited to a stopped instead of terminated state (ex: when under ptrace).

7 years agoIssue #28769: The result of PyUnicode_AsUTF8AndSize() and PyUnicode_AsUTF8()
Serhiy Storchaka [Sun, 22 Jan 2017 21:07:07 +0000 (23:07 +0200)]
Issue #28769: The result of PyUnicode_AsUTF8AndSize() and PyUnicode_AsUTF8()
is now of type "const char *" rather of "char *".

7 years agoIssue #29290: Merge 3.6.
Xiang Zhang [Sun, 22 Jan 2017 06:41:42 +0000 (14:41 +0800)]
Issue #29290: Merge 3.6.

7 years agoIssue #29290: Merge 3.5.
Xiang Zhang [Sun, 22 Jan 2017 06:39:20 +0000 (14:39 +0800)]
Issue #29290: Merge 3.5.

7 years agoIssue #29290: argparse help messages won't wrap at non-breaking spaces.
Xiang Zhang [Sun, 22 Jan 2017 06:37:22 +0000 (14:37 +0800)]
Issue #29290: argparse help messages won't wrap at non-breaking spaces.

7 years agoIssue #29092: Merge 3.6.
Xiang Zhang [Sun, 22 Jan 2017 05:10:12 +0000 (13:10 +0800)]
Issue #29092: Merge 3.6.

7 years agoIssue #29092: Sync os.stat's doc and docstring on path type.
Xiang Zhang [Sun, 22 Jan 2017 05:04:17 +0000 (13:04 +0800)]
Issue #29092: Sync os.stat's doc and docstring on path type.

7 years agoIssue #29092: Sync os.stat's doc and docstring on path type.
Xiang Zhang [Sun, 22 Jan 2017 04:54:44 +0000 (12:54 +0800)]
Issue #29092: Sync os.stat's doc and docstring on path type.

7 years agoIssue #28735: Fixed the comparison of mock.MagickMock with mock.ANY.
Serhiy Storchaka [Sat, 21 Jan 2017 21:17:25 +0000 (23:17 +0200)]
Issue #28735: Fixed the comparison of mock.MagickMock with mock.ANY.

7 years agoIssue #28735: Fixed the comparison of mock.MagickMock with mock.ANY.
Serhiy Storchaka [Sat, 21 Jan 2017 21:15:18 +0000 (23:15 +0200)]
Issue #28735: Fixed the comparison of mock.MagickMock with mock.ANY.

7 years agoIssue #28735: Fixed the comparison of mock.MagickMock with mock.ANY.
Serhiy Storchaka [Sat, 21 Jan 2017 21:12:58 +0000 (23:12 +0200)]
Issue #28735: Fixed the comparison of mock.MagickMock with mock.ANY.

7 years agoIssue #29331: Simplified argument parsing in sorted() and list.sort().
Serhiy Storchaka [Sat, 21 Jan 2017 21:05:00 +0000 (23:05 +0200)]
Issue #29331: Simplified argument parsing in sorted() and list.sort().

7 years agoIssue #29282: Backed out changeset b33012ef1417
Mark Dickinson [Sat, 21 Jan 2017 13:10:52 +0000 (13:10 +0000)]
Issue #29282: Backed out changeset b33012ef1417

7 years agoIssue #29282: add fused multiply-add function, math.fma.
Mark Dickinson [Sat, 21 Jan 2017 12:35:30 +0000 (12:35 +0000)]
Issue #29282: add fused multiply-add function, math.fma.

7 years agoUpdate Misc/NEWS and Misc/HISTORY from current 3.5 and 3.4 branches.
Ned Deily [Fri, 20 Jan 2017 15:39:13 +0000 (10:39 -0500)]
Update Misc/NEWS and Misc/HISTORY from current 3.5 and 3.4 branches.

7 years agoUpdate Misc/NEWS and Misc/HISTORY from current 3.5 and 3.4 branches.
Ned Deily [Fri, 20 Jan 2017 15:35:46 +0000 (10:35 -0500)]
Update Misc/NEWS and Misc/HISTORY from current 3.5 and 3.4 branches.

7 years agoIssue #29316: merge 3.6
Ned Deily [Fri, 20 Jan 2017 15:17:11 +0000 (10:17 -0500)]
Issue #29316: merge 3.6

7 years agoIssue #29316: Restore the provisional status of typing module and add
Ned Deily [Fri, 20 Jan 2017 15:13:23 +0000 (10:13 -0500)]
Issue #29316: Restore the provisional status of typing module and add
corresponding note to documentation. Patch by Ivan L.

7 years agoIssue #29327: Fixed a crash when pass the iterable keyword argument to sorted().
Serhiy Storchaka [Fri, 20 Jan 2017 06:35:18 +0000 (08:35 +0200)]
Issue #29327: Fixed a crash when pass the iterable keyword argument to sorted().

7 years agoIssue #29327: Fixed a crash when pass the iterable keyword argument to sorted().
Serhiy Storchaka [Fri, 20 Jan 2017 06:33:06 +0000 (08:33 +0200)]
Issue #29327: Fixed a crash when pass the iterable keyword argument to sorted().

7 years agomerge
Raymond Hettinger [Fri, 20 Jan 2017 05:39:55 +0000 (21:39 -0800)]
merge

7 years agoIssue #29281: Fill-in a missing versionchanged entry
Raymond Hettinger [Fri, 20 Jan 2017 05:39:37 +0000 (21:39 -0800)]
Issue #29281:  Fill-in a missing versionchanged entry

7 years agoIssue #29292: Merge 3.6.
Xiang Zhang [Fri, 20 Jan 2017 03:31:31 +0000 (11:31 +0800)]
Issue #29292: Merge 3.6.

7 years agoIssue #29292: Merge 3.5.
Xiang Zhang [Fri, 20 Jan 2017 03:29:48 +0000 (11:29 +0800)]
Issue #29292: Merge 3.5.

7 years agoIssue #29292: Update outdated doc of PyEval_EvalCodeEx.
Xiang Zhang [Fri, 20 Jan 2017 03:29:11 +0000 (11:29 +0800)]
Issue #29292: Update outdated doc of PyEval_EvalCodeEx.

Patch by Ammar Askar.

7 years agoNull merge from 3.6.
Larry Hastings [Fri, 20 Jan 2017 02:46:07 +0000 (18:46 -0800)]
Null merge from 3.6.

7 years agoNull merge from 3.5.
Larry Hastings [Fri, 20 Jan 2017 02:45:20 +0000 (18:45 -0800)]
Null merge from 3.5.

7 years agoFix incorrect patchlevel information for 3.5.3+.
Larry Hastings [Fri, 20 Jan 2017 02:36:23 +0000 (18:36 -0800)]
Fix incorrect patchlevel information for 3.5.3+.
It got messed up when I merged my private 3.5.3 release
changes with new work happening in the 3.5 main branch.
(3.5 main branch was in "3.5.3rc1", my branch was "3.5.3+",
and Mercurial helpfully merged the two in a kind of nonsense way.)

7 years agoIssue #29289: Argument Clinic generates reasonable name for the parameter "default".
Serhiy Storchaka [Thu, 19 Jan 2017 17:38:13 +0000 (19:38 +0200)]
Issue #29289: Argument Clinic generates reasonable name for the parameter "default".

7 years agoIssue #29311: Argument Clinic generates reasonable name for the parameter "default".
Serhiy Storchaka [Thu, 19 Jan 2017 17:00:30 +0000 (19:00 +0200)]
Issue #29311: Argument Clinic generates reasonable name for the parameter "default".

7 years agoIssue #20186: Converted builtins enumerate() and reversed() to Argument Clinic.
Serhiy Storchaka [Thu, 19 Jan 2017 16:48:17 +0000 (18:48 +0200)]
Issue #20186: Converted builtins enumerate() and reversed() to Argument Clinic.
Patch by Tal Einat.

7 years agoIssue #20186: Converted the math module to Argument Clinic.
Serhiy Storchaka [Thu, 19 Jan 2017 16:13:09 +0000 (18:13 +0200)]
Issue #20186: Converted the math module to Argument Clinic.
Patch by Tal Einat.

7 years agoIssue #20186: Converted the _operator module to Argument Clinic.
Serhiy Storchaka [Thu, 19 Jan 2017 15:44:13 +0000 (17:44 +0200)]
Issue #20186: Converted the _operator module to Argument Clinic.
Patch by Tal Einat.

7 years agoIssue #29296: convert print() to METH_FASTCALL
INADA Naoki [Thu, 19 Jan 2017 11:50:34 +0000 (12:50 +0100)]
Issue #29296: convert print() to METH_FASTCALL

* Replace PyArg_ParseTupleAndKeywords() with _PyArg_ParseStackAndKeywords()
  which is more efficient to parse keywords, since it decodes only keywords
  (char*) from UTF-8 once, instead of decoding at each call.
* METH_FASTCALL avoids the creation of a temporary tuple to pass positional
  arguments.

Patch written by INADA Naoki, pushed by Victor Stinner.

7 years agoAdd a note explaining why dict_update() doesn't use METH_FASTCALL
Victor Stinner [Thu, 19 Jan 2017 11:45:06 +0000 (12:45 +0100)]
Add a note explaining why dict_update() doesn't use METH_FASTCALL

Issue #29312.

7 years agodict.get() and dict.setdefault() now use AC
Victor Stinner [Thu, 19 Jan 2017 11:37:13 +0000 (12:37 +0100)]
dict.get() and dict.setdefault() now use AC

Issue #29311: dict.get() and dict.setdefault() methods now use Argument Clinic
to parse arguments. Their calling convention changes from METH_VARARGS to
METH_FASTCALL which avoids the creation of a temporary tuple.

The signature of docstrings is also enhanced. For example,
    get(...)
becomes:
    get(self, key, default=None, /)

7 years agoIssue #29198: add AsyncGenerator (Jelle Zijlstra) (3.5->3.6)
Guido van Rossum [Wed, 18 Jan 2017 21:10:34 +0000 (13:10 -0800)]
Issue #29198: add AsyncGenerator (Jelle Zijlstra) (3.5->3.6)

7 years agoIssue #29198: add AsyncGenerator (Jelle Zijlstra)
Guido van Rossum [Wed, 18 Jan 2017 21:10:31 +0000 (13:10 -0800)]
Issue #29198: add AsyncGenerator (Jelle Zijlstra)

7 years ago_PyStack_AsDict() now checks kwnames != NULL
Victor Stinner [Wed, 18 Jan 2017 17:06:32 +0000 (18:06 +0100)]
_PyStack_AsDict() now checks kwnames != NULL

Issue #29259.

7 years agoIssue #29198: add AsyncGenerator (Jelle Zijlstra) (3.6->3.7)
Guido van Rossum [Wed, 18 Jan 2017 21:10:36 +0000 (13:10 -0800)]
Issue #29198: add AsyncGenerator (Jelle Zijlstra) (3.6->3.7)

7 years agoUpdate and enhance python-gdb.py
Victor Stinner [Wed, 18 Jan 2017 16:20:01 +0000 (17:20 +0100)]
Update and enhance python-gdb.py

Issue #29259:

* Detect PyCFunction is the current frame, not only in the older frame
* Ignore PyCFunction_Call() since it now calls _PyCFunction_FastCallDict(), and
  _PyCFunction_FastCallDict() is already detected

7 years agoIssue #28556: allow default values in class form of NamedTuple -- Jelle Zijlstra...
Guido van Rossum [Wed, 18 Jan 2017 16:03:54 +0000 (08:03 -0800)]
Issue #28556: allow default values in class form of NamedTuple -- Jelle Zijlstra (3.6->3.7)

7 years agoIssue #28556: allow default values in class form of NamedTuple -- Jelle Zijlstra...
Guido van Rossum [Wed, 18 Jan 2017 16:03:52 +0000 (08:03 -0800)]
Issue #28556: allow default values in class form of NamedTuple -- Jelle Zijlstra (3.5->3.6)

7 years agoIssue #28556: allow default values in class form of NamedTuple -- Jelle Zijlstra
Guido van Rossum [Wed, 18 Jan 2017 16:03:50 +0000 (08:03 -0800)]
Issue #28556: allow default values in class form of NamedTuple -- Jelle Zijlstra

7 years agoCleanup _PyMethodDef_RawFastCallDict()
Victor Stinner [Wed, 18 Jan 2017 13:16:57 +0000 (14:16 +0100)]
Cleanup _PyMethodDef_RawFastCallDict()

Issue #29259: use a different case for METH_VARARGS and
METH_VARARGS|METH_KEYWORDS to avoid testing again flags to decide if keywords
should be checked or not.

7 years agoRephrase !PyErr_Occurred() comment: may=>can
Victor Stinner [Wed, 18 Jan 2017 13:12:51 +0000 (14:12 +0100)]
Rephrase !PyErr_Occurred() comment: may=>can

Issue #29259.

7 years ago_PyObject_FastCallKeywords() now checks !PyErr_Occurred()
Victor Stinner [Wed, 18 Jan 2017 13:06:38 +0000 (14:06 +0100)]
_PyObject_FastCallKeywords() now checks !PyErr_Occurred()

Issue #29259. All other functions calling functions start with the similar
assertion.

7 years agoPyCFunction_Call() now calls _PyCFunction_FastCallDict()
Victor Stinner [Wed, 18 Jan 2017 13:04:37 +0000 (14:04 +0100)]
PyCFunction_Call() now calls _PyCFunction_FastCallDict()

Issue #29259. We had 3 versions of similar code:

* PyCFunction_Call()
* _PyCFunction_FastCallDict()
* _PyCFunction_FastCallKeywords()

PyCFunction_Call() now calls _PyCFunction_FastCallDict() to factorize the code.

7 years agoFix _PyMethodDef_RawFastCallDict() argument parsing
Victor Stinner [Wed, 18 Jan 2017 13:01:12 +0000 (14:01 +0100)]
Fix _PyMethodDef_RawFastCallDict() argument parsing

Issue #29259:

* Move also the !PyErr_Occurred() assertion to the top, similar to
  other functions.
* Fix also comment/error messages: the function was renamed to
  _PyMethodDef_RawFastCallDict()

7 years agoFix Python 2.6 support in python-gdb.py
Victor Stinner [Wed, 18 Jan 2017 12:49:43 +0000 (13:49 +0100)]
Fix Python 2.6 support in python-gdb.py

Issue #29259.

7 years agoIssue 29274: Merge doc fixes from 3.6
Martin Panter [Wed, 18 Jan 2017 12:11:42 +0000 (12:11 +0000)]
Issue 29274: Merge doc fixes from 3.6

7 years agoIssue 29274: Merge doc fixes from 3.5
Martin Panter [Wed, 18 Jan 2017 12:11:12 +0000 (12:11 +0000)]
Issue 29274: Merge doc fixes from 3.5