]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
4 years agobpo-42749: Fix testing bignum if Tkinter is compiled with Tk 8.4 and dynamic linked...
Miss Islington (bot) [Sun, 27 Dec 2020 08:32:27 +0000 (00:32 -0800)] 
bpo-42749: Fix testing bignum if Tkinter is compiled with Tk 8.4 and dynamic linked with Tk >= 8.5 (GH-23955)

(cherry picked from commit b02ad2458bc127a7afdeef414fa68c9a7f1f32af)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 years agoAdd convolve() to the itertools recipes (GH-23928) (GH-23949)
Miss Islington (bot) [Sat, 26 Dec 2020 04:23:35 +0000 (20:23 -0800)] 
Add convolve() to the itertools recipes (GH-23928) (GH-23949)

4 years agoRename Tkinter tests for widget options (GH-23944)
Miss Islington (bot) [Fri, 25 Dec 2020 22:30:40 +0000 (14:30 -0800)] 
Rename Tkinter tests for widget options (GH-23944)

Every test for widget option starts now with "test_configure_"
to distinguish it from tests for widget commands.
(cherry picked from commit c1ae21c965cb4d0566df2095e4bcb274d0bd9353)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 years agobpo-42727: [Enum] use super() and include **kwds (GH-23927)
Miss Islington (bot) [Fri, 25 Dec 2020 16:07:30 +0000 (08:07 -0800)] 
bpo-42727: [Enum] use super() and include **kwds (GH-23927)

for multiple inheritance support:

use super().new
pass **kwds to super().new
(cherry picked from commit 786d97a66cac48e7a933010367b8993a5b3ab85b)

Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
4 years agobpo-42734: Fix crasher bogus_code_obj.py (GH-23939)
Miss Islington (bot) [Fri, 25 Dec 2020 15:22:56 +0000 (07:22 -0800)] 
bpo-42734: Fix crasher bogus_code_obj.py (GH-23939)

It did not work because the signature of code object constructor
was changed. Also, it used old format of bytecode (pre-wordcode).
(cherry picked from commit 954a7427ba9c2d02faed32c02090caeca873aeca)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 years agobpo-42388: Fix subprocess.check_output input=None when text=True (GH-23467)
Miss Islington (bot) [Fri, 25 Dec 2020 05:18:37 +0000 (21:18 -0800)] 
bpo-42388: Fix subprocess.check_output input=None when text=True (GH-23467)

When the modern text= spelling of the universal_newlines= parameter was added
for Python 3.7, check_output's special case around input=None was overlooked.
So it behaved differently with universal_newlines=True vs text=True.  This
reconciles the behavior to be consistent and adds a test to guarantee it.

Also clarifies the existing check_output documentation.

Co-authored-by: Alexey Izbyshev <izbyshev@ispras.ru>
(cherry picked from commit 64abf373444944a240274a9b6d66d1cb01ecfcdd)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
4 years agobpo-42727: Fix the NEWS entry .rst (GH-23932)
Miss Islington (bot) [Fri, 25 Dec 2020 04:53:27 +0000 (20:53 -0800)] 
bpo-42727: Fix the NEWS entry .rst (GH-23932)

It was causing CI failures.  the offending file came from https://github.com/python/cpython/pull/23917

```
python3 tools/rstlint.py ../Misc/NEWS.d/next/
[2] ../Misc/NEWS.d/next/Library/2020-12-23-19-43-06.bpo-42727.WH3ODh.rst:1: default role used
[2] ../Misc/NEWS.d/next/Library/2020-12-23-19-43-06.bpo-42727.WH3ODh.rst:2: default role used
2 problems with severity 2 found.
Makefile:204: recipe for target 'check' failed
```
(cherry picked from commit 8badadec53cbf9dc049c5b54198c5689481e3f3f)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
4 years ago[3.9] bpo-42727: [Enum] EnumMeta.__prepare__ now accepts **kwds (GH-23917). (GH-23926)
Ethan Furman [Thu, 24 Dec 2020 20:02:38 +0000 (12:02 -0800)] 
[3.9] bpo-42727: [Enum] EnumMeta.__prepare__ now accepts **kwds (GH-23917). (GH-23926)

* [3.9] [Enum] EnumMeta.__prepare__ now accepts **kwds (GH-23917).
(cherry picked from commit 6ec0adefad60ec7cdec61c44baecf1dccc1461ab)

4 years agocloses bpo-42726: gdb libpython: InstanceProxy support for py3 (GH-23912)
Miss Islington (bot) [Thu, 24 Dec 2020 17:37:07 +0000 (09:37 -0800)] 
closes bpo-42726: gdb libpython: InstanceProxy support for py3 (GH-23912)

On Fedora 31 gdb is using python 3.7.9, calling `proxyval` on an instance with a dictionary fails because of the `dict.iteritems` usage. This PR changes the code to be compatible with py2 and py3.

This changed seemed small enough to not need an issue and news blurb, if one is required please let me know.

Automerge-Triggered-By: GH:benjaminp
(cherry picked from commit b57ada98da0d5b0cf1ebc2c9c5502d04aa962042)

Co-authored-by: Augusto Hack <hack.augusto@gmail.com>
4 years agobpo-42195: Override _CallableGenericAlias's __getitem__ (GH-23915)
Miss Islington (bot) [Thu, 24 Dec 2020 03:07:51 +0000 (19:07 -0800)] 
bpo-42195: Override _CallableGenericAlias's __getitem__ (GH-23915)

Added `__getitem__` for `_CallableGenericAlias` so that it returns a subclass (itself) of `types.GenericAlias` rather than the default behavior of returning a plain `types.GenericAlias`. This fixes `repr` issues occuring after `TypeVar` substitution arising from the previous behavior.
(cherry picked from commit 6dd3da3cf4a0d6cb62d9c2a155434c127183454d)

Co-authored-by: kj <28750310+Fidget-Spinner@users.noreply.github.com>
4 years agoBPO-42703: Fix incorrect documentation links for asyncio.Event (GH-23881)
Miss Islington (bot) [Wed, 23 Dec 2020 11:13:51 +0000 (03:13 -0800)] 
BPO-42703: Fix incorrect documentation links for asyncio.Event (GH-23881)

(cherry picked from commit d90ff376813843310a6f9ccc96551fa1521e8fef)

Co-authored-by: Matt Fowler <matt.fow@gmail.com>
4 years agobpo-42620: Improve socket.getsockname doc string (GH-23742)
Miss Islington (bot) [Wed, 23 Dec 2020 07:48:04 +0000 (23:48 -0800)] 
bpo-42620: Improve socket.getsockname doc string (GH-23742)

Signed-off-by: Christian Heimes <christian@python.org>
(cherry picked from commit cf3565ca9a7ed0f7decd000e41fa3de400986e4d)

Co-authored-by: Christian Heimes <christian@python.org>
4 years agobpo-34463: Make python tracebacks identical to C tracebacks for SyntaxErrors without...
Miss Islington (bot) [Tue, 22 Dec 2020 22:12:30 +0000 (14:12 -0800)] 
bpo-34463: Make python tracebacks identical to C tracebacks for SyntaxErrors without a lineno (GH-23427)

(cherry picked from commit 069560b1171eb6385121ff3b6331e8814a4e7454)

Co-authored-by: Irit Katriel <iritkatriel@yahoo.com>
4 years agobpo-29030: Document interaction between *choices* and *metavar*. (GH-23884) (GH-23894)
Miss Islington (bot) [Tue, 22 Dec 2020 18:19:24 +0000 (10:19 -0800)] 
bpo-29030: Document interaction between *choices* and *metavar*. (GH-23884) (GH-23894)

4 years ago[3.9] [doc] Fix a few margins due to bad markup (GH-23619). (GH-23859)
Andre Delfino [Tue, 22 Dec 2020 02:53:50 +0000 (23:53 -0300)] 
[3.9] [doc] Fix a few margins due to bad markup (GH-23619). (GH-23859)

(cherry picked from commit 96a09df64483b70c4215c7025a19b9d2f1636c55)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
4 years ago[3.9] [doc] Fix erroneous backslashes in signatures and names (GH-23658) (GH-23827)
Andre Delfino [Tue, 22 Dec 2020 02:52:19 +0000 (23:52 -0300)] 
[3.9] [doc] Fix erroneous backslashes in signatures and names (GH-23658) (GH-23827)

The issue being resolved is shown in the 3.10 docs (if you select docs for older versions you won't see a visual glitch).

The newer sphinx version that produces the 3.10 docs doesn't treat the backslash to escape things in some situations it previously did..
(cherry picked from commit dcc997cd28ab33ebac44182ee55533c1b37689f7)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
4 years agoFix typo in docstring (GH-23515)
Miss Islington (bot) [Mon, 21 Dec 2020 14:29:57 +0000 (06:29 -0800)] 
Fix typo in docstring (GH-23515)

(cherry picked from commit 711381dfb09fbd434cc3b404656f7fd306161a64)

Co-authored-by: Fernando Toledo <42938011+fernandohtr@users.noreply.github.com>
4 years agobpo-42669: Document that `except` rejects nested tuples (GH-23822) (GH-23870)
Miss Islington (bot) [Sun, 20 Dec 2020 21:18:08 +0000 (13:18 -0800)] 
bpo-42669: Document that `except` rejects nested tuples (GH-23822) (GH-23870)

In Python 2, it was possible to use `except` with a nested tuple, and occasionally natural.  For example, `zope.formlib.interfaces.InputErrors` is a tuple of several exception classes, and one might reasonably think to do something like this:

    try:
        self.getInputValue()
        return True
    except (InputErrors, SomethingElse):
        return False

As of Python 3.0, this raises `TypeError: catching classes that do not inherit from BaseException is not allowed` instead: one must instead either break it up into multiple `except` clauses or flatten the tuple.  However, the reference documentation was never updated to match this new restriction.  Make it clear that the definition is no longer recursive.

Automerge-Triggered-By: GH:ericvsmith
(cherry picked from commit c95f8bc2700b42f4568886505a819816c9b0ba28)

Co-authored-by: Colin Watson <cjwatson@debian.org>
Co-authored-by: Colin Watson <cjwatson@debian.org>
4 years agobpo-42572: Improve argparse docs for the type parameter. (GH-23849) (GH-23869)
Miss Islington (bot) [Sun, 20 Dec 2020 18:51:20 +0000 (10:51 -0800)] 
bpo-42572:  Improve argparse docs for the type parameter. (GH-23849) (GH-23869)

4 years agobpo-42604: always set EXT_SUFFIX=${SOABI}${SHLIB_SUFFIX} when using configure (GH...
Miss Islington (bot) [Sun, 20 Dec 2020 04:54:18 +0000 (20:54 -0800)] 
bpo-42604: always set EXT_SUFFIX=${SOABI}${SHLIB_SUFFIX} when using configure (GH-23708) (GH-23866)

Now all platforms use a value for the "EXT_SUFFIX" build variable derived
from SOABI (for instance in FreeBSD, "EXT_SUFFIX" is now ".cpython-310d.so"
instead of ".so"). Previously only Linux, Mac and VxWorks were using a value
for "EXT_SUFFIX" that included "SOABI".

Co-authored-by: Pablo Galindo <pablogsal@gmail.com>
(cherry picked from commit a44ce6c9f725d336aea51a946b42769f29fed613)

Co-authored-by: Matti Picus <matti.picus@gmail.com>
Co-authored-by: Matti Picus <matti.picus@gmail.com>
4 years agobpo-41724: Explain when the conversion is not possible with detect_types enabled...
Miss Islington (bot) [Sun, 20 Dec 2020 00:02:25 +0000 (16:02 -0800)] 
bpo-41724: Explain when the conversion is not possible with detect_types enabled (GH-23855) (GH-23862)

* Explain when the conversion is not possible with detect_types enabled
(cherry picked from commit 09a36cdfb7c22f44df45b44e5561776206bcedfb)

Co-authored-by: sblondon <sblondon@users.noreply.github.com>
Co-authored-by: sblondon <sblondon@users.noreply.github.com>
4 years ago[3.9] bpo-42675: Document collections.abc.Callable changes (GH-23839) (#23852)
kj [Sat, 19 Dec 2020 22:32:06 +0000 (06:32 +0800)] 
[3.9] bpo-42675: Document collections.abc.Callable changes (GH-23839) (#23852)

4 years agobpo-40219: Lowered ttk LabeledScale dummy (GH-21467) (GH-23788)
Miss Islington (bot) [Sat, 19 Dec 2020 17:28:59 +0000 (09:28 -0800)] 
bpo-40219: Lowered ttk LabeledScale dummy (GH-21467) (GH-23788)

(cherry picked from commit b9ced83cf427ec86802ba4c9a562c6d9cafc72f5)

4 years ago[3.9] bpo-42630: Improve error reporting in Tkinter for absent default root (GH-23781...
Serhiy Storchaka [Sat, 19 Dec 2020 11:08:07 +0000 (13:08 +0200)] 
[3.9] bpo-42630: Improve error reporting in Tkinter for absent default root (GH-23781) (GH-23853)

* Tkinter functions and constructors which need a default root window
  raise now RuntimeError with descriptive message instead of obscure
  AttributeError or NameError if it is not created yet or cannot
  be created automatically.

* Add tests for all functions which use default root window.

* Fix import in the pynche script.

(cherry picked from commit 3d569fd6dccf9f582bafaca04d3535094cae393e)

4 years agobpo-42559: Not that getrandbits() is non-negative. (GH-23843) (GH-23851)
Miss Islington (bot) [Sat, 19 Dec 2020 03:10:06 +0000 (19:10 -0800)] 
bpo-42559: Not that getrandbits() is non-negative. (GH-23843) (GH-23851)

4 years agobpo-34805: Guarantee that __subclasses__() is in definition order. (GH-23844) (GH...
Miss Islington (bot) [Sat, 19 Dec 2020 01:17:32 +0000 (17:17 -0800)] 
bpo-34805:  Guarantee that __subclasses__() is in definition order. (GH-23844) (GH-23850)

4 years agobpo-42670: Fix a missing word in the itertools.product() docs (GH-23823) (GH-23824)
Miss Islington (bot) [Sat, 19 Dec 2020 00:55:52 +0000 (16:55 -0800)] 
bpo-42670: Fix a missing word in the itertools.product() docs (GH-23823) (GH-23824)

4 years agobpo-36769: Document that fnmatch.filter supports any kind of iterable (GH-13039)
Miss Islington (bot) [Fri, 18 Dec 2020 19:34:27 +0000 (11:34 -0800)] 
bpo-36769: Document that fnmatch.filter supports any kind of iterable (GH-13039)

(cherry picked from commit e8d22642105d57007ab1242848a8cbadc7f179df)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
4 years agobpo-41891: ensure asyncio.wait_for waits for task completion (GH-22461) (#23840)
Miss Islington (bot) [Fri, 18 Dec 2020 19:19:10 +0000 (11:19 -0800)] 
bpo-41891: ensure asyncio.wait_for waits for task completion (GH-22461) (#23840)

(cherry picked from commit 17ef4319a34f5a2f95e7823dfb5f5b8cff11882d)

Co-authored-by: Richard Kojedzinszky <rkojedzinszky@users.noreply.github.com>
Co-authored-by: Richard Kojedzinszky <rkojedzinszky@users.noreply.github.com>
4 years agobpo-17140: Document multiprocessing's ThreadPool (GH-23812)
Miss Islington (bot) [Fri, 18 Dec 2020 13:27:02 +0000 (05:27 -0800)] 
bpo-17140: Document multiprocessing's ThreadPool (GH-23812)

Up until now, the `multiprocessing.pool.ThreadPool` class has gone
undocumented, despite being a public class in multiprocessing that is
included in `multiprocessing.pool.__all__`.
(cherry picked from commit 84ebcf271a2cc8bfd1762acb279502b8b6ef236e)

Co-authored-by: Matt Wozniski <mwozniski@bloomberg.net>
4 years agobpo-39096: Format specification documentation fixes for numeric types (GH-23575)
Miss Islington (bot) [Fri, 18 Dec 2020 09:49:19 +0000 (01:49 -0800)] 
bpo-39096: Format specification documentation fixes for numeric types (GH-23575)

(cherry picked from commit 886b2e5c7a2caf87070728dba8f18c3d65e51071)

Co-authored-by: Mark Dickinson <mdickinson@enthought.com>
4 years agobpo-42613: Fix freeze.py config directory (GH-23792) (GH-23817)
Miss Islington (bot) [Thu, 17 Dec 2020 14:29:36 +0000 (06:29 -0800)] 
bpo-42613: Fix freeze.py config directory (GH-23792) (GH-23817)

Fix freeze.py tool to use the prope config and library directories.
(cherry picked from commit 1c653f17cb84d81df3a74ab0b42140d2bb68c5c4)

Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Victor Stinner <vstinner@python.org>
4 years agobpo-26564: fix obsolete comment in traceback.c (GH-23819)
Miss Islington (bot) [Thu, 17 Dec 2020 13:19:58 +0000 (05:19 -0800)] 
bpo-26564: fix obsolete comment in traceback.c (GH-23819)

(cherry picked from commit 40125ab3252453bf205ed906e46bf9741c27bf9d)

Co-authored-by: Irit Katriel <iritkatriel@yahoo.com>
4 years agobpo-42375: subprocess DragonFlyBSD build update. (GH-23320) (GH-23388)
Miss Islington (bot) [Thu, 17 Dec 2020 11:15:20 +0000 (03:15 -0800)] 
bpo-42375: subprocess DragonFlyBSD build update. (GH-23320) (GH-23388)

Same as FreeBSD, file descriptors in /dev/fd id from 0 to 63.
(cherry picked from commit 13b865f0e17c88b081c23f7f05cf91166d220a50)

Co-authored-by: David CARLIER <devnexen@gmail.com>
Co-authored-by: David CARLIER <devnexen@gmail.com>
4 years agobpo-41804: Enhance test_epoll.test_control_and_wait() (GH-23795)
Miss Islington (bot) [Thu, 17 Dec 2020 08:03:50 +0000 (00:03 -0800)] 
bpo-41804: Enhance test_epoll.test_control_and_wait() (GH-23795)

Use shorter timeout and replace send() with sendall().
(cherry picked from commit 79782fe4f8cf73d7fdf8db02073bbadf7ff817b6)

Co-authored-by: Victor Stinner <vstinner@python.org>
4 years agoFix indentation for get_stats_profile() docs (GH-23618)
Miss Islington (bot) [Wed, 16 Dec 2020 23:18:39 +0000 (15:18 -0800)] 
Fix indentation for get_stats_profile() docs (GH-23618)

The existing method is indented one too many times which
makes it look like a sub-method of print_callees().
(cherry picked from commit a6ba2b901543f3006ecdb2ad8b18cb00439ff9b2)

Co-authored-by: Matthew Suozzo <msuozzo@google.com>
4 years agobpo-37961: Fix regression in tracemalloc.Traceback.__repr__ (GH-23805)
Miss Islington (bot) [Wed, 16 Dec 2020 22:01:14 +0000 (14:01 -0800)] 
bpo-37961: Fix regression in tracemalloc.Traceback.__repr__ (GH-23805)

Regression in 8d59eb1b66c51b2b918da9881c57d07d08df43b7.
(cherry picked from commit 051b9818671625d125dee8198e0d2af5ad4c85b8)

Co-authored-by: Daniel Hahler <git@thequod.de>
4 years agoAdd symbols of the stable ABI to python3dll.c (GH-23598) (GH-23801)
Victor Stinner [Wed, 16 Dec 2020 21:41:47 +0000 (22:41 +0100)] 
Add symbols of the stable ABI to python3dll.c (GH-23598) (GH-23801)

Add the following symbols to python3dll.c:

* PyFrame_GetCode (bpo-40421)
* PyFrame_GetLineNumber (bpo-40421)
* PyObject_CallNoArgs (bpo-37194)
* PyThreadState_GetFrame (bpo-39947)
* PyThreadState_GetID (bpo-39947)
* PyThreadState_GetInterpreter (bpo-39947)

(cherry picked from commit fcc6935384b933fbe1a1ef659ed455a3b74c849a)

4 years agobpo-38323: Add guard clauses in MultiLoopChildWatcher. (GH-22756)
Miss Islington (bot) [Wed, 16 Dec 2020 18:10:37 +0000 (10:10 -0800)] 
bpo-38323: Add guard clauses in MultiLoopChildWatcher. (GH-22756)

This is a trivial refactor in preparation for a fix for bpo-38323.
(cherry picked from commit 66d3b589c44fcbcf9afe1e442d9beac3bd8bcd34)

Co-authored-by: Chris Jerdonek <chris.jerdonek@gmail.com>
4 years agobpo-39101: Fixes BaseException hang in IsolatedAsyncioTestCase. (GH-22654)
Miss Islington (bot) [Wed, 16 Dec 2020 17:56:10 +0000 (09:56 -0800)] 
bpo-39101: Fixes BaseException hang in IsolatedAsyncioTestCase. (GH-22654)

(cherry picked from commit 8374d2ee1589791be8892b00f4bbf8121dde24bd)

Co-authored-by: Lisa Roach <lisaroach14@gmail.com>
4 years agobpo-40686: Fix compiler warnings on _zoneinfo.c (GH-23614) (GH-23804)
Miss Islington (bot) [Wed, 16 Dec 2020 16:33:05 +0000 (08:33 -0800)] 
bpo-40686: Fix compiler warnings on _zoneinfo.c (GH-23614) (GH-23804)

"uint8_t day" is unsigned and so "day < 0" test is always true.
Remove the test to fix the following warnings on Windows:

modules\_zoneinfo.c(1224): warning C4068: unknown pragma
modules\_zoneinfo.c(1225): warning C4068: unknown pragma
modules\_zoneinfo.c(1227): warning C4068: unknown pragma
(cherry picked from commit aefb69b23f056c61e82ad228d950f348de090c70)

Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Victor Stinner <vstinner@python.org>
4 years agobpo-19733: Re-enable tests for -image option in Tkinter (GH-23785)
Miss Islington (bot) [Wed, 16 Dec 2020 10:54:04 +0000 (02:54 -0800)] 
bpo-19733: Re-enable tests for -image option in Tkinter (GH-23785)

(cherry picked from commit 5f0fe8ec70120f4586d08978b0911b436f82c421)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 years agobpo-42644: Validate values in logging.disable() (GH-23786)
Miss Islington (bot) [Wed, 16 Dec 2020 10:12:08 +0000 (02:12 -0800)] 
bpo-42644: Validate values in logging.disable() (GH-23786)

* bpo-42644: Validate values in logging.disable()

Technically make the value of manager a property that checks and convert
values assigned to it properly. This has the side effect of making
`logging.disable` also accept strings representing the various level of
warnings.

We want to validate the type of the disable attribute at assignment
time, as it is later compared to other levels when emitting warnings and
would generate a `TypeError: '>=' not supported between ....` in a
different part of the code base, which can make it difficult to track
down.

When assigned an incorrect value; it will raise a TypeError when the
wrong type, or ValueError if an invalid str.

Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
(cherry picked from commit b32d8b4f9bcd2e7d11240b6b9de0262cf8f5e09d)

Co-authored-by: Matthias Bussonnier <bussonniermatthias@gmail.com>
4 years ago[3.9] bpo-42318: Fix support of non-BMP characters in Tkinter on macOS (GH-23281...
Serhiy Storchaka [Tue, 15 Dec 2020 18:44:44 +0000 (20:44 +0200)] 
[3.9] bpo-42318: Fix support of non-BMP characters in Tkinter on macOS (GH-23281). (GH-23784)

(cherry picked from commit a26215db11cfcf7b5f55cab9e91396761a0e0bcf)

4 years agobpo-33610: Edit idlelib.codecontext (GH-23773) (GH-23775)
Miss Islington (bot) [Tue, 15 Dec 2020 12:51:56 +0000 (04:51 -0800)] 
bpo-33610: Edit idlelib.codecontext (GH-23773) (GH-23775)

Add sentence to module docstring and import tkinter items.
(cherry picked from commit 6f79e60b66dacefca147bdaa80eb37f936a72991)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
4 years ago[3.9] bpo-42567: [Enum] call __init_subclass__ after members are added (GH-23714...
Ethan Furman [Tue, 15 Dec 2020 02:41:34 +0000 (18:41 -0800)] 
[3.9] bpo-42567: [Enum] call __init_subclass__ after members are added (GH-23714) (GH-23772)

When creating an Enum, `type.__new__` calls `__init_subclass__`, but at that point the members have not been added.

This patch suppresses the initial call, then manually calls the ancestor `__init_subclass__` before returning the new Enum class.
(cherry picked from commit 6bd94de168b58ac9358277ed6f200490ab26c174)

4 years ago[3.9] bpo-42517: [Enum] deprecate private name members (GH-23722) (GH-23748)
Miss Islington (bot) [Mon, 14 Dec 2020 23:56:58 +0000 (15:56 -0800)] 
[3.9] bpo-42517: [Enum] deprecate private name members (GH-23722) (GH-23748)

private names will raise a DeprecationWarning; in 3.10 they will become normal attributes

4 years agobpo-42591: Export missing Py_FrozenMain() symbol (GH-23730) (GH-23734)
Victor Stinner [Mon, 14 Dec 2020 23:31:54 +0000 (00:31 +0100)] 
bpo-42591: Export missing Py_FrozenMain() symbol (GH-23730) (GH-23734)

Export the Py_FrozenMain() function: fix a Python 3.9.0 regression.
Python 3.9 uses -fvisibility=hidden and the function was not exported
explicitly and so not exported.

(cherry picked from commit b5c7b38f5ebbc84b5b80192db1743d3e1cdcf4c5)

4 years agobpo-40084: Enum - dir() includes member attributes (GH-19219)
Miss Islington (bot) [Mon, 14 Dec 2020 22:43:43 +0000 (14:43 -0800)] 
bpo-40084: Enum - dir() includes member attributes (GH-19219)

(cherry picked from commit 68526fe258da8c01196fd7cf48e8e5f1280bf8fd)

Co-authored-by: Angelin BOOZ <9497359+lem2clide@users.noreply.github.com>
4 years agobpo-42059: Fix required/optional keys for TypedDict(..., total=False) (GH-22736)...
Miss Islington (bot) [Mon, 14 Dec 2020 22:33:27 +0000 (14:33 -0800)] 
bpo-42059: Fix required/optional keys for TypedDict(..., total=False) (GH-22736) (GH-23747)

(cherry picked from commit 67b769f5157c9dad1c7dd6b24e067b9fdab5b35d)

Co-authored-by: Alex Grönholm <alex.gronholm@nextday.fi>
4 years agobpo-36541: Add lib2to3 grammar PEP-570 pos-only arg parsing (GH-23759)
Miss Islington (bot) [Mon, 14 Dec 2020 17:38:03 +0000 (09:38 -0800)] 
bpo-36541: Add lib2to3 grammar PEP-570 pos-only arg parsing (GH-23759)

Add positional only args support to lib2to3 pgen2.

This adds 3.8's PEP-570 support to lib2to3's pgen2.  lib2to3, while
being deprecated is still used by things to parse all versions of Python
code today.  We need it to support parsing modern 3.8 and 3.9 constructs.

Also add tests for complex *expr and **expr's.
(cherry picked from commit 42c9f0fd0a5e67d4ae0022bfd7370cb9725a5b01)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
4 years ago[3.9] bpo-42195: Ensure consistency of Callable's __args__ in collections.abc and...
kj [Mon, 14 Dec 2020 16:30:45 +0000 (00:30 +0800)] 
[3.9] bpo-42195: Ensure consistency of Callable's __args__ in collections.abc and typing (GH-23765)

Backport of GH-23060.

4 years ago[3.9] bpo-42532: Check if NonCallableMock's spec_arg is not None instead of call...
Karthikeyan Singaravelan [Mon, 14 Dec 2020 05:49:16 +0000 (11:19 +0530)] 
[3.9] bpo-42532: Check if NonCallableMock's spec_arg is not None instead of call its __bool__ function (GH-23613) (GH-23676)

Check if NonCallableMock's spec_arg is not None instead of call its __bool__ function
(cherry picked from commit c598a04dd29b89ad072245ddaf738badcfb41ac7)

Co-authored-by: idanw206 <31290383+idanw206@users.noreply.github.com>
4 years agobpo-42598: Fix implicit function declarations in configure (GH-23690) (GH-23756)
Miss Islington (bot) [Sun, 13 Dec 2020 22:01:00 +0000 (14:01 -0800)] 
bpo-42598: Fix implicit function declarations in configure (GH-23690) (GH-23756)

This is invalid in C99 and later and is an error with some compilers
(e.g. clang in Xcode 12), and can thus cause configure checks to
produce incorrect results.
(cherry picked from commit 674fa0a740151e0416c9383f127b16014e805990)

Co-authored-by: Joshua Root <jmr@macports.org>
4 years ago[3.9] bpo-41879: Doc: Fix description of async for statement (GH-23548) (GH-23749)
Miss Islington (bot) [Sun, 13 Dec 2020 04:24:31 +0000 (20:24 -0800)] 
[3.9] bpo-41879: Doc: Fix description of async for statement (GH-23548) (GH-23749)

Fix the wording in the documentation of `async for` to correctly describe asynchronous iterables.  This fix is relevant for version 3.7 onward.
(cherry picked from commit 4b8cdfcb22fbeaab9d954cb693a7fb3362a382b6)

Co-authored-by: Nick Gaya <nicholasgaya+github@gmail.com>
4 years ago[3.9] [doc] Link to issue regarding logging.disable level param default value GH...
Andre Delfino [Thu, 10 Dec 2020 14:20:04 +0000 (11:20 -0300)] 
[3.9] [doc] Link to issue regarding logging.disable level param default value GH-23732

(cherry picked from commit 2a35137328154aa2513649dcf0bbef02c998e27c)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
4 years ago[3.9] [Enum] reformat and add doc strings (GH-23705). (GH-23707)
Ethan Furman [Tue, 8 Dec 2020 22:29:02 +0000 (14:29 -0800)] 
[3.9] [Enum] reformat and add doc strings (GH-23705). (GH-23707)

* [3.9] [Enum] reformat and add doc strings (GH-23705).

4 years agobpo-41907: [Enum] fix format() behavior for IntFlag (GH-22497) (GH-23703)
Miss Islington (bot) [Tue, 8 Dec 2020 19:52:24 +0000 (11:52 -0800)] 
bpo-41907: [Enum] fix format() behavior for IntFlag (GH-22497) (GH-23703)

(cherry picked from commit 37440eef7f9a0c27e13fc9ce0850574bb00688b0)

4 years ago[3.9] bpo-41910: move news entry (GH-23697)
Terry Jan Reedy [Tue, 8 Dec 2020 18:00:13 +0000 (13:00 -0500)] 
[3.9] bpo-41910: move news entry (GH-23697)

4 years agobpo-32381: Fix PyRun_SimpleFileExFlags() encoding (GH-23642) (GH-23692)
Victor Stinner [Tue, 8 Dec 2020 15:16:05 +0000 (16:16 +0100)] 
bpo-32381: Fix PyRun_SimpleFileExFlags() encoding (GH-23642) (GH-23692)

Fix encoding name when running a ".pyc" file on Windows:
PyRun_SimpleFileExFlags() now uses the correct encoding to decode the
filename.

* Add pyrun_file() subfunction.
* Add pyrun_simple_file() subfunction.
* PyRun_SimpleFileExFlags() now calls _Py_fopen_obj() rather than
  _Py_fopen().

(cherry picked from commit b6d98c10fff6f320f8fdf595c3f9a05d8be4e31d)

4 years agoPost 3.9.1
Łukasz Langa [Tue, 8 Dec 2020 02:09:53 +0000 (03:09 +0100)] 
Post 3.9.1

4 years agoMerge tag 'v3.9.1' into 3.9
Łukasz Langa [Tue, 8 Dec 2020 02:09:42 +0000 (03:09 +0100)] 
Merge tag 'v3.9.1' into 3.9

Python 3.9.1

4 years agobpo-41889: [Enum] fix multiple-inheritance regression (GH-22487) (GH-23673)
Miss Islington (bot) [Mon, 7 Dec 2020 23:51:16 +0000 (15:51 -0800)] 
bpo-41889: [Enum] fix multiple-inheritance regression (GH-22487) (GH-23673)

(cherry picked from commit c266736ec1f9ebef38b134ceb4832df015711b38)

4 years agobpo-42536: GC track recycled tuples (GH-23623) (GH-23651)
Brandt Bucher [Mon, 7 Dec 2020 20:07:48 +0000 (12:07 -0800)] 
bpo-42536: GC track recycled tuples (GH-23623) (GH-23651)

Several built-in and standard library types now ensure that their internal result tuples are always tracked by the garbage collector:

- collections.OrderedDict.items
- dict.items
- enumerate
- functools.reduce
- itertools.combinations
- itertools.combinations_with_replacement
- itertools.permutations
- itertools.product
- itertools.zip_longest
- zip

Previously, they could have become untracked by a prior garbage collection.
(cherry picked from commit 226a012d1cd61f42ecd3056c554922f359a1a35d)

4 years agobpo-39825: Fixes sysconfig.get_config_var('EXT_SUFFIX') on Windows to match distutils...
Miss Islington (bot) [Mon, 7 Dec 2020 17:56:44 +0000 (09:56 -0800)] 
bpo-39825: Fixes sysconfig.get_config_var('EXT_SUFFIX') on Windows to match distutils (GH-22088)

(cherry picked from commit c0afb7fa0ebd1c0e95c0760bbe75a99a8dd12ea6)

Co-authored-by: Matti Picus <matti.picus@gmail.com>
4 years agoPython 3.9.1 v3.9.1
Łukasz Langa [Mon, 7 Dec 2020 14:02:38 +0000 (15:02 +0100)] 
Python 3.9.1

4 years agobpo-38843: Document behavior of default when the attribute is already set (GH-23653...
Miss Islington (bot) [Mon, 7 Dec 2020 05:17:09 +0000 (21:17 -0800)] 
bpo-38843: Document behavior of default when the attribute is already set (GH-23653) (#23668)

(cherry picked from commit 752cdf21eb2be0a26ea6a34a0de33a458459aead)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
4 years agobpo-42508: Keep IDLE running on macOS (GH-23577) (GH-23669)
Miss Islington (bot) [Mon, 7 Dec 2020 03:48:48 +0000 (19:48 -0800)] 
bpo-42508: Keep IDLE running on macOS (GH-23577) (GH-23669)

Remove obsolete workaround that prevented running files with
shortcuts when using new universal2 installers built on macOS 11.
Ignore buggy 2nd run_module_event call.
(cherry picked from commit 57e511361047895231f5ee7abfdfbbc60e11d2db)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
4 years ago[3.9] bpo-42576: Clarify only debug builds are affected in news (GH-23663) (GH-23666)
Miss Islington (bot) [Sun, 6 Dec 2020 17:00:57 +0000 (09:00 -0800)] 
[3.9] bpo-42576: Clarify only debug builds are affected in news (GH-23663) (GH-23666)

(cherry picked from commit 6a7fb9d31bce8590e30c44458d1fc1da4539743d)

Co-authored-by: kj <28750310+Fidget-Spinner@users.noreply.github.com>
Automerge-Triggered-By: GH:gvanrossum
4 years agobpo-42576: Raise TypeError when passing in keyword arguments to GenericAlias (GH...
Miss Islington (bot) [Sat, 5 Dec 2020 16:24:38 +0000 (08:24 -0800)] 
bpo-42576: Raise TypeError when passing in keyword arguments to GenericAlias (GH-23656)

Use `_PyArg_NoKeywords` instead of `_PyArg_NoKwnames` when checking the `kwds` tuple when creating `GenericAlias`. This fixes an interpreter crash when passing in keyword arguments to `GenericAlias`'s constructor.

Needs backport to 3.9.

Automerge-Triggered-By: GH:gvanrossum
(cherry picked from commit 804d6893b801e8f30318afc38c20d4d0e6161db3)

Co-authored-by: kj <28750310+Fidget-Spinner@users.noreply.github.com>
4 years ago[3.9] bpo-5054: CGIHTTPRequestHandler.run_cgi() HTTP_ACCEPT improperly parsed (GH...
Miss Islington (bot) [Sat, 5 Dec 2020 15:26:37 +0000 (07:26 -0800)] 
[3.9] bpo-5054: CGIHTTPRequestHandler.run_cgi() HTTP_ACCEPT improperly parsed (GH-23638) (GH-23657)

(cherry picked from commit da3d2abe6be9fcf18cac12ec5d7d9f1180d94b5e)

Co-authored-by: Senthil Kumaran <senthil@uthcode.com>
Automerge-Triggered-By: GH:orsenthil
4 years ago[3.9] bpo-41116: Fix setup.py test for macOS Tcl/Tk frameworks (GH-23649) (GH-23650)
Miss Islington (bot) [Sat, 5 Dec 2020 04:26:59 +0000 (20:26 -0800)] 
[3.9] bpo-41116: Fix setup.py test for macOS Tcl/Tk frameworks (GH-23649) (GH-23650)

If no explicit macOS SDK was specified, setup.py should check for
Tcl and TK frameworks in /Library/Frameworks; the previous commit
inadvertently broke that test.
(cherry picked from commit 29afab6c5f656f07ac85c9b2cf089631b2557a11)

Co-authored-by: Ned Deily <nad@python.org>
4 years agobpo-17735: inspect.findsource now raises OSError when co_lineno is out of range ...
Miss Islington (bot) [Fri, 4 Dec 2020 22:41:58 +0000 (14:41 -0800)] 
bpo-17735: inspect.findsource now raises OSError when co_lineno is out of range (GH-23633)

This can happen when a file was edited after it was imported.
(cherry picked from commit 2e0760bb2edb595050aff82f236cd32b44d3dfb3)

Co-authored-by: Irit Katriel <iritkatriel@yahoo.com>
4 years ago[3.9] bpo-42482: remove reference to exc_traceback from TracebackException (GH-23531...
Miss Islington (bot) [Fri, 4 Dec 2020 20:57:31 +0000 (12:57 -0800)] 
[3.9] bpo-42482: remove reference to exc_traceback from TracebackException (GH-23531) (GH-23578)

(cherry picked from commit 427613f005f0f412d12f0d775d2b609bae0ae1ad)

Co-authored-by: Irit Katriel <iritkatriel@yahoo.com>
4 years agobpo-42116: Fix inspect.getsource handling of trailing comments (GH-23630)
Miss Islington (bot) [Fri, 4 Dec 2020 20:20:05 +0000 (12:20 -0800)] 
bpo-42116: Fix inspect.getsource handling of trailing comments (GH-23630)

(cherry picked from commit 6e1eec71f59c344fb23c7977061dc2c97b77d51b)

Co-authored-by: Irit Katriel <iritkatriel@yahoo.com>
4 years agobpo-41473: Reenable test_gdb on gdb 9.2 and newer (GH-23637)
Miss Islington (bot) [Fri, 4 Dec 2020 15:47:44 +0000 (07:47 -0800)] 
bpo-41473: Reenable test_gdb on gdb 9.2 and newer (GH-23637)

https://bugzilla.redhat.com/show_bug.cgi?id=1866884 is fixed in gdb
10.1 (failed to reproduce on gdb-10.1-1.fc34.aarch64).
(cherry picked from commit 066394018a8463643cc63d933493f0afa99d72cc)

Co-authored-by: Victor Stinner <vstinner@python.org>
4 years agobpo-42523: Fix supported versions in "Using Python on Windows" (GH-23603)
Miss Islington (bot) [Thu, 3 Dec 2020 17:46:58 +0000 (09:46 -0800)] 
bpo-42523: Fix supported versions in "Using Python on Windows" (GH-23603)

(cherry picked from commit db68544122f5a0c7b80f69c0e643049efa6699c6)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
4 years agobpo-42553: Fix test_asyncio.test_call_later() (GH-23627)
Miss Islington (bot) [Thu, 3 Dec 2020 13:20:07 +0000 (05:20 -0800)] 
bpo-42553: Fix test_asyncio.test_call_later() (GH-23627)

Fix test_asyncio.test_call_later() race condition: don't measure
asyncio performance in the call_later() unit test. The test failed
randomly on the CI.
(cherry picked from commit 7e5e13d113798117d5ef25c5ffdbd0eb39420f98)

Co-authored-by: Victor Stinner <vstinner@python.org>
4 years agobpo-42328: Skip some tests with themes vista and xpnative on Windows 7 (GH-23612)
Miss Islington (bot) [Thu, 3 Dec 2020 09:10:23 +0000 (01:10 -0800)] 
bpo-42328: Skip some tests with themes vista and xpnative on Windows 7 (GH-23612)

(cherry picked from commit f3c3ea91a76526edff928c95b9c6767e077b7448)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 years agobpo-42504: fix for MACOSX_DEPLOYMENT_TARGET=11 (GH-23556)
Miss Islington (bot) [Thu, 3 Dec 2020 03:43:08 +0000 (19:43 -0800)] 
bpo-42504: fix for MACOSX_DEPLOYMENT_TARGET=11 (GH-23556)

macOS releases numbering has changed as of macOS 11 Big Sur.  Previously, major releases were of the form 10.x, 10.x+1, 10.x+2, etc; as of Big Sur, they are now x, x+1, etc, so, for example, 10.15, 10.15.1, ..., 10.15.7, 11, 11.0.1, 11.1, ..., 12, 12.1, etc. Allow Python to build with single-digit deployment target values. Patch provided by FX Coudert.
(cherry picked from commit 5291639e611dc3f55a34666036f2c3424648ba50)

Co-authored-by: FX Coudert <fxcoudert@gmail.com>
4 years agobpo-42521: Add note about 'Python -d' only working on debug builds (GH-23607)
Miss Islington (bot) [Wed, 2 Dec 2020 22:01:23 +0000 (14:01 -0800)] 
bpo-42521: Add note about 'Python -d' only working on debug builds (GH-23607)

(cherry picked from commit 99b594404d364b363c184f48338d6ee81bee26dd)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
4 years agobpo-37221: PyCode_New() didn't change in Python 3.8 (GH-23595)
Miss Islington (bot) [Tue, 1 Dec 2020 15:54:54 +0000 (07:54 -0800)] 
bpo-37221: PyCode_New() didn't change in Python 3.8 (GH-23595)

(cherry picked from commit 1867b462de427bcb8dfbcd256028410aea6ae929)

Co-authored-by: Victor Stinner <vstinner@python.org>
4 years ago[3.9] build(deps): bump actions/upload-artifact from v2.2.0 to v2.2.1 (GH-23597)
Benjamin Peterson [Tue, 1 Dec 2020 15:30:03 +0000 (09:30 -0600)] 
[3.9] build(deps): bump actions/upload-artifact from v2.2.0 to v2.2.1 (GH-23597)

Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from v2.2.0 to v2.2.1.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v2.2.0...726a6dcd0199f578459862705eed35cda05af50b)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
(cherry picked from commit 8acd0e0d4976e91500149ee189f369f2b83b7537)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years agobuild(deps): bump actions/cache from v2.1.2 to v2.1.3 (23582)
Miss Islington (bot) [Tue, 1 Dec 2020 15:24:20 +0000 (07:24 -0800)] 
build(deps): bump actions/cache from v2.1.2 to v2.1.3 (23582)

Bumps [actions/cache](https://github.com/actions/cache) from v2.1.2 to v2.1.3.
- [Release notes](https://github.com/actions/cache/releases)
- [Commits](https://github.com/actions/cache/compare/v2.1.2...0781355a23dac32fd3bac414512f4b903437991a)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
(cherry picked from commit a43fea88577c460eed7cc92a37b5fce787d6aab1)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years agoAdd GCC pragmas to silence compiler warning about ffi_prep_closure (GH-23327) (GH...
Miss Islington (bot) [Tue, 1 Dec 2020 15:07:50 +0000 (07:07 -0800)] 
Add GCC pragmas to silence compiler warning about ffi_prep_closure (GH-23327) (GH-23590)

(cherry picked from commit cce3f0b0c88eba98bc11abe703a444bee7880ff8)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
4 years ago[3.9] bpo-17852: Doc: Fix the tutorial about closing files (GH-23135) (GH-23527)
Miss Islington (bot) [Tue, 1 Dec 2020 10:53:42 +0000 (02:53 -0800)] 
[3.9] bpo-17852: Doc: Fix the tutorial about closing files (GH-23135) (GH-23527)

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
(cherry picked from commit c8aaf71dde4888864c0c351e2f935f87652c3d54)

Co-authored-by: Volker-Weissmann <39418860+Volker-Weissmann@users.noreply.github.com>
4 years agoFix bz2 examples markup (GH-23580)
Miss Islington (bot) [Tue, 1 Dec 2020 10:04:23 +0000 (02:04 -0800)] 
Fix bz2 examples markup (GH-23580)

(cherry picked from commit 80a429eae95c15c2c2a6753376f2697c90c2b6b9)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
4 years ago[3.9] [doc] Fix smtplib and xml.dom.minidom mark-up (GH-22769) (GH-23380)
Julien Palard [Tue, 1 Dec 2020 07:58:36 +0000 (08:58 +0100)] 
[3.9] [doc] Fix smtplib and xml.dom.minidom mark-up (GH-22769) (GH-23380)

4 years agobpo-42508: Remove bogus idlelib.pyshell.ModifiedInterpreter attribute (GH-23570)...
Miss Islington (bot) [Mon, 30 Nov 2020 22:36:06 +0000 (14:36 -0800)] 
bpo-42508: Remove bogus idlelib.pyshell.ModifiedInterpreter attribute (GH-23570) (GH-23571)

restart_subprocess is a method of self, the pyshell.InteractiveInterpreter instance. The latter does not have an interp attribute redundantly referring to itself. (The PyShell instance does have an interp attribute, referring to the InteractiveInterpreter instance.)
(cherry picked from commit e41bfd15dd148627b4f39c2a5837bddd8894d345)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
4 years agobpo-42370: Check element before making mouse click in ttk tests (GH-23491)
Miss Islington (bot) [Mon, 30 Nov 2020 22:34:43 +0000 (14:34 -0800)] 
bpo-42370: Check element before making mouse click in ttk tests (GH-23491)

(cherry picked from commit b0b428510cfd604a8eef1f245f039331e671ea4a)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 years agobpo-42501: Revise the usage note for Enums with the choices (GH-23563) (GH-23573)
Miss Islington (bot) [Mon, 30 Nov 2020 21:21:08 +0000 (13:21 -0800)] 
bpo-42501:  Revise the usage note for Enums with the choices (GH-23563) (GH-23573)

4 years agobpo-42487: don't call __getitem__ of underlying maps in ChainMap.__iter__ (GH-23534...
Miss Islington (bot) [Mon, 30 Nov 2020 17:07:26 +0000 (09:07 -0800)] 
bpo-42487: don't call __getitem__ of underlying maps in ChainMap.__iter__ (GH-23534) (GH-23569)

4 years agobpo-42142: Try to fix timeouts in ttk tests (GH-23474)
Miss Islington (bot) [Mon, 30 Nov 2020 08:43:59 +0000 (00:43 -0800)] 
bpo-42142: Try to fix timeouts in ttk tests (GH-23474)

Instead of using wait_visibility() which waits event <VisibilityNotify> in dead loop
use update() which should proceed all queued events.
(cherry picked from commit 6cc2c419f6cf5ed336609ba01055e77d7c553e6d)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 years ago[3.9] bpo-42474: test TracebackException comparison to non-equal instances (GH-23557)
Irit Katriel [Mon, 30 Nov 2020 01:40:45 +0000 (01:40 +0000)] 
[3.9] bpo-42474: test TracebackException comparison to non-equal instances (GH-23557)

4 years agobpo-42450: Minor updates to the itertools recipes (GH-23555) (GH-23562)
Miss Islington (bot) [Sun, 29 Nov 2020 19:14:10 +0000 (11:14 -0800)] 
bpo-42450: Minor updates to the itertools recipes (GH-23555) (GH-23562)

4 years agobpo-42406: Fix whichmodule() with multiprocessing (GH-23403)
Miss Islington (bot) [Sun, 29 Nov 2020 18:47:31 +0000 (10:47 -0800)] 
bpo-42406: Fix whichmodule() with multiprocessing (GH-23403)

* bpo-42406: Fix whichmodule() with multiprocessing

Signed-off-by: Renato L. de F. Cunha <renatoc@br.ibm.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
(cherry picked from commit 86684319d3dad8e1a7b0559727a48e0bc50afb01)

Co-authored-by: Renato Cunha <renatocunha@acm.org>
4 years agobpo-39096: Improve description of 'e', 'f' and 'g' presentation types (GH-23537)...
Miss Islington (bot) [Sun, 29 Nov 2020 09:58:01 +0000 (01:58 -0800)] 
bpo-39096: Improve description of 'e', 'f' and 'g' presentation types (GH-23537) (GH-23550)

* Improve description of 'e', 'f' and 'g' presentation types

* Drop the 'E' from Scientific 'E' notation; remove >= 0 qualifications

* Fix false statement that the alternate form is valid for Decimal

* Nitpick: remove the Harvard/Oxford comma

* Add note that the decimal point is also removed if no digits follow it, except in alternate form
(cherry picked from commit c642374b3ef72f6f300616f07aea2a3f9ed83e51)

Co-authored-by: Mark Dickinson <mdickinson@enthought.com>
Co-authored-by: Mark Dickinson <mdickinson@enthought.com>
4 years agoFix dis markup (GH-23524)
Miss Islington (bot) [Sat, 28 Nov 2020 22:06:05 +0000 (14:06 -0800)] 
Fix dis markup (GH-23524)

(cherry picked from commit fa840cc81d61b936ef95fdf7509a11b5927dc585)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
4 years agoFix multiprocessing markup (GH-23525)
Miss Islington (bot) [Sat, 28 Nov 2020 22:05:37 +0000 (14:05 -0800)] 
Fix multiprocessing markup (GH-23525)

(cherry picked from commit 4b44472966f17ad96d4370569ae049de9873e4af)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
4 years agobpo-42489: Fix the signature for list.sort() in the tutorial (GH-23538)
Miss Islington (bot) [Sat, 28 Nov 2020 15:14:23 +0000 (07:14 -0800)] 
bpo-42489: Fix the signature for list.sort() in the tutorial (GH-23538)

(cherry picked from commit d41ec65ab7411e877ca33d05e8c900feca530635)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>