]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
4 years agoPython 3.8.7 v3.8.7
Łukasz Langa [Mon, 21 Dec 2020 16:25:24 +0000 (17:25 +0100)] 
Python 3.8.7

4 years agoFix typo in docstring (GH-23515)
Miss Islington (bot) [Mon, 21 Dec 2020 14:28:47 +0000 (06:28 -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-23871)
Miss Islington (bot) [Sun, 20 Dec 2020 21:18:40 +0000 (13:18 -0800)] 
bpo-42669: Document that `except` rejects nested tuples (GH-23822) (GH-23871)

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-42604: always set EXT_SUFFIX=${SOABI}${SHLIB_SUFFIX} when using configure (GH...
Miss Islington (bot) [Sun, 20 Dec 2020 03:17:42 +0000 (19:17 -0800)] 
bpo-42604: always set EXT_SUFFIX=${SOABI}${SHLIB_SUFFIX} when using configure (GH-23708)

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>
4 years agobpo-41724: Explain when the conversion is not possible with detect_types enabled...
Miss Islington (bot) [Sun, 20 Dec 2020 00:02:58 +0000 (16:02 -0800)] 
bpo-41724: Explain when the conversion is not possible with detect_types enabled (GH-23855) (GH-23863)

* 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>
4 years ago[3.8] bpo-42630: Improve error reporting in Tkinter for absent default root (GH-23781...
Serhiy Storchaka [Sat, 19 Dec 2020 14:38:37 +0000 (16:38 +0200)] 
[3.8] bpo-42630: Improve error reporting in Tkinter for absent default root (GH-23781) (GH-23854)

* 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 ago[3.8] bpo-17140: Document multiprocessing's ThreadPool (GH-23812) (GH-23835)
Miss Islington (bot) [Fri, 18 Dec 2020 18:37:57 +0000 (10:37 -0800)] 
[3.8] bpo-17140: Document multiprocessing's ThreadPool (GH-23812) (GH-23835)

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-41891: ensure asyncio.wait_for waits for task completion (GH-22461)
Miss Islington (bot) [Fri, 18 Dec 2020 17:45:24 +0000 (09:45 -0800)] 
bpo-41891: ensure asyncio.wait_for waits for task completion (GH-22461)

(cherry picked from commit 17ef4319a34f5a2f95e7823dfb5f5b8cff11882d)

Co-authored-by: Richard Kojedzinszky <rkojedzinszky@users.noreply.github.com>
4 years agobpo-39096: Format specification documentation fixes for numeric types (GH-23575)
Miss Islington (bot) [Fri, 18 Dec 2020 09:34:24 +0000 (01:34 -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-26564: fix obsolete comment in traceback.c (GH-23819)
Miss Islington (bot) [Thu, 17 Dec 2020 13:19:49 +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-42613: Fix freeze.py config directory (GH-23792)
Miss Islington (bot) [Thu, 17 Dec 2020 11:40:26 +0000 (03:40 -0800)] 
bpo-42613: Fix freeze.py config directory (GH-23792)

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>
4 years agobpo-42375: subprocess DragonFlyBSD build update. (GH-23320) (GH-23389)
Miss Islington (bot) [Thu, 17 Dec 2020 11:16:00 +0000 (03:16 -0800)] 
bpo-42375: subprocess DragonFlyBSD build update. (GH-23320) (GH-23389)

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) (GH-23814)
Miss Islington (bot) [Thu, 17 Dec 2020 11:14:25 +0000 (03:14 -0800)] 
bpo-41804: Enhance test_epoll.test_control_and_wait() (GH-23795) (GH-23814)

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

Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Victor Stinner <vstinner@python.org>
4 years agobpo-38323: Add guard clauses in MultiLoopChildWatcher. (GH-22756)
Miss Islington (bot) [Wed, 16 Dec 2020 18:11:51 +0000 (10:11 -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:57:23 +0000 (09:57 -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-42644: Validate values in logging.disable() (GH-23786)
Miss Islington (bot) [Wed, 16 Dec 2020 10:10:32 +0000 (02:10 -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.8] bpo-39416: change word case to not imply ABC (GH-22867) (GH-22869)
Miss Islington (bot) [Wed, 16 Dec 2020 03:18:17 +0000 (19:18 -0800)] 
[3.8] bpo-39416: change word case to not imply ABC (GH-22867) (GH-22869)

follow-up to bpo-39416

Co-authored-by: kpinc <kop@karlpinc.com>
4 years agoUpdate idlelib/help.html to current Sphinx output (GH-22833)
Miss Islington (bot) [Wed, 16 Dec 2020 00:28:30 +0000 (16:28 -0800)] 
Update idlelib/help.html to current Sphinx output (GH-22833)

idle.rst is unchanged
(cherry picked from commit a460d45063844a21c20fa8b0d23878165f99f3b5)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
4 years agobpo-40219: Lowered ttk LabeledScale dummy (GH-21467)
Miss Islington (bot) [Tue, 15 Dec 2020 20:02:03 +0000 (12:02 -0800)] 
bpo-40219: Lowered ttk LabeledScale dummy (GH-21467)

(cherry picked from commit b9ced83cf427ec86802ba4c9a562c6d9cafc72f5)

Co-authored-by: E-Paine <63801254+E-Paine@users.noreply.github.com>
4 years agobpo-33610: Edit idlelib.codecontext (GH-23773)
Miss Islington (bot) [Tue, 15 Dec 2020 05:45:44 +0000 (21:45 -0800)] 
bpo-33610: Edit idlelib.codecontext (GH-23773)

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 agobpo-36541: Add lib2to3 grammar PEP-570 pos-only arg parsing (GH-23759)
Miss Islington (bot) [Mon, 14 Dec 2020 17:29:57 +0000 (09:29 -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 agobpo-42598: Fix implicit function declarations in configure (GH-23690) (GH-23757)
Miss Islington (bot) [Sun, 13 Dec 2020 22:01:59 +0000 (14:01 -0800)] 
bpo-42598: Fix implicit function declarations in configure (GH-23690) (GH-23757)

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.8] [doc] Link to issue regarding logging.disable level param default value GH...
Andre Delfino [Thu, 10 Dec 2020 14:19:51 +0000 (11:19 -0300)] 
[3.8] [doc] Link to issue regarding logging.disable level param default value GH-23731

(cherry picked from commit 2a35137328154aa2513649dcf0bbef02c998e27c)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
4 years agobpo-40084: [Enum] dir() includes member attributes (GH-19219) (GH-22853)
Miss Islington (bot) [Wed, 9 Dec 2020 19:25:06 +0000 (11:25 -0800)] 
bpo-40084: [Enum] dir() includes member attributes (GH-19219) (GH-22853)

(cherry picked from commit 68526fe258da8c01196fd7cf48e8e5f1280bf8fd)

Co-authored-by: Angelin BOOZ <9497359+lem2clide@users.noreply.github.com>
4 years ago[3.8] [Enum] reformat and add doc strings (GH-23705). (GH-23706)
Ethan Furman [Tue, 8 Dec 2020 21:28:47 +0000 (13:28 -0800)] 
[3.8] [Enum] reformat and add doc strings (GH-23705). (GH-23706)

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

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

(cherry picked from commit 37440eef7f9a0c27e13fc9ce0850574bb00688b0)

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

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

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)
(cherry picked from commit f0e42ae03c41ec32fcb3064772f46ff7f2c5ff3b)

4 years agoPost 3.8.7rc1
Łukasz Langa [Tue, 8 Dec 2020 02:07:07 +0000 (03:07 +0100)] 
Post 3.8.7rc1

4 years agoMerge tag 'v3.8.7rc1' into 3.8
Łukasz Langa [Tue, 8 Dec 2020 02:06:56 +0000 (03:06 +0100)] 
Merge tag 'v3.8.7rc1' into 3.8

Python 3.8.7rc1

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

(cherry picked from commit c266736ec1f9ebef38b134ceb4832df015711b38)

4 years agobpo-42574: Use format() instead of f-string in Tools/clinic/clinic.py to allow using...
Pablo Galindo [Mon, 7 Dec 2020 23:45:21 +0000 (23:45 +0000)] 
bpo-42574: Use format() instead of f-string in Tools/clinic/clinic.py to allow using older Python versions (GH-23685)

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

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:50:48 +0000 (09:50 -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.8.7rc1 v3.8.7rc1
Łukasz Langa [Mon, 7 Dec 2020 14:13:36 +0000 (15:13 +0100)] 
Python 3.8.7rc1

4 years agobpo-17735: inspect.findsource now raises OSError when co_lineno is out of range ...
Miss Islington (bot) [Fri, 4 Dec 2020 21:44:53 +0000 (13:44 -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 agobpo-42116: Fix inspect.getsource handling of trailing comments (GH-23630)
Miss Islington (bot) [Fri, 4 Dec 2020 20:20:09 +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:41:02 +0000 (07:41 -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-42553: Fix test_asyncio.test_call_later() (GH-23627)
Miss Islington (bot) [Thu, 3 Dec 2020 13:15:28 +0000 (05:15 -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:07:13 +0000 (01:07 -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-37221: PyCode_New() didn't change in Python 3.8 (GH-23595)
Miss Islington (bot) [Tue, 1 Dec 2020 15:34:01 +0000 (07:34 -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 agobuild(deps): bump actions/cache from v2.1.2 to v2.1.3 (23582)
Miss Islington (bot) [Tue, 1 Dec 2020 15:21:29 +0000 (07:21 -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 agobuild(deps): bump actions/upload-artifact from v2.2.0 to v2.2.1 (GH-23583)
Miss Islington (bot) [Tue, 1 Dec 2020 15:18:09 +0000 (07:18 -0800)] 
build(deps): bump actions/upload-artifact from v2.2.0 to v2.2.1 (GH-23583)

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>
4 years agoFix bz2 examples markup (GH-23580)
Miss Islington (bot) [Tue, 1 Dec 2020 09:51:12 +0000 (01:51 -0800)] 
Fix bz2 examples markup (GH-23580)

(cherry picked from commit 80a429eae95c15c2c2a6753376f2697c90c2b6b9)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
4 years agobpo-42482: remove reference to exc_traceback from TracebackException (GH-23531)
Miss Islington (bot) [Tue, 1 Dec 2020 01:53:40 +0000 (17:53 -0800)] 
bpo-42482: remove reference to exc_traceback from TracebackException (GH-23531)

(cherry picked from commit 427613f005f0f412d12f0d775d2b609bae0ae1ad)

Co-authored-by: Irit Katriel <iritkatriel@yahoo.com>
4 years agobpo-42508: Remove bogus idlelib.pyshell.ModifiedInterpreter attribute (GH-23570)
Miss Islington (bot) [Mon, 30 Nov 2020 17:30:46 +0000 (09:30 -0800)] 
bpo-42508: Remove bogus idlelib.pyshell.ModifiedInterpreter attribute (GH-23570)

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-42142: Try to fix timeouts in ttk tests (GH-23474)
Miss Islington (bot) [Mon, 30 Nov 2020 08:42:56 +0000 (00:42 -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.8] bpo-42474: test TracebackException comparison to non-equal instances (GH-23558)
Irit Katriel [Mon, 30 Nov 2020 01:41:19 +0000 (01:41 +0000)] 
[3.8] bpo-42474: test TracebackException comparison to non-equal instances (GH-23558)

4 years agobpo-42406: Fix whichmodule() with multiprocessing (GH-23403)
Miss Islington (bot) [Sun, 29 Nov 2020 18:43:36 +0000 (10:43 -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:35 +0000 (01:58 -0800)] 
bpo-39096: Improve description of 'e', 'f' and 'g' presentation types (GH-23537) (GH-23551)

* 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 multiprocessing markup (GH-23525)
Miss Islington (bot) [Sat, 28 Nov 2020 21:52:10 +0000 (13:52 -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:02:23 +0000 (07:02 -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>
4 years agobpo-34215: Clarify IncompleteReadError message when "expected" is None (GH-21925...
Miss Islington (bot) [Sat, 28 Nov 2020 14:44:34 +0000 (06:44 -0800)] 
bpo-34215: Clarify IncompleteReadError message when "expected" is None (GH-21925) (#23540)

Co-Authored-By: Tyler Bell <mrbell321@gmail.com>
(cherry picked from commit 8085f742f4adfbc85f13fc734dfab036aa23acfb)
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
4 years agobpo-17852: Doc: Fix the tutorial about closing files (GH-23135)
Miss Islington (bot) [Fri, 27 Nov 2020 00:51:54 +0000 (16:51 -0800)] 
bpo-17852: Doc: Fix the tutorial about closing files (GH-23135)

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 agobpo-12800: tarfile: Restore fix from 011525ee9 (GH-21409)
Miss Islington (bot) [Wed, 25 Nov 2020 10:01:01 +0000 (02:01 -0800)] 
bpo-12800: tarfile: Restore fix from 011525ee9 (GH-21409)

Restore fix from 011525ee92eb1c13ad1a62d28725a840e28f8160.
(cherry picked from commit 4fedd7123eaf147edd55eabbbd72e0bcc8368e47)

Co-authored-by: Julien Palard <julien@palard.fr>
4 years agobpo-42370: Check element before making mouse click in ttk tests (GH-23491)
Miss Islington (bot) [Tue, 24 Nov 2020 17:54:32 +0000 (09:54 -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-42212: Check if generated files are up-to-date in GitHub Actions (GH-23042)
Miss Islington (bot) [Tue, 24 Nov 2020 13:25:30 +0000 (05:25 -0800)] 
bpo-42212: Check if generated files are up-to-date in GitHub Actions (GH-23042)

See https: //github.com/python/core-workflow/issues/380

Signed-off-by: Filipe Laíns <lains@archlinux.org>
(cherry picked from commit d20b7ed9c1fabac3fdebb7ec362fe4f022a54639)

Co-authored-by: Filipe Laíns <lains@archlinux.org>
4 years agobpo-42328: Fix tkinter.ttk.Style.map(). (GH-23300)
Miss Islington (bot) [Mon, 23 Nov 2020 08:51:22 +0000 (00:51 -0800)] 
bpo-42328: Fix tkinter.ttk.Style.map(). (GH-23300)

The function accepts now the representation of the default state as
empty sequence (as returned by Style.map()).
The structure of the result is now the same on all platform
and does not depend on the value of wantobjects.
(cherry picked from commit dd844a2916fb3a8f481ec7c732802c13c3375691)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 years agoDoc: fix typo in typing.Type docs (GH-23460)
Miss Islington (bot) [Sun, 22 Nov 2020 15:12:20 +0000 (07:12 -0800)] 
Doc: fix typo in typing.Type docs (GH-23460)

(cherry picked from commit 5ef53a88f3130cfcf9a9be3abd2ff2f997902647)

Co-authored-by: John Belmonte <john@neggie.net>
4 years agobpo-42391: Clarify documentation of TestCase.assertIs (GH-23348)
Miss Islington (bot) [Sun, 22 Nov 2020 06:10:24 +0000 (22:10 -0800)] 
bpo-42391: Clarify documentation of TestCase.assertIs (GH-23348)

Removing 'evaluate' makes it more consistent with other assertX entries.
(cherry picked from commit bd8c22e1fa8f8f6e31ee083a8b9321a2c324f02f)

Co-authored-by: Ram Rachum <ram@rachum.com>
4 years agobpo-42426: IDLE: Fix reporting offset of the RE error in searchengine (GH-23447)
Miss Islington (bot) [Sun, 22 Nov 2020 05:24:11 +0000 (21:24 -0800)] 
bpo-42426: IDLE: Fix reporting offset of the RE error in searchengine (GH-23447)

(cherry picked from commit 453bc1da2023d6cbe362637a2e0b06d0521f013c)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 years agobpo-38443: Check that the specified universal architectures work (GH-22910)
Miss Islington (bot) [Sun, 22 Nov 2020 01:54:08 +0000 (17:54 -0800)] 
bpo-38443: Check that the specified universal architectures work (GH-22910)

As [bpo-38443]() says the error message from configure when specifying --enable-universalsdk with a set of architectures that is not supported by the compiler is not very helpful.   This PR explicitly checks if the compiler works and bails out if it doesn't.
(cherry picked from commit 0f20bd9042c9b7fce20c3b9511cd0820b30094c3)

Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
4 years agoFix wrong availability for signal.SIGCHLD (GH-23285) (#23426)
Miss Islington (bot) [Sat, 21 Nov 2020 11:22:08 +0000 (03:22 -0800)] 
Fix wrong availability for signal.SIGCHLD (GH-23285) (#23426)

I believe this is a mistake. SIGCHLD is only available on Unix systems, not Windows.
(cherry picked from commit 4c24b08cd3239b417a5f8c7ba2ba54c840d051e3)

Co-authored-by: Zhang Maiyun <myzhang1029@hotmail.com>
Co-authored-by: Zhang Maiyun <myzhang1029@hotmail.com>
4 years agobpo-42412: Fix possible leaks and check arguments in PyType_FromModuleAndSpec() ...
Miss Islington (bot) [Sat, 21 Nov 2020 10:39:23 +0000 (02:39 -0800)] 
bpo-42412: Fix possible leaks and check arguments in PyType_FromModuleAndSpec() (GH-23410)

* There were leaks if Py_tp_bases is used more than once or if some call is
  failed before setting tp_bases.
* There was a crash if the bases argument or the Py_tp_bases slot is not a tuple.
* The documentation was not accurate.
(cherry picked from commit 1db76394ea79030aa4ed5349c950f6c6da51450f)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 years agobpo-40791: Make compare_digest more constant-time. (GH-20444)
Miss Islington (bot) [Sat, 21 Nov 2020 09:12:21 +0000 (01:12 -0800)] 
bpo-40791: Make compare_digest more constant-time. (GH-20444)

* bpo-40791: Make compare_digest more constant-time.

The existing volatile `left`/`right` pointers guarantee that the reads will all occur, but does not guarantee that they will be _used_. So a compiler can still short-circuit the loop, saving e.g. the overhead of doing the xors and especially the overhead of the data dependency between `result` and the reads. That would change performance depending on where the first unequal byte occurs. This change removes that optimization.

(This is change GH-1 from https://bugs.python.org/issue40791 .)
(cherry picked from commit 31729366e2bc09632e78f3896dbce0ae64914f28)

Co-authored-by: Devin Jeanpierre <jeanpierreda@google.com>
4 years agobpo-42407: Use possessive appostrophe in multiprocessing doc (GH-23400)
Miss Islington (bot) [Sat, 21 Nov 2020 02:47:17 +0000 (18:47 -0800)] 
bpo-42407: Use possessive appostrophe in multiprocessing doc (GH-23400)

(cherry picked from commit 6edf06b24a9335a2b0d44634a95e4f5ba0d586d9)

Co-authored-by: ArioA <ArioA@users.noreply.github.com>
4 years agobpo-42416: Use inspect.getdoc for IDLE calltips (GH-23416)
Miss Islington (bot) [Fri, 20 Nov 2020 07:22:29 +0000 (23:22 -0800)] 
bpo-42416: Use inspect.getdoc for IDLE calltips (GH-23416)

Inspect.getdoc(ob) sometimes gets docstrings when ob.__doc__ is None.
(cherry picked from commit 7ddbaa7a1b3e61847ee99658be6a7268a049e302)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
4 years ago[3.8] bpo-38320: Clarify that expectedFailure is satisfied by either failure or error...
Miss Islington (bot) [Wed, 18 Nov 2020 22:39:42 +0000 (14:39 -0800)] 
[3.8] bpo-38320: Clarify that expectedFailure is satisfied by either failure or error of the test. (GH-22740) (GH-22782)

(cherry picked from commit fa8748271a61177e9bf609921fa464cc6990478b)

Co-authored-by: Irit Katriel <iritkatriel@yahoo.com>
4 years agobpo-42336: Improve PCbuild batch files (GH-23325)
Steve Dower [Wed, 18 Nov 2020 17:24:56 +0000 (17:24 +0000)] 
bpo-42336: Improve PCbuild batch files (GH-23325)

4 years agobpo-42398: Fix "make regen-all" race condition (GH-23362) (GH-23367)
Miss Islington (bot) [Wed, 18 Nov 2020 16:28:57 +0000 (08:28 -0800)] 
bpo-42398: Fix "make regen-all" race condition (GH-23362) (GH-23367)

Fix a race condition in "make regen-all" when make -jN option is used
to run jobs in parallel. The clinic.py script now only use atomic
write to write files. Moveover, generated files are now left
unchanged if the content does not change, to not change the file
modification time.

The "make regen-all" command runs "make clinic" and "make
regen-importlib" targets:

* "make regen-importlib" builds object files (ex: Modules/_weakref.o)
  from source files (ex: Modules/_weakref.c) and clinic files (ex:
  Modules/clinic/_weakref.c.h)
* "make clinic" always rewrites all clinic files
  (ex: Modules/clinic/_weakref.c.h)

Since there is no dependency between "clinic" and "regen-importlib"
Makefile targets, these two targets can be run in parallel. Moreover,
half of clinic.py file writes are not atomic and so there is a race
condition when "make regen-all" runs jobs in parallel using make -jN
option (which can be passed in MAKEFLAGS environment variable).

Fix clinic.py to make all file writes atomic:

* Add write_file() function to ensure that all file writes are
  atomic: write into a temporary file and then use os.replace().
* Moreover, write_file() doesn't recreate or modify the file if the
  content does not change to avoid modifying the file modification
  file.
* Update test_clinic to verify these assertions with a functional
  test.
* Remove Clinic.force attribute which was no longer used, whereas
  Clinic.verify remains useful.

(cherry picked from commit 8fba9523cf08029dc2e280d9f48fdd57ab178c9d)
(cherry picked from commit c53c3f400050a7edc92ccb7285a6d7eeb4c37fd2)

Co-authored-by: Victor Stinner <vstinner@python.org>
4 years agobpo-41561: skip test_min_max_version_mismatch (GH-22308)
Miss Islington (bot) [Wed, 18 Nov 2020 12:29:34 +0000 (04:29 -0800)] 
bpo-41561: skip test_min_max_version_mismatch (GH-22308)

skip test_min_max_version_mismatch when TLS 1.0 is not available

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

Co-authored-by: Christian Heimes <christian@python.org>
4 years agobpo-41686: Always create the SIGINT event on Windows (GH-23344) (GH-23347) (GH-23349)
Victor Stinner [Tue, 17 Nov 2020 21:23:18 +0000 (22:23 +0100)] 
bpo-41686: Always create the SIGINT event on Windows (GH-23344) (GH-23347) (GH-23349)

bpo-41686, bpo-41713: On Windows, the SIGINT event,
_PyOS_SigintEvent(), is now created even if Python is configured to
not install signal handlers (PyConfig.install_signal_handlers=0 or
Py_InitializeEx(0)).

(cherry picked from commit 05a5d697f4f097f37c5c1e2ed0e2338a33c3fb6a)

4 years ago[3.8] Remove outdated reference to pywin32 from platform module (GH-22005) (GH-23184)
Miss Islington (bot) [Tue, 17 Nov 2020 07:34:24 +0000 (23:34 -0800)] 
[3.8] Remove outdated reference to pywin32 from platform module (GH-22005) (GH-23184)

(cherry picked from commit 7c01f1540f958d4f52188b28afca721a9a6925c3)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
4 years agobpo-42120: Remove macro defining copysign to _copysign on Windows (GH-23326)
Miss Islington (bot) [Mon, 16 Nov 2020 23:42:49 +0000 (15:42 -0800)] 
bpo-42120: Remove macro defining copysign to _copysign on Windows (GH-23326)

(cherry picked from commit 9cc9e277254023c0ca08e1a9e379fd89475ca9c2)

Co-authored-by: Steve Dower <steve.dower@python.org>
4 years agobpo-42339: Adds note about KB2533623 to embeddable package docs (GH-23322)
Steve Dower [Mon, 16 Nov 2020 21:28:29 +0000 (21:28 +0000)] 
bpo-42339: Adds note about KB2533623 to embeddable package docs (GH-23322)

4 years agobpo-42153 Fix link to IMAP documents in imaplib.rst (GH-23297)
Miss Islington (bot) [Mon, 16 Nov 2020 05:12:34 +0000 (21:12 -0800)] 
bpo-42153 Fix link to IMAP documents in imaplib.rst (GH-23297)

The University of Washington stopped hosting the IMAP documents. Link to a rescued copy on GitHub.
(cherry picked from commit aa01011003bb855cd52abfd49f2443446590d913)

Co-authored-by: Yash Shete <universeyash4@gmail.com>
4 years agofix typo in ThreadedChildWatcher docs (GH-23277)
Miss Islington (bot) [Sat, 14 Nov 2020 12:11:23 +0000 (04:11 -0800)] 
fix typo in ThreadedChildWatcher docs (GH-23277)

(cherry picked from commit 8836574a0f34ae81643c8af79bbb9062e332a4e3)

Co-authored-by: Thomas Grainger <tagrain@gmail.com>
4 years agobpo-40754: Adds _testinternalcapi to Windows installer for test suite (GH-23271)
Miss Islington (bot) [Fri, 13 Nov 2020 22:42:10 +0000 (14:42 -0800)] 
bpo-40754: Adds _testinternalcapi to Windows installer for test suite (GH-23271)

(cherry picked from commit 9b6934230c35e24d8582ea8c58456fa8eab72ae2)

Co-authored-by: Steve Dower <steve.dower@python.org>
4 years agobpo-42344: Improve pseudo implementation for SimpleNamespace (GH-23264) (GH-23269)
Miss Islington (bot) [Fri, 13 Nov 2020 18:18:35 +0000 (10:18 -0800)] 
bpo-42344: Improve pseudo implementation for SimpleNamespace (GH-23264) (GH-23269)

(cherry picked from commit bbeb2d266d6fc1ca9778726d0397d9d6f7a946e3)

Co-authored-by: Jürgen Gmach <juergen.gmach@googlemail.com>
Co-authored-by: Jürgen Gmach <juergen.gmach@googlemail.com>
4 years agobpo-42042: Use ids attribute instead of names attribute (GH-22739)
Miss Islington (bot) [Fri, 13 Nov 2020 15:30:10 +0000 (07:30 -0800)] 
bpo-42042: Use ids attribute instead of names attribute (GH-22739)

(cherry picked from commit 09490a109faaee9cc393b52742a8575c116c56ba)

Co-authored-by: Dong-hee Na <donghee.na@python.org>
4 years ago[3.8] bpo-42237: Fix os.sendfile() on illumos (GH-23154). (GH-23246)
Jakub Stasiak [Thu, 12 Nov 2020 12:23:48 +0000 (13:23 +0100)] 
[3.8] bpo-42237: Fix os.sendfile() on illumos (GH-23154). (GH-23246)

(cherry picked from commit fd4ed57674c675e05bd5d577dd5047a333c76c78)

Co-authored-by: Jakub Stasiak <jakub@stasiak.at>
4 years agobpo-42014: shutil.rmtree: call onerror with correct function (GH-22585)
Miss Islington (bot) [Tue, 10 Nov 2020 16:27:02 +0000 (08:27 -0800)] 
bpo-42014: shutil.rmtree: call onerror with correct function (GH-22585)

The onerror is supposed to be called with failed function, but in this case lstat is wrongly used instead of open.

Not sure if this needs bug or not...

Automerge-Triggered-By: GH:hynek
(cherry picked from commit e59b2deffde61e5641cabd65034fa11b4db898ba)

Co-authored-by: Michal Čihař <michal@cihar.com>
4 years agobpo-42183: Fix a stack overflow error for asyncio Task or Future repr() (GH-23020)
Miss Islington (bot) [Tue, 10 Nov 2020 14:21:53 +0000 (06:21 -0800)] 
bpo-42183: Fix a stack overflow error for asyncio Task or Future repr() (GH-23020)

The overflow occurs under some circumstances when a task or future
recursively returns itself.

Co-authored-by: Kyle Stanley <aeros167@gmail.com>
(cherry picked from commit 42d873c63aa9d160c132be4a34599531574db12c)

Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
5 years agobpo-41754: Ignore NotADirectoryError in invocation of xdg-settings (GH-23075) (GH...
Miss Islington (bot) [Sun, 8 Nov 2020 12:06:17 +0000 (04:06 -0800)] 
bpo-41754: Ignore NotADirectoryError in invocation of xdg-settings (GH-23075) (GH-23198)

It is not clear why this can happen, but several users have mentioned
getting this exception on macOS.
(cherry picked from commit 23831a7a90956e38b7d70304bb6afe30d37936de)

Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
5 years agoMinor wording change in concurrent.futures. (GH-23194)
Miss Islington (bot) [Sun, 8 Nov 2020 09:45:25 +0000 (01:45 -0800)] 
Minor wording change in concurrent.futures. (GH-23194)

Fixes a grammar problem by adding a missing "as", and clarifies the wording of the valid ranges for max_workers.
(cherry picked from commit fd6f6fa403789c8877b1099cc6fcc437d2e54634)

Co-authored-by: Don Kirkby <donkirkby@users.noreply.github.com>
5 years ago[3.8] bpo-35455: Fix thread_time for Solaris OS (GH-11118). (GH-23145)
Jakub Kulík [Wed, 4 Nov 2020 14:19:17 +0000 (15:19 +0100)] 
[3.8] bpo-35455: Fix thread_time for Solaris OS (GH-11118). (GH-23145)

(cherry picked from commit 9568622c9983b682b2a2a7bacfd3c341028ea099)

Co-authored-by: Jakub Kulík <Kulikjak@gmail.com>
5 years agoEnable signing of nuget.org packages and update to supported timestamp server (GH...
Miss Skeleton (bot) [Tue, 3 Nov 2020 23:07:37 +0000 (15:07 -0800)] 
Enable signing of nuget.org packages and update to supported timestamp server (GH-23132)

(cherry picked from commit db6434c474f7389a98b8118ca87fca988416bf33)

Co-authored-by: Steve Dower <steve.dower@python.org>
5 years agobpo-42249: Fix writing binary Plist files larger than 4 GiB. (GH-23121)
Miss Skeleton (bot) [Tue, 3 Nov 2020 15:01:56 +0000 (07:01 -0800)] 
bpo-42249: Fix writing binary Plist files larger than 4 GiB. (GH-23121)

(cherry picked from commit 212d32f45c91849c17a82750df1ac498d63976be)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 years ago[3.8] bpo-42103: Improve validation of Plist files. (GH-22882) (GH-23116)
Serhiy Storchaka [Tue, 3 Nov 2020 07:32:15 +0000 (09:32 +0200)] 
[3.8] bpo-42103: Improve validation of Plist files. (GH-22882) (GH-23116)

* Prevent some possible DoS attacks via providing invalid Plist files
  with extremely large number of objects or collection sizes.
* Raise InvalidFileException for too large bytes and string size instead of returning garbage.
* Raise InvalidFileException instead of ValueError for specific invalid datetime (NaN).
* Raise InvalidFileException instead of TypeError for non-hashable dict keys.
* Add more tests for invalid Plist files.

(cherry picked from commit 34637a0ce21e7261b952fbd9d006474cc29b681f)

5 years agobpo-42224: Fix test_format when locale does not expect number grouping (GH-23067)
Miss Skeleton (bot) [Mon, 2 Nov 2020 15:46:00 +0000 (07:46 -0800)] 
bpo-42224: Fix test_format when locale does not expect number grouping (GH-23067)

(cherry picked from commit 301822859b3fc34801a06f1090d62f9f2ee5b092)

Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
5 years ago[3.8] bpo-42230: Improve asyncio documentation regarding accepting sets vs iterables...
Jakub Stasiak [Mon, 2 Nov 2020 11:36:38 +0000 (12:36 +0100)] 
[3.8] bpo-42230: Improve asyncio documentation regarding accepting sets vs iterables (GH-23073) (GH-23105)

People call wait() and as_completed() with various non-set iterables,
a list should be the most common but there are others as well[1].

Considering typeshed also documents wait()[2] and as_completed()[3]
as accepting arbitrary iterables I think it's a good idea to document
the status quo better.

[1] https://github.com/aio-libs/aiokafka/pull/672
[2] https://github.com/python/typeshed/blob/620989bac572f30349b95590ebe81a73ce0fe862/stdlib/3/asyncio/tasks.pyiGH-L161
[3] https://github.com/python/typeshed/blob/620989bac572f30349b95590ebe81a73ce0fe862/stdlib/3/asyncio/tasks.pyiGH-L40.
(cherry picked from commit 3d86d090dcbbdfdd3e5a5951cab30612d6131222)

Co-authored-by: Jakub Stasiak <jakub@stasiak.at>
5 years agobpo-40511: Stop unwanted flashing of IDLE calltips (GH-20910)
Miss Skeleton (bot) [Mon, 2 Nov 2020 04:49:59 +0000 (20:49 -0800)] 
bpo-40511: Stop unwanted flashing of IDLE calltips (GH-20910)

They were occurring with both repeated 'force-calltip' invocations and by typing parentheses
 in expressions, strings, and comments in the argument code.

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
(cherry picked from commit da7bb7b4d769350c5fd03e6cfb16b23dc265ed72)

Co-authored-by: Tal Einat <taleinat+github@gmail.com>
5 years ago[3.8] bpo-29566: binhex.binhex now consitently writes MacOS 9 line endings. (GH-23059...
Miss Skeleton (bot) [Sun, 1 Nov 2020 09:39:16 +0000 (01:39 -0800)] 
[3.8] bpo-29566: binhex.binhex now consitently writes MacOS 9 line endings. (GH-23059) (GH-23070)

[[bpo-29566]()]() notes that binhex.binhex uses inconsistent line endings (both Unix and MacOS9 line endings are used). This PR changes this to use the MacOS9 line endings everywhere.
(cherry picked from commit 2165cea548f961b308050f30d1f042a377651d44)

Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
Automerge-Triggered-By: GH:ronaldoussoren
5 years agoGitHub Action: Add gdb to posix dependencies (GH-23043)
Miss Skeleton (bot) [Fri, 30 Oct 2020 22:36:31 +0000 (15:36 -0700)] 
GitHub Action: Add gdb to posix dependencies (GH-23043)

Sort also dependencies and remove duplicates (liblzma-dev).
(cherry picked from commit 6e03c0ad156797cd6e9132e895d55dac0344d340)

Co-authored-by: Victor Stinner <vstinner@python.org>
5 years agobpo-42143: Ensure PyFunction_NewWithQualName() can't fail after creating the func...
Miss Skeleton (bot) [Thu, 29 Oct 2020 10:24:12 +0000 (03:24 -0700)] 
bpo-42143: Ensure PyFunction_NewWithQualName() can't fail after creating the func object (GH-22953)

func_dealloc() does not handle partially-created objects. Best not to give it any.
(cherry picked from commit 350526105fa9b131d8b941ae753378b741dabb2f)

Co-authored-by: Yonatan Goldschmidt <yon.goldschmidt@gmail.com>
5 years agobpo-6761: Enhance __call__ documentation (GH-7987)
Miss Skeleton (bot) [Tue, 27 Oct 2020 16:28:00 +0000 (09:28 -0700)] 
bpo-6761: Enhance __call__ documentation (GH-7987)

(cherry picked from commit 95f710c55714153f0c8cce48f8215bb3d866ac1d)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
5 years agoAdded some makefile generated files to .gitignore (GH-22435)
Miss Skeleton (bot) [Mon, 26 Oct 2020 05:51:03 +0000 (22:51 -0700)] 
Added some makefile generated files to .gitignore (GH-22435)

(cherry picked from commit 96a9eed2457c05af6953890d89463704c9d99c57)

Co-authored-by: Marco Sulla <github@marco.sulla.e4ward.com>
5 years agobpo-41662: Fix bugs in binding parameters in sqlite3 (GH-21998)
Miss Skeleton (bot) [Mon, 26 Oct 2020 05:46:10 +0000 (22:46 -0700)] 
bpo-41662: Fix bugs in binding parameters in sqlite3 (GH-21998)

* When the parameters argument is a list, correctly handle the case
  of changing it during iteration.
* When the parameters argument is a custom sequence, no longer
  override an exception raised in ``__len__()``.
(cherry picked from commit 0b419b791077414bbc011a412698ebb362b63761)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 years agobpo-39871: Fix an error in a news entry (GH-21749)
Zackery Spytz [Mon, 26 Oct 2020 05:37:16 +0000 (23:37 -0600)] 
bpo-39871: Fix an error in a news entry (GH-21749)

(cherry picked from commit 54636355805dd2877bb54fbad8d967e1ddd8b553)

5 years agoAdd a link to buffer protocol in bytearray() doc (GH-22675)
Miss Skeleton (bot) [Mon, 26 Oct 2020 05:35:55 +0000 (22:35 -0700)] 
Add a link to buffer protocol in bytearray() doc (GH-22675)

(cherry picked from commit 0f25c231b3a024e358c3e55d9aba2f7bcc49630c)

Co-authored-by: Antoine <43954001+awecx@users.noreply.github.com>