Commit Graph

106392 Commits

Author SHA1 Message Date
Terry Jan Reedy a087a97438
[3.8] bpo-32631: IDLE: Enable zzdummy example extension module (GH-14491)
Make menu items work with formatter, add docstrings, add 100% tests.

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
(cherry picked from commit e40e2a2cc9)
2021-01-05 04:18:02 -05:00
Miss Islington (bot) 3b6dcb8630
Fix broken NEWS markup (GH-24110)
(cherry picked from commit cde988e893)

Co-authored-by: Brandt Bucher <brandtbucher@gmail.com>
2021-01-05 00:18:43 -08:00
Miss Islington (bot) d05b470d6a
bpo-42508: Keep IDLE running on macOS (GH-23577) (#23670)
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 57e5113610)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2021-01-05 03:09:30 -05:00
Miss Islington (bot) 0ccac5ff58
bpo-40810: Fix CheckTraceCallbackContent for SQLite pre 3.7.15 (GH-20530)
Ref. [SQLite 3.7.15 changelog](https://sqlite.org/changes.htmlGH-version_3_7_15):
_"Avoid invoking the sqlite3_trace() callback multiple times when a statement is automatically reprepared due to SQLITE_SCHEMA errors."_
(cherry picked from commit f7f0ed59bc)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
2021-01-04 15:36:37 -08:00
Miss Islington (bot) a87bf5fd36
Do not remove x bit from published directories (GH-24101)
(cherry picked from commit af4cd16479)

Co-authored-by: Steve Dower <steve.dower@python.org>
2021-01-04 13:14:51 -08:00
Julien Palard 218ed0b013
Revert "[3.8] [doc] Fix erroneous backslashes in signatures and names (GH-23658)" (GH-24093)
This partially reverts commit
02349e2dc9, which was removing
backslashes in documentations compiled with Sphinx < 3, used for
Python 3.8 and 3.9 docs.
2021-01-04 17:19:16 +01:00
Miss Islington (bot) f24ac45552
bpo-41837: Update macOS installer build to use OpenSSL 1.1.1i. (GH-24080) (#24084)
(cherry picked from commit 14097a2785)

Co-authored-by: Ned Deily <nad@python.org>
2021-01-04 05:27:15 -05:00
Miss Islington (bot) ed2d3d15b2
Update Sphinx version for macOS installer build. (GH-24082) (GH-24088)
(cherry picked from commit 0f3b96b368)

Co-authored-by: Ned Deily <nad@python.org>
2021-01-04 05:21:01 -05:00
Serhiy Storchaka 82794cacc6
[3.8] [3.9] bpo-42681: Fix range checks for color and pair numbers in curses (GH-23874). (GH-24077) (GH-24079)
(cherry picked from commit 1470edd613)
(cherry picked from commit b0ee2b492d)
2021-01-04 10:58:09 +02:00
Serhiy Storchaka 645174abe0
[3.8] [3.9] bpo-42789: Don't skip curses tests on non-tty. (GH-24009) (GH-24076) (GH-24078)
If __stdout__ is not attached to terminal, try to use __stderr__
if it is attached to terminal, or open the terminal device, or
use regular file as terminal, but some functions will be untested
in the latter case.
(cherry picked from commit 607501abb4)
(cherry picked from commit 0303008ebc)
2021-01-04 00:54:13 +02:00
Miss Islington (bot) 2e8b1c9e9b
bpo-42809: Improve pickle tests for recursive data. (GH-24060)
(cherry picked from commit a25011be8c)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2021-01-02 09:50:28 -08:00
Serhiy Storchaka 6dffa67b98
[3.8] bpo-26407: Do not mask errors in csv. (GH-20536) (GH-24021)
Unexpected errors in calling the __iter__ method are no longer
masked by TypeError in csv.reader(), csv.writer.writerow() and
csv.writer.writerows().
(cherry picked from commit c88239f864)
2021-01-01 19:42:23 +02:00
Serhiy Storchaka b863607d30
[3.8] bpo-39068: Fix race condition in base64 (GH-17627) (GH-24022)
There was a race condition in base64 in lazy initialization of multiple globals.
(cherry picked from commit 9655434cca)

Co-authored-by: Brandon Stansbury <brandonrstansbury@gmail.com>
2021-01-01 19:41:49 +02:00
Serhiy Storchaka 187785e2fa
[3.8] bpo-36589: Fix the error handling in curses.update_lines_cols(). (GH-12766) (GH-24023)
Return None instead of 1.
(cherry picked from commit 2bc343417a)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
2021-01-01 19:40:38 +02:00
Serhiy Storchaka 1a544e1dcf
[3.8] bpo-42425: Fix possible leak in initialization of errmap for OSError (GH-23446). (GH-24025)
(cherry picked from commit ed1007c0d7)
2021-01-01 19:40:11 +02:00
Serhiy Storchaka e3a9adba32
[3.8] bpo-42759: Fix equality comparison of Variable and Font in Tkinter (GH-23968) (GH-24026)
Objects which belong to different Tcl interpreters are now always
different, even if they have the same name.
(cherry picked from commit 1df56bc059)
2021-01-01 19:39:36 +02:00
Miss Islington (bot) 02639c3bc6
Bring Python into the new year. (GH-24036)
(cherry picked from commit de6f20a6de)

Co-authored-by: Dong-hee Na <donghee.na@python.org>
2021-01-01 09:28:23 -08:00
Miss Islington (bot) 381f3e4bfd
bpo-42794: Update test_nntplib to use offical group name for testing (GH-24037)
(cherry picked from commit ec3165320e)

Co-authored-by: Dong-hee Na <donghee.na@python.org>
2021-01-01 06:40:18 -08:00
Miss Islington (bot) 82f24ff344
Fixes a typo in importlib.metadata. (GH-23921) (#24030)
Signed-off-by: Tao He <sighingnow@gmail.com>
(cherry picked from commit 3631d6deab)

Co-authored-by: Tao He <sighingnow@gmail.com>

Co-authored-by: Tao He <sighingnow@gmail.com>
2020-12-31 12:27:04 -08:00
Andre Delfino bc15cdbc6e
[3.8] bpo-41224: Add versionadded for Symbol.is_annotated (GH-23861). (GH-24016)
(cherry picked from commit 2edfc86f69)
2020-12-31 15:10:46 +02:00
Miss Islington (bot) 741f22df24
Allow / character in username,password fields in _PROXY envvars. (GH-23973) (#23992)
(cherry picked from commit 030a713183)

Co-authored-by: Senthil Kumaran <senthil@uthcode.com>
2020-12-29 05:15:14 -08:00
Miss Islington (bot) 70ced2dd27
bpo-42700: Swap descriptions in pyexpat.errors (GH-23876)
The descriptions of the `codes` and `messages` dictionaries in
`xml.parsers.expat.errors` were swapped, and this commit swaps them
back. For example, `codes` maps string descriptions of errors to numeric
error codes, not the other way around.
(cherry picked from commit 84402eb110)

Co-authored-by: Michael Wayne Goodman <goodman.m.w@gmail.com>
2020-12-29 04:42:05 -08:00
Miss Islington (bot) 8f9313c83f
[doc] Fix missing commas in signatures (GH-23693)
* Fix star in signatures

* Fix comma in signatures
(cherry picked from commit 60eccd0956)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
2020-12-29 04:28:47 -08:00
Miss Islington (bot) 323cbb5531
bpo-42749: Use dynamic version to test for unsupported bignum in Tk (GH-23966)
Tk can internally support bignum even if Tkinter is built without
support of bignum.
(cherry picked from commit 156b7f7052)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2020-12-29 03:16:43 -08:00
Miss Islington (bot) e11639880a
bpo-42770: Fix a typo in the email.headerregistry docs (GH-23982)
Automerge-Triggered-By: GH:zware
(cherry picked from commit c56988b88f)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
2020-12-28 20:21:43 -08:00
Miss Islington (bot) 9d7c5ab6a4
bpo-42749: Fix testing bignum if Tkinter is compiled with Tk 8.4 and dynamic linked with Tk >= 8.5 (GH-23955) (GH-23962)
(cherry picked from commit b02ad2458b)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2020-12-27 10:56:40 +02:00
Serhiy Storchaka fc6534f205
[3.8] Rename Tkinter tests for widget options (GH-23944) (GH-23946)
Every test for widget option starts now with "test_configure_"
to distinguish it from tests for widget commands.
(cherry picked from commit c1ae21c965)
2020-12-26 12:38:13 +02:00
Miss Islington (bot) 4d840e428a
[3.8] bpo-42318: Fix support of non-BMP characters in Tkinter on macOS (GH-23281). (GH-23784) (GH-23787)
(cherry picked from commit a26215db11)
(cherry picked from commit 28bf6ab61f)
2020-12-26 00:35:46 +02:00
Miss Islington (bot) 0178a6b67c
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 954a7427ba)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2020-12-25 07:20:35 -08:00
Miss Islington (bot) d5aadb2854
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 64abf37344)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
2020-12-24 21:18:13 -08:00
Miss Islington (bot) efd64c8ea0
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 b57ada98da)

Co-authored-by: Augusto Hack <hack.augusto@gmail.com>
2020-12-24 09:34:28 -08:00
Miss Islington (bot) 412c935a37
BPO-42703: Fix incorrect documentation links for asyncio.Event (GH-23881)
(cherry picked from commit d90ff37681)

Co-authored-by: Matt Fowler <matt.fow@gmail.com>
2020-12-23 03:14:27 -08:00
Miss Islington (bot) b20494618c
bpo-42620: Improve socket.getsockname doc string (GH-23742)
Signed-off-by: Christian Heimes <christian@python.org>
(cherry picked from commit cf3565ca9a)

Co-authored-by: Christian Heimes <christian@python.org>
2020-12-22 23:44:00 -08:00
Andre Delfino 02349e2dc9
[3.8] [doc] Fix erroneous backslashes in signatures and names (GH-23658) (GH-23828)
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 dcc997cd28)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
2020-12-21 18:56:55 -08:00
Andre Delfino d3ab4c82a9
[3.8] [doc] Fix a few margins due to bad markup (GH-23619). (GH-23860)
(cherry picked from commit 96a09df644)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
2020-12-21 18:55:19 -08:00
Łukasz Langa 285b38c3a8
Post 3.8.7 2020-12-21 18:46:59 +01:00
Łukasz Langa e3ffe353b1 Python 3.8.7
-----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCAAdFiEE4/8oOcBIslwITevpsmmV4xAlBWgFAl/gzLcACgkQsmmV4xAl
 BWhEfQ/+PorQSUp17fC/KAEQ5QBuHsyOcdx05vFeTjpalrQjJ5GcVH+sHsswzp9L
 0RHZOdHatlRbhfUqdwtgEpi/AXawGwOpOA7CZ5VzUKafhgUJ4yeNrvNKkvsmLNey
 zJJIqA0KiUrgnBi370WppgrC3+cRYlQiqxrbrGTqKGnNf5DNW4fQaBywYNECz655
 H2MhSWzwvBl/Uw7H0pbGxAd0uTrvjoUibgszD1vzdZYj7wwNlqxkN7pM/TBMoDd2
 VGTzfNdl9Li5mhW76ZWcg8D9ZLjn1/RNBuls8bLiEc0FChRDrM2jXXtNNDXbA1Hx
 ek+IrTiKYwcPh+uMjZ1+kX32ZYhCMoIgUw+nNGcHa5pbTaW5oUE/nidWuL9Wtn/U
 QjNaaL6z67m8QcDa96KnVOiMIX20T6HiJNsbw1Cbw/t4VhkILHaRhXdd2sZE0xTF
 29ZGCLHEkZqgaxx/PZKBaWyV62thoSW9QPSMlOvhHzCKY85jul+fsd+naNyux1FL
 8hgvMUXDRAeyB7C9Dym16VVSe9m8YDTyMDIUttqNoCmeQX059t004SBLbVd9Hhzf
 AnU/6hWSAAlek1pTEga0cE3ZH1yMk2NfCzGC6/elAhPPp624zk2PiLOwZ2nRppu+
 kL2T2PCpxzMaRsciYxrMglDGtiGUFbDj8RGkSxEqtqqSRB+7p6A=
 =1BTY
 -----END PGP SIGNATURE-----
gpgsig -----BEGIN PGP SIGNATURE-----
 
 iQJEBAABCAAuFiEE4/8oOcBIslwITevpsmmV4xAlBWgFAl/g34UQHGx1a2FzekBs
 YW5nYS5wbAAKCRCyaZXjECUFaEpWD/0Vp+ZZtKahjbAYy2T1rqF47CtNaKZv9VKe
 Z2powFXTbnawjmWXFOjNYot/cf0SSS65zarcl7koF8w2lBShhpavA936J0vm5lUB
 p8ed5gDrCYwU0YDP39YtbCQSgy8oQxVBExJTY1Yi9HC6mh1Q53GQBg52tU5e4kuc
 f0Ggxxz3ClMWSXom87eGwcCck8YpNjZYbv5yiR0RA6qNx0CxX10lwusmrwBKQCqQ
 KzSXW8594NF/NHw890JM9X9a0mlVPlDL8xUcZrYVxdCjLGEJ/BlUIbAvHD8wwBxX
 LF0CTJNHwzZeM3GKPPajKcJWl1l9DoK0R8uq86231OzDdeqlpbHIxsAgV2uc1J6R
 8LQs9FQ9tM1t/WODM3KgWvrbi8MP07QnNl33MsIaEEv9KZ9Dckpt9PijeNipt6CT
 FrV8+L5ZlZznq355JbN0AmL9lBD+dazovOB5drNT+3hriGBKZvIUW2BCn7qWR+1o
 3V4kA5xM+cmThihf0Nr1pzGc4YQdIfGLcnHGMpZ34Z5rjbCyXtRMoo0C4Xn0kN+A
 5Dx3hVcwEkdgYwmMPmaJLUIAoGnlt5dB70QcElAqMboxrtmxqGJsLGtMnql6KLbp
 7Vv9ldgzvHyw0UnF/9bfi1RcXyy3pIYPGfhLBb6O7wN8zn7Cduu1UGAPGQE4tec+
 OcDpUBEsBw==
 =J3NV
 -----END PGP SIGNATURE-----

Merge tag 'v3.8.7' into 3.8

Python 3.8.7
2020-12-21 18:46:42 +01:00
Ned Deily 305eae8ebf
Update macOS installer ReadMe for 3.8.7 and Big Sur (GH-23882) 2020-12-21 18:12:25 +01:00
Łukasz Langa 6503f05dd5
Python 3.8.7 2020-12-21 17:25:24 +01:00
Miss Islington (bot) a3537716a5
Fix typo in docstring (GH-23515)
(cherry picked from commit 711381dfb0)

Co-authored-by: Fernando Toledo <42938011+fernandohtr@users.noreply.github.com>
2020-12-21 06:28:47 -08:00
Miss Islington (bot) 81f706d2db
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 c95f8bc270)

Co-authored-by: Colin Watson <cjwatson@debian.org>

Co-authored-by: Colin Watson <cjwatson@debian.org>
2020-12-20 16:18:40 -05:00
Miss Islington (bot) b01091a3e7
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 a44ce6c9f7)

Co-authored-by: Matti Picus <matti.picus@gmail.com>
2020-12-19 19:17:42 -08:00
Miss Islington (bot) 24862b02df
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 09a36cdfb7)

Co-authored-by: sblondon <sblondon@users.noreply.github.com>
2020-12-19 19:02:58 -05:00
Serhiy Storchaka 80c445cafb
[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 3d569fd6dc)
2020-12-19 16:38:37 +02:00
Miss Islington (bot) d21d29ab5b
[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 84ebcf271a)


Co-authored-by: Matt Wozniski <mwozniski@bloomberg.net>
2020-12-18 10:37:57 -08:00
Miss Islington (bot) a3dec9d8ec
bpo-41891: ensure asyncio.wait_for waits for task completion (GH-22461)
(cherry picked from commit 17ef4319a3)

Co-authored-by: Richard Kojedzinszky <rkojedzinszky@users.noreply.github.com>
2020-12-18 09:45:24 -08:00
Miss Islington (bot) 12032cdec5
bpo-39096: Format specification documentation fixes for numeric types (GH-23575)
(cherry picked from commit 886b2e5c7a)

Co-authored-by: Mark Dickinson <mdickinson@enthought.com>
2020-12-18 01:34:24 -08:00
Miss Islington (bot) cecbaa3a80
bpo-26564: fix obsolete comment in traceback.c (GH-23819)
(cherry picked from commit 40125ab325)

Co-authored-by: Irit Katriel <iritkatriel@yahoo.com>
2020-12-17 05:19:49 -08:00
Miss Islington (bot) 829272e67b
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 1c653f17cb)

Co-authored-by: Victor Stinner <vstinner@python.org>
2020-12-17 03:40:26 -08:00
Miss Islington (bot) 4f65907f38
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 13b865f0e1)

Co-authored-by: David CARLIER <devnexen@gmail.com>

Co-authored-by: David CARLIER <devnexen@gmail.com>
2020-12-17 12:16:00 +01:00