Commit Graph

108161 Commits

Author SHA1 Message Date
Miss Islington (bot) 40b92f1cc0
[3.9] bpo-42482: remove reference to exc_traceback from TracebackException (GH-23531) (GH-23578)
(cherry picked from commit 427613f005)


Co-authored-by: Irit Katriel <iritkatriel@yahoo.com>
2020-12-04 12:57:31 -08:00
Miss Islington (bot) 81ac030d03
bpo-42116: Fix inspect.getsource handling of trailing comments (GH-23630)
(cherry picked from commit 6e1eec71f5)

Co-authored-by: Irit Katriel <iritkatriel@yahoo.com>
2020-12-04 12:20:05 -08:00
Miss Islington (bot) c7cf66d2fe
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 066394018a)

Co-authored-by: Victor Stinner <vstinner@python.org>
2020-12-04 07:47:44 -08:00
Miss Islington (bot) 3689c25a10
bpo-42523: Fix supported versions in "Using Python on Windows" (GH-23603)
(cherry picked from commit db68544122)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
2020-12-03 09:46:58 -08:00
Miss Islington (bot) 9f26833ced
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 7e5e13d113)

Co-authored-by: Victor Stinner <vstinner@python.org>
2020-12-03 05:20:07 -08:00
Miss Islington (bot) ae67db6b31
bpo-42328: Skip some tests with themes vista and xpnative on Windows 7 (GH-23612)
(cherry picked from commit f3c3ea91a7)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2020-12-03 01:10:23 -08:00
Miss Islington (bot) 09a698b474
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 5291639e61)

Co-authored-by: FX Coudert <fxcoudert@gmail.com>
2020-12-02 19:43:08 -08:00
Miss Islington (bot) 9b34f34aa9
bpo-42521: Add note about 'Python -d' only working on debug builds (GH-23607)
(cherry picked from commit 99b594404d)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
2020-12-02 14:01:23 -08:00
Miss Islington (bot) ed4614386f
bpo-37221: PyCode_New() didn't change in Python 3.8 (GH-23595)
(cherry picked from commit 1867b462de)

Co-authored-by: Victor Stinner <vstinner@python.org>
2020-12-01 07:54:54 -08:00
Benjamin Peterson 0955f6863d
[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 8acd0e0d49)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-01 09:30:03 -06:00
Miss Islington (bot) d33f3347de
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 a43fea8857)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-01 07:24:20 -08:00
Miss Islington (bot) ae48dd4db5
Add GCC pragmas to silence compiler warning about ffi_prep_closure (GH-23327) (GH-23590)
(cherry picked from commit cce3f0b0c8)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
2020-12-01 15:07:50 +00:00
Miss Islington (bot) 4a44f53aa8
[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 c8aaf71dde)


Co-authored-by: Volker-Weissmann <39418860+Volker-Weissmann@users.noreply.github.com>
2020-12-01 02:53:42 -08:00
Miss Islington (bot) aef482f7cf
Fix bz2 examples markup (GH-23580)
(cherry picked from commit 80a429eae9)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
2020-12-01 02:04:23 -08:00
Julien Palard 7e80c0f40e
[3.9] [doc] Fix smtplib and xml.dom.minidom mark-up (GH-22769) (GH-23380) 2020-12-01 08:58:36 +01:00
Miss Islington (bot) ff51e5ec26
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 e41bfd15dd)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2020-11-30 17:36:06 -05:00
Miss Islington (bot) b2652f2d7e
bpo-42370: Check element before making mouse click in ttk tests (GH-23491)
(cherry picked from commit b0b428510c)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2020-11-30 14:34:43 -08:00
Miss Islington (bot) aab9390334
bpo-42501: Revise the usage note for Enums with the choices (GH-23563) (GH-23573) 2020-11-30 13:21:08 -08:00
Miss Islington (bot) cf22aa3bc6
bpo-42487: don't call __getitem__ of underlying maps in ChainMap.__iter__ (GH-23534) (GH-23569) 2020-11-30 09:07:26 -08:00
Miss Islington (bot) 03ae7e4518
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 6cc2c419f6)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2020-11-30 00:43:59 -08:00
Irit Katriel 586bdd1add
[3.9] bpo-42474: test TracebackException comparison to non-equal instances (GH-23557) 2020-11-29 17:40:45 -08:00
Miss Islington (bot) a83119d7be
bpo-42450: Minor updates to the itertools recipes (GH-23555) (GH-23562) 2020-11-29 11:14:10 -08:00
Miss Islington (bot) fcf7391f59
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 86684319d3)

Co-authored-by: Renato Cunha <renatocunha@acm.org>
2020-11-29 10:47:31 -08:00
Miss Islington (bot) cf47b3969e
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 c642374b3e)

Co-authored-by: Mark Dickinson <mdickinson@enthought.com>

Co-authored-by: Mark Dickinson <mdickinson@enthought.com>
2020-11-29 09:58:01 +00:00
Miss Islington (bot) cfb2f79634
Fix dis markup (GH-23524)
(cherry picked from commit fa840cc81d)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
2020-11-28 14:06:05 -08:00
Miss Islington (bot) 5d54dfadcf
Fix multiprocessing markup (GH-23525)
(cherry picked from commit 4b44472966)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
2020-11-28 14:05:37 -08:00
Miss Islington (bot) cc5eb935c7
bpo-42489: Fix the signature for list.sort() in the tutorial (GH-23538)
(cherry picked from commit d41ec65ab7)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
2020-11-28 07:14:23 -08:00
Miss Islington (bot) df6c8bcffe
bpo-34215: Clarify IncompleteReadError message when "expected" is None (GH-21925) (GH-23539)
Co-Authored-By: Tyler Bell <mrbell321@gmail.com>
(cherry picked from commit 8085f742f4)

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

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
2020-11-28 17:07:51 +02:00
Łukasz Langa 761c5a1ce4
Post 3.9.1rc1 2020-11-26 18:49:45 +01:00
Łukasz Langa faf4206940 Python 3.9.1rc1
-----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCAAdFiEE4/8oOcBIslwITevpsmmV4xAlBWgFAl+9OYQACgkQsmmV4xAl
 BWgG0Q/9EjV0N/8c58WcVFhRaS1Nrl2s3BCBJwDubYK9zhPhd4zls0gS0e3DGaQZ
 Q/XXQVFYoSWB0yPwmY3Kv7sJS6ZgHNkXg+I6y0sg6BaUsdxcASdHVXMSFKzrzksX
 D+Z8Q5IQ96f6QCbcPxTphDpL2jj8vCLzqhf1pT8gEj1vhGPsF179QFfb0erSyh+g
 KUKnpnx+d5tqHXWQx7Xr0T5ArZIEkxX895jpG2t5IzX0OZaDx35KgXZ2Gv+HtKCh
 KqPsb/cB22F5QGwpPAiKYALm1Zv8hIsPDzfrr8Zvac2owDcyXieN5/dQlwdDGZMh
 /Z0Hrobxsr8mehwGWbKPqUD86fATJkyU3BcjFta4zlfxsypMjGqdz/ipE07ZdwIr
 7f674ywrDTIKVwH8UeCxUQnfhhI6KbYlwrB/ni6rZFTgmdXzlUABMNRs8ZMdBHT4
 CyvBp7bQcF05/xtRfd8SOw+XBzJ+pEjv0P6G1tDMXXzBc8PGYwyKjspe3hqlfW9E
 f2tZ6pyoecj3upRdOmU1Lzs7Iu73wjqafpk59U5g5tVWXrn1iDF/Mxu78R/oNd7p
 +RgkOgK2zGm2PChKqTSzeTYe7937JW1r9gbJBjt+CtXu0HV3aG2YkWPWPIQ4uA2b
 uPx/pI1y/FKfjvoh8Lucdrx5w+n9vn/MmlkgQQzcysok1pwQwbo=
 =oO11
 -----END PGP SIGNATURE-----
gpgsig -----BEGIN PGP SIGNATURE-----
 
 iQJEBAABCAAuFiEE4/8oOcBIslwITevpsmmV4xAlBWgFAl+/6pcQHGx1a2FzekBs
 YW5nYS5wbAAKCRCyaZXjECUFaCr3D/9myYrPmnvJadba9vVqp4IJES+xbCfLHAlW
 sazin9IwRrbP/+U46BO//Zb65zBcqa67mo5A+85NmBsoa9eWXuBJESDhPiXSFUCW
 h2WQPWraennj6rxGTqdXYRu3vXsL3auQCngE/HpXrO4Qx2ArI/aEBVFGl5u1awOA
 Q0FVUik+Sm/HBHYPS0nv248GwmyWw4mpXpCqXtMxgOF2gHN11DQlpTf6FjafhkiF
 iRMMJRR3ynPXMLba3qAc3CICt1gAv+kR8A/QduIZf4CvqLBThAD0iEl5f4En2aFY
 RzURKi0c23Ks3Sze0SRgVVU4EgND6LV5xUr9GSpVzSDkN3g5p0Y3zG5Gv/HKqx6o
 5VlQEDBjhIKqZPCGsEgRljls5bFSfsVGTv+8CVRb/GJnnMMaEzJw9LE7dxiXPvsz
 5dJGsWp3qtfxTfKB5rCEvFOEh8Iu3UBO0WFuhQXAVQBlHd/ximo+AP8bhKGRwRGZ
 5x0/P5UvJhCYIvOpki1o+VEv1Aw8eIdNKltFcS6UvFgWvh7wnRZQYDcXZmWcQ7gQ
 IUzEK+jyIE40J+NQao/SO47rhQ5WzqzwegXamTNreyI2768PWvjwiUyu3GQBBjqn
 71r5v+fW0wvjMW4+0n7BFJzLY8XE8W44M7JzqMdg0LNHEokxClYVNB16ByieRzHm
 O5z03zI0Og==
 =j8M2
 -----END PGP SIGNATURE-----

Merge tag 'v3.9.1rc1' into 3.9

Python 3.9.1rc1
2020-11-26 18:49:05 +01:00
Miss Islington (bot) dca61e770d
Typo: fix inverted sense of statement (GH-23288) (GH-23512) 2020-11-25 12:14:32 -08:00
Miss Islington (bot) 0aedcff34c
Add more tests to the descriptor howto guide (GH-23506) (GH-23510) 2020-11-25 02:16:32 -08:00
Miss Islington (bot) 9d2c2a8e3b
bpo-12800: tarfile: Restore fix from 011525ee9 (GH-21409)
Restore fix from 011525ee92.
(cherry picked from commit 4fedd7123e)

Co-authored-by: Julien Palard <julien@palard.fr>
2020-11-25 01:52:51 -08:00
Miss Islington (bot) 543724b972
Add doctests to the descriptor HowTo (GH-23500) (GH-23505) 2020-11-24 22:47:17 -08:00
Łukasz Langa 88db374422
Python 3.9.1rc1 2020-11-24 17:48:47 +01:00
Miss Islington (bot) 15d42d7ec6
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 d20b7ed9c1)

Co-authored-by: Filipe Laíns <lains@archlinux.org>
2020-11-24 05:25:29 -08:00
Miss Islington (bot) 96d906b144
bpo-41100: in test_platform, ignore 10.16 (GH-23485) (GH-23486)
(cherry picked from commit c0c23ea72b)

Co-authored-by: Ned Deily <nad@python.org>
2020-11-24 01:34:16 -05:00
Miss Islington (bot) 3266991e72
bpo-41100: minor build installer fixes (GH-23480)
(cherry picked from commit 936533ca04)

Co-authored-by: Ned Deily <nad@python.org>
2020-11-23 16:26:31 -08:00
Miss Islington (bot) b6416052f7
Typo (GH-23482) (#23483)
(cherry picked from commit 989af25616)

Co-authored-by: Jesús Cea <jcea@jcea.es>

Co-authored-by: Jesús Cea <jcea@jcea.es>
2020-11-24 01:11:13 +01:00
Miss Islington (bot) 2019e4ff98
Descriptor HowTo: Improve the fidelity of the member object simulation (GH-23475) (GH-23479) 2020-11-23 11:31:45 -08:00
Miss Islington (bot) 3e53301308
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 dd844a2916)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2020-11-23 00:51:37 -08:00
Ned Deily 5aa6c99da1
bpo-41100: Update Whatsnew and installer ReadME for 3.9.1 (GH-23472) 2020-11-22 23:43:04 -05:00
Miss Islington (bot) 85720596f1
bpo-42361: Use Tcl/Tk 8.6.10 when building the installer on recent macOS (GH-23293)
Building on older versions, and in particular macOS 10.9 still use
Tk 8.6.8 because of build problems on that version of macOS.
(cherry picked from commit 690a5fa3dd)

Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
2020-11-22 10:22:21 -08:00
Miss Islington (bot) 41d1ebb33e
Doc: fix typo in typing.Type docs (GH-23460)
(cherry picked from commit 5ef53a88f3)

Co-authored-by: John Belmonte <john@neggie.net>
2020-11-22 07:16:48 -08:00
Ronald Oussoren e8b1c038b1
[3.9] bpo-41100: Support macOS 11 and Apple Silicon (GH-22855) (GH-23295)
* [3.9] bpo-41100: Support macOS 11 and Apple Silicon (GH-22855)

Co-authored-by:  Lawrence D’Anna <lawrence_danna@apple.com>

* Add support for macOS 11 and Apple Silicon (aka arm64)

  As a side effect of this work use the system copy of libffi on macOS, and remove the vendored copy

* Support building on recent versions of macOS while deploying to older versions

  This allows building installers on macOS 11 while still supporting macOS 10.9..
(cherry picked from commit 41761933c1)

Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>

* Back port of changes to _decimal to support arm64

* temp_dir is in test.support in 3.9
2020-11-22 11:18:40 +01:00
Miss Islington (bot) 0aab3522b2
bpo-41116: Ensure system supplied libraries are found on macOS 11 (GH-23301) (GH-23455)
On macOS system provided libraries are in a shared library cache
and not at their usual location. This PR teaches distutils to search
in the SDK, even if there was no "-sysroot" argument in
the compiler flags.
(cherry picked from commit 404a719b51)

Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
2020-11-22 01:35:36 -05:00
Miss Islington (bot) 4f87126969
bpo-42391: Clarify documentation of TestCase.assertIs (GH-23348)
Removing 'evaluate' makes it more consistent with other assertX entries.
(cherry picked from commit bd8c22e1fa)

Co-authored-by: Ram Rachum <ram@rachum.com>
2020-11-21 22:24:21 -08:00
Miss Islington (bot) dd20643b14
bpo-42426: IDLE: Fix reporting offset of the RE error in searchengine (GH-23447)
(cherry picked from commit 453bc1da20)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2020-11-21 21:30:46 -08:00
Miss Islington (bot) 748d38bf52
[3.9] bpo-38443: Check that the specified universal architectures work (GH-22910) (GH-23451)
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 0f20bd9042)


Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
2020-11-21 17:45:21 -08:00
Miss Islington (bot) 89d74d0acd
Clarify that Set._from_iterable is not required to be a classmethod. (GH-23272) (GH-23450) 2020-11-21 12:20:26 -08:00