Commit Graph

106385 Commits

Author SHA1 Message Date
Miss Islington (bot) 925f998786
bpo-33610: Edit idlelib.codecontext (GH-23773)
Add sentence to module docstring and import tkinter items.
(cherry picked from commit 6f79e60b66)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2020-12-14 21:45:44 -08:00
Miss Islington (bot) 06bfd033e8
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 42c9f0fd0a)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
2020-12-14 09:29:57 -08:00
Miss Islington (bot) 9feda9f871
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 674fa0a740)

Co-authored-by: Joshua Root <jmr@macports.org>
2020-12-13 17:01:59 -05:00
Andre Delfino 150b9bf3e9
[3.8] [doc] Link to issue regarding logging.disable level param default value GH-23731
(cherry picked from commit 2a35137328)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
2020-12-10 06:19:51 -08:00
Miss Islington (bot) f6d1520219
bpo-40084: [Enum] dir() includes member attributes (GH-19219) (GH-22853)
(cherry picked from commit 68526fe258)

Co-authored-by: Angelin BOOZ <9497359+lem2clide@users.noreply.github.com>
2020-12-09 11:25:06 -08:00
Ethan Furman 21ca80eef4
[3.8] [Enum] reformat and add doc strings (GH-23705). (GH-23706)
* [3.8] [Enum] reformat and add doc strings (GH-23705).
2020-12-08 13:28:47 -08:00
Miss Islington (bot) cbfcc67170
bpo-41907: [Enum] fix format() behavior for IntFlag (GH-22497) (GH-23704)
(cherry picked from commit 37440eef7f)
2020-12-08 11:52:58 -08:00
Terry Jan Reedy b947b305a6
[3.8] bpo-41910: move news entry (GH-23698) 2020-12-08 13:00:03 -05:00
Victor Stinner b5cf308de8
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 b6d98c10ff)
(cherry picked from commit f0e42ae03c)
2020-12-08 17:42:31 +01:00
Łukasz Langa 801f351333
Post 3.8.7rc1 2020-12-08 03:07:07 +01:00
Łukasz Langa f01ec28949 Python 3.8.7rc1
-----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCAAdFiEE4/8oOcBIslwITevpsmmV4xAlBWgFAl/OOOAACgkQsmmV4xAl
 BWh8nQ//dAtAJguTePQnppw/R4oGRJm40vjqkRAJhsGWYHJhkkZ8kl47ZelxXzFl
 +m3zPsa/6h/0ds4rvc3y8jJ4rXfLMmIFlPsw4bsm5Jr9d2tdWYqedJbEdcYRx/TX
 8mX6KLVgYtGBR1kxau2c58aI6fX3dgltSLJLT7VZSRIMTuRxXYekbfVFDVOi0PeC
 UXbgnHzrpG+Joh2tGMbXWNJQap7KGEI+KX64DZ+IA8PLxpIsyrNFfcRYIuXFg9TX
 DJLFDcCreHkUOJpxidC6l4n8kdf9RjKB6K4g5YbSoN6yEO1mtlbDgHlCOgRoWPJ7
 OmefmtxQ1yqV/NWf38ypheMy5i+ZkoMlfrKl/RIneiKsqNIFUvrPzvVaoaHD5o3r
 lxIY/bAr9CIHFCKyBD4nSINJ5ZaLBk/o0nx6lOl4P84gyJE+PiECIHRSODblHtNg
 bYf8LMQ0xB/VI6v4EjVDygH6wQl6wTUg3WjvoxwkV14bnlMNEZP2zjz6f7EXoEMT
 DGzMnG0apE8l+66edntnJQSM1FsCzvzKA2JvD+91EjwNeUNQGcddvnULuDXTrWFH
 Kr5/i60oOi90ZsFlPvT25eyI2r3uYqcGWPH83oBHuKtEXRJtGZs8biOla/mZTGo7
 fLys+yDA+KqFH5LoGTCkTdhFCY8yEU6LCXQYAXODkNLoELeadig=
 =T+75
 -----END PGP SIGNATURE-----
gpgsig -----BEGIN PGP SIGNATURE-----
 
 iQJEBAABCAAuFiEE4/8oOcBIslwITevpsmmV4xAlBWgFAl/O38IQHGx1a2FzekBs
 YW5nYS5wbAAKCRCyaZXjECUFaF74D/9stvFY2BI9GEZjq+2nOgU8L0pMNEoqKh4m
 hzFtsOReC4eSO/RyvXX0U2qkH/CC7V+6CIZFBXX90eL/yFTWEFCGkB1xdTh9BE0S
 OqXrJ9IFsmfRCyyVPV28iGhbTUBohPMyMmxyx6wo8tFIonFwcST/q9WyZKrUP7Oe
 8NkgtBBCrrbRgAOZ5HtamBIPLtLUlqOvlL6HIQQSMMnAl04Zp3i+OeXqqDE2rxrd
 NPrlghtVwp21kpIE701rrnA3so5ZmVcXAZ7KIRqPam3bHW1saH4OuuGcilxciyrM
 SxiKgzwF826Yku+WAsJsBUdS5mjc1L+VDMdIVXZ2v4N4qCS1QNw7BtwwzvsTnbVU
 fiKv8ARjwDepvub9v9QKZ8r8sR9x4HILlGGJyodw67Mqrysap5opA9BStkRBSkDN
 NxifPMnxLgwJsj2y5Zs/sWI1MqMvvE2/7e/L4hS2bgOnF+DeYNEZWU5vP6N78DDz
 MSql2Ql3f9dusxETGrOUowY/UR5pQ6C+44wiquwysODTWFiDCcr/7bKq6DapkZr3
 h6GgFGxODoP7nx0CIZNF3nNzfUT1xNUAS2+siwNJ/nO8zeh5FbJfeYMN/PJ+QCGX
 y3WN0toocgtdDZfWc+zpcjAdw4xS3o5lpzlQZPiDhVG2X0MPNVVXlD6HdS7Yjakt
 w2XUqPCRBg==
 =G9Dw
 -----END PGP SIGNATURE-----

Merge tag 'v3.8.7rc1' into 3.8

Python 3.8.7rc1
2020-12-08 03:06:56 +01:00
Miss Islington (bot) 699e5e4489
bpo-41889: [Enum] fix multiple-inheritance regression (GH-22487) (GH-23672)
(cherry picked from commit c266736ec1)
2020-12-07 15:50:14 -08:00
Pablo Galindo b6d6f5367d
bpo-42574: Use format() instead of f-string in Tools/clinic/clinic.py to allow using older Python versions (GH-23685) 2020-12-07 23:45:21 +00:00
Brandt Bucher 7c79798238
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 226a012d1c)
2020-12-07 20:08:24 +00:00
Miss Islington (bot) ca52aa3ddd
bpo-39825: Fixes sysconfig.get_config_var('EXT_SUFFIX') on Windows to match distutils (GH-22088)
(cherry picked from commit c0afb7fa0e)

Co-authored-by: Matti Picus <matti.picus@gmail.com>
2020-12-07 09:50:48 -08:00
Łukasz Langa e3201094af
Python 3.8.7rc1 2020-12-07 15:13:36 +01:00
Miss Islington (bot) a4e7d5f750
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 2e0760bb2e)

Co-authored-by: Irit Katriel <iritkatriel@yahoo.com>
2020-12-04 13:44:53 -08:00
Miss Islington (bot) 3b14f18205
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:09 -08:00
Miss Islington (bot) 8e8f82dd94
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:41:02 -08:00
Miss Islington (bot) 930d5377c5
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:15:28 -08:00
Miss Islington (bot) 12d2306a1d
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:07:13 -08:00
Miss Islington (bot) d9d63f13cf
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:34:01 -08:00
Miss Islington (bot) 74c40ddfd3
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:21:29 -08:00
Miss Islington (bot) eb6059e881
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 8acd0e0d49)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-01 07:18:09 -08:00
Miss Islington (bot) 04232de229
Fix bz2 examples markup (GH-23580)
(cherry picked from commit 80a429eae9)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
2020-12-01 01:51:12 -08:00
Miss Islington (bot) 1cc5c943c0
bpo-42482: remove reference to exc_traceback from TracebackException (GH-23531)
(cherry picked from commit 427613f005)

Co-authored-by: Irit Katriel <iritkatriel@yahoo.com>
2020-11-30 17:53:40 -08:00
Miss Islington (bot) f4389bfbb5
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 e41bfd15dd)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2020-11-30 09:30:46 -08:00
Miss Islington (bot) a5b0c17e0d
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:42:56 -08:00
Irit Katriel d82e08d185
[3.8] bpo-42474: test TracebackException comparison to non-equal instances (GH-23558) 2020-11-29 17:41:19 -08:00
Miss Islington (bot) b1c48e5136
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:43:36 -08:00
Miss Islington (bot) c3009a5818
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 c642374b3e)

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

Co-authored-by: Mark Dickinson <mdickinson@enthought.com>
2020-11-29 09:58:35 +00:00
Miss Islington (bot) 5be629d513
Fix multiprocessing markup (GH-23525)
(cherry picked from commit 4b44472966)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
2020-11-28 13:52:10 -08:00
Miss Islington (bot) e1c669b7ed
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:02:23 -08:00
Miss Islington (bot) 4498e98a6b
bpo-34215: Clarify IncompleteReadError message when "expected" is None (GH-21925) (#23540)
Co-Authored-By: Tyler Bell <mrbell321@gmail.com>
(cherry picked from commit 8085f742f4)
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
2020-11-28 16:44:34 +02:00
Miss Islington (bot) 01fcde89d7
bpo-17852: Doc: Fix the tutorial about closing files (GH-23135)
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-11-26 16:51:54 -08:00
Miss Islington (bot) bda2e68c88
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 02:01:01 -08:00
Miss Islington (bot) 8388a33307
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-24 09:54:32 -08:00
Miss Islington (bot) b55a276a18
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:30 -08:00
Miss Islington (bot) ad49526c80
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:22 -08:00
Miss Islington (bot) 734d6d9dfe
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:12:20 -08:00
Miss Islington (bot) 2528a7db1c
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:10:24 -08:00
Miss Islington (bot) 28b40d7a34
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:24:11 -08:00
Miss Islington (bot) 6e665424d6
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 0f20bd9042)

Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
2020-11-21 17:54:08 -08:00
Miss Islington (bot) 7e9bf4ec91
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 4c24b08cd3)

Co-authored-by: Zhang Maiyun <myzhang1029@hotmail.com>

Co-authored-by: Zhang Maiyun <myzhang1029@hotmail.com>
2020-11-21 13:22:08 +02:00
Miss Islington (bot) 648a32b12e
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 1db76394ea)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2020-11-21 02:39:23 -08:00
Miss Islington (bot) 97136d71a7
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 31729366e2)

Co-authored-by: Devin Jeanpierre <jeanpierreda@google.com>
2020-11-21 01:12:21 -08:00
Miss Islington (bot) 0762e09eb1
bpo-42407: Use possessive appostrophe in multiprocessing doc (GH-23400)
(cherry picked from commit 6edf06b24a)

Co-authored-by: ArioA <ArioA@users.noreply.github.com>
2020-11-20 18:47:17 -08:00
Miss Islington (bot) c076d48805
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 7ddbaa7a1b)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2020-11-19 23:22:29 -08:00
Miss Islington (bot) 5f463e501b
[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 fa8748271a)


Co-authored-by: Irit Katriel <iritkatriel@yahoo.com>
2020-11-18 14:39:42 -08:00
Steve Dower 8b1f4cc464
bpo-42336: Improve PCbuild batch files (GH-23325) 2020-11-18 17:24:56 +00:00