]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
Miss Skeleton (bot) [Mon, 19 Oct 2020 23:07:20 +0000 (16:07 -0700)]
bpo-27321 Fix email.generator.py to not replace a non-existent header. (GH-18074)
This PR replaces GH-1977. The reason for the replacement is two-fold.
The fix itself is different is that if the CTE header doesn't exist in the original message, it is inserted. This is important because the new CTE could be quoted-printable whereas the original is implicit 8bit.
Also the tests are different. The test_nonascii_as_string_without_cte test in GH-1977 doesn't actually test the issue in that it passes without the fix. The test_nonascii_as_string_without_content_type_and_cte test is improved here, and even though it doesn't fail without the fix, it is included for completeness.
Automerge-Triggered-By: @warsaw
(cherry picked from commit
bf838227c35212709dc43b3c3c57f8e1655c1d24 )
Co-authored-by: Mark Sapiro <mark@msapiro.net>
Miss Skeleton (bot) [Mon, 19 Oct 2020 22:39:50 +0000 (15:39 -0700)]
bpo-40901: Describe what "interface name" means on Windows (GH-20694)
(cherry picked from commit
f85658a09878c658ae0e0590bfa30e4ce51c9a04 )
Co-authored-by: Jakub Stasiak <jakub@stasiak.at>
Miss Skeleton (bot) [Mon, 19 Oct 2020 22:29:37 +0000 (15:29 -0700)]
bpo-16396: Allow wintypes to be imported on non-Windows systems. (GH-21394)
Co-authored-by: Christian Heimes <christian@python.org>
(cherry picked from commit
5456e78f4593edc277ab72fb9a9db1ebae7d4c2d )
Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
Miss Skeleton (bot) [Mon, 19 Oct 2020 22:19:00 +0000 (15:19 -0700)]
bpo-41217: Fix incorrect note in the asyncio.create_subprocess_shell() docs (GH-21360)
On Windows, the default asyncio event loop is ProactorEventLoop (as of 3.8).
(cherry picked from commit
4dfb190a33a1deac60306f15d52d2fe11fb93464 )
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Miss Skeleton (bot) [Mon, 19 Oct 2020 22:12:57 +0000 (15:12 -0700)]
bpo-41292: Fixes dead link to cx_freeze from Windows FAQ (GH-21463)
(cherry picked from commit
33242a9328cb3912f02819d2d092bf89681000b2 )
Co-authored-by: Michel Samia <m.samia@seznam.cz>
Miss Skeleton (bot) [Mon, 19 Oct 2020 21:55:43 +0000 (14:55 -0700)]
Link to the msvcrt module from the Windows FAQ (GH-22268)
(cherry picked from commit
5d9e6575177f3e5f9aa20d6a08ae1204f122e672 )
Co-authored-by: abdo <abd.nh25@gmail.com>
Miss Skeleton (bot) [Mon, 19 Oct 2020 20:22:34 +0000 (13:22 -0700)]
Remove extra pip package (GH-22778)
(cherry picked from commit
6b487e07d0525f7721dcb4dc1aa96eb2eec97a78 )
Co-authored-by: Steve Dower <steve.dower@python.org>
Miss Skeleton (bot) [Mon, 19 Oct 2020 18:52:27 +0000 (11:52 -0700)]
bpo-41192: Fix some broken anchors for audit event entries (GH-21310) (GH-22770)
(cherry picked from commit
ebc8c3828779374b9be4fae5c8ffc0059d36ac8c )
Co-authored-by: Saiyang Gou <gousaiyang@163.com>
Anthony Sottile [Sun, 18 Oct 2020 21:14:18 +0000 (14:14 -0700)]
bpo-40492: Fix --outfile with relative path when the program changes it working dir (GH-19910)
(cherry picked from commit
3c0ac18504cfeed822439024339d5717f42bdd66 )
Irit Katriel [Sun, 18 Oct 2020 21:06:34 +0000 (22:06 +0100)]
[3.8] bpo-32498: Improve exception message on passing bytes to urllib.parse.unquote (GH-22746)
Miss Skeleton (bot) [Sun, 18 Oct 2020 15:33:28 +0000 (08:33 -0700)]
bpo-41966: Fix pickling pure datetime.time subclasses (GH-22731) (GH-22748)
(cherry picked from commit
c304c9a7efa8751b5bc7526fa95cd5f30aac2b92 )
Co-authored-by: scaramallion <scaramallion@users.noreply.github.com>
Miss Skeleton (bot) [Sun, 18 Oct 2020 06:16:52 +0000 (23:16 -0700)]
bpo-42065: Fix incorrectly formatted _codecs.charmap_decode error message (GH-19940)
(cherry picked from commit
3635388f52b42e5280229104747962117104c453 )
Co-authored-by: Max Bernstein <tekknolagi@users.noreply.github.com>
Miss Skeleton (bot) [Fri, 16 Oct 2020 17:20:24 +0000 (10:20 -0700)]
bpo-42011: Update documentation of logging.Filter.filter() (GH-22692) (GH-22724)
(cherry picked from commit
e9959c71185d0850c84e3aba0301fbc238f194a9 )
Jason R. Coombs [Thu, 15 Oct 2020 21:05:12 +0000 (17:05 -0400)]
[3.8] bpo-41855: Fix duplicate results in FastPath.zip_children() (#22404)
* bpo-41855: Backport fixes from importlib_metadata 1.5.2.
* Add blurb.
* Add anchor for finders and loaders
Miss Skeleton (bot) [Thu, 15 Oct 2020 15:51:48 +0000 (08:51 -0700)]
bpo-41984: GC track all user classes (GH-22701/GH-22707)
(cherry picked from commit
c13b847a6f913b72eeb71651ff626390b738d973 )
Miss Skeleton (bot) [Thu, 15 Oct 2020 02:11:08 +0000 (19:11 -0700)]
bpo-41894: Fix UnicodeDecodeError while loading native module (GH-22466)
When running in a non-UTF-8 locale, if an error occurs while importing a
native Python module (say because a dependent share library is missing),
the error message string returned may contain non-ASCII code points
causing a UnicodeDecodeError.
PyUnicode_DecodeFSDefault is used for buffers which may contain
filesystem paths. For consistency with os.strerror(),
PyUnicode_DecodeLocale is used for buffers which contain system error
messages. While the shortname parameter is always encoded in ASCII
according to PEP 489, it is left decoded using PyUnicode_FromString to
minimize the changes and since it should not affect the decoding (albeit
_potentially_ slower).
In dynload_hpux, since the error buffer contains a message generated
from a static ASCII string and the module filesystem path,
PyUnicode_DecodeFSDefault is used instead of PyUnicode_DecodeLocale as
is used elsewhere.
* bpo-41894: Fix bugs in dynload error msg handling
For both dynload_aix and dynload_hpux, properly handle the possibility
that decoding strings may return NULL and when such an error happens,
properly decrement any previously decoded strings and return early.
In addition, in dynload_aix, ensure that we pass the decoded string
*object* pathname_ob to PyErr_SetImportError instead of the original
pathname buffer.
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
(cherry picked from commit
2d2af320d94afc6561e8f8adf174c9d3fd9065bc )
Co-authored-by: Kevin Adler <kadler@us.ibm.com>
Miss Skeleton (bot) [Wed, 14 Oct 2020 01:59:12 +0000 (18:59 -0700)]
bpo-41939: always enable test_site.test_license_exists_at_url (GH-22688)
(cherry picked from commit
6a48518e8dac3521ff387ee67cdf33783114a257 )
Co-authored-by: Ned Deily <nad@python.org>
Dong-hee Na [Tue, 13 Oct 2020 15:18:58 +0000 (00:18 +0900)]
[3.8] bpo-32793: Fix a duplicate debug message in smtplib (GH-15341) (GH-22683)
_get_socket() already prints a debug message for the host and port.
https://bugs.python.org/issue32793
Automerge-Triggered-By: @maxking
(cherry picked from commit
46a7564578f208df1e0c54fc0520d3b7ca32c981 )
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Miss Skeleton (bot) [Mon, 12 Oct 2020 08:51:10 +0000 (01:51 -0700)]
bpo-41739: Fix test_logging.test_race_between_set_target_and_flush() (GH-22655) (GH-22656) (GH-22662)
The test now waits until all threads complete to avoid leaking
running threads.
Also, use regular threads rather than daemon threads.
(cherry picked from commit
13ff396c019d548ba181cf22c6f39309a300723c )
(cherry picked from commit
f5393dc2a0ced7bf670ebc56b5fd10a3eb328d1a )
Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Victor Stinner <vstinner@python.org>
Miss Skeleton (bot) [Sun, 11 Oct 2020 18:21:31 +0000 (11:21 -0700)]
bpo-41376: Fix the documentation of `site.getusersitepackages()` (GH-21602) (GH-22592)
`site.getusersitepackages()` returns the location of the user-specific site-packages directory
even when the user-specific site-packages is disabled.
```
$ python -s -m site
sys.path = [
'/home/user/conda/lib/python37.zip',
'/home/user/conda/lib/python3.7',
'/home/user/conda/lib/python3.7/lib-dynload',
'/home/user/conda/lib/python3.7/site-packages',
]
USER_BASE: '/home/user/.local' (exists)
USER_SITE: '/home/user/.local/lib/python3.7/site-packages' (doesn't exist)
ENABLE_USER_SITE: False
```
It was not practical to prevent the function from returning None if user-specific site-packages are disabled, since there are other uses of the function which are relying on this behaviour (e.g. `python -m site`).
(cherry picked from commit
35f041dd0171f575fc3adce1709b31fdf45a5ff6 )
Co-authored-by: Phil Elson <pelson.pub@gmail.com>
Co-authored-by: Phil Elson <pelson.pub@gmail.com>
Andre Delfino [Sun, 11 Oct 2020 17:32:02 +0000 (14:32 -0300)]
[3.8] [doc] Fix link to abc.collections.Iterable (GH-22502) (#22504)
Automerge-Triggered-By: @gvanrossum.
(cherry picked from commit
d4b9edd5052a2d9ae3d2be69975cc933afb37737 )
Co-authored-by: Andre Delfino <adelfino@gmail.com>
Miss Skeleton (bot) [Sat, 10 Oct 2020 14:28:49 +0000 (07:28 -0700)]
bpo-41986: Add Py_FileSystemDefaultEncodeErrors and Py_UTF8Mode back to limited API (GH-22621)
(cherry picked from commit
637a09b0d6e3ad4e34e0b5e0fc82f5afeae6f74b )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Skeleton (bot) [Sat, 10 Oct 2020 04:50:23 +0000 (21:50 -0700)]
Fix incorrect parameter name (GH-22613)
Automerge-Triggered-By: @Mariatta
(cherry picked from commit
a42759351bff7b07fa8bf2cece0088f8539721d1 )
Co-authored-by: Xie Yanbo <xieyanbo@gmail.com>
Miss Skeleton (bot) [Fri, 9 Oct 2020 20:21:15 +0000 (13:21 -0700)]
bpo-41831: Restore str implementation of __str__ in tkinter.EventType (GH-22355)
(cherry picked from commit
eb38c6b7aa35d3003ec0958533421902d19ce408 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Skeleton (bot) [Fri, 9 Oct 2020 19:05:26 +0000 (12:05 -0700)]
bpo-41831: Add tests for tkinter.Event.__repr__ (GH-22354)
(cherry picked from commit
f25323a307a72c40862c87c2df822f83be6645da )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Skeleton (bot) [Thu, 8 Oct 2020 18:57:33 +0000 (11:57 -0700)]
bpo-41557: Update Windows installer to use SQLite 3.33.0 (GH-21960)
(cherry picked from commit
bfe6e03cd6931813dd61b50f5fdf7d8a8848f4cd )
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
Pablo Galindo [Thu, 8 Oct 2020 18:50:28 +0000 (19:50 +0100)]
[3.8] bpo-41976: Fix the fallback to gcc of ctypes.util.find_library when using gcc>9 (GH-22598). (GH-22600)
(cherry picked from commit
27ac19cca2c639caaf6fedf3632fe6beb265f24f )
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Miss Skeleton (bot) [Thu, 8 Oct 2020 16:14:33 +0000 (09:14 -0700)]
bpo-41306: Allow scale value to not be rounded (GH-21715)
This fixes the test failure with Tk 6.8.10 which is caused by changes to how Tk rounds the `from`, `to` and `tickinterval` arguments. This PR uses `noconv` if the patchlevel is greater than or equal to 8.6.10 (credit to Serhiy for this idea as it is much simpler than what I previously proposed).
Going into more detail for those who want it, the Tk change was made in [commit
591f68c ](https://github.com/tcltk/tk/commit/
591f68cb382525b72664c6fecaab87742b6cc87a ) and means that the arguments listed above are rounded relative to the value of `from`. However, when rounding the `from` argument ([line 623](https://github.com/tcltk/tk/blob/
591f68cb382525b72664c6fecaab87742b6cc87a /generic/tkScale.cGH-L623)), it is rounded relative to itself (i.e. rounding `0`) and therefore the assigned value for `from` is always what is given (no matter what values of `from` and `resolution`).
Automerge-Triggered-By: @pablogsal
(cherry picked from commit
aecf036738a404371303e770f4ce4fd9f7d43de7 )
Co-authored-by: E-Paine <63801254+E-Paine@users.noreply.github.com>
Miss Skeleton (bot) [Tue, 6 Oct 2020 12:38:54 +0000 (05:38 -0700)]
bpo-41944: No longer call eval() on content received via HTTP in the CJK codec tests (GH-22566) (GH-22577)
(cherry picked from commit
2ef5caa58febc8968e670e39e3d37cf8eef3cab8 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Skeleton (bot) [Tue, 6 Oct 2020 07:03:27 +0000 (00:03 -0700)]
bpo-41939: Fix test_site.test_license_exists_at_url() (GH-22559)
Call urllib.request.urlcleanup() to reset the global
urllib.request._opener.
(cherry picked from commit
1fce240d6c4b2b2cc17a86e88c65169e15b9feeb )
Co-authored-by: Victor Stinner <vstinner@python.org>
Miss Skeleton (bot) [Mon, 5 Oct 2020 16:52:02 +0000 (09:52 -0700)]
bpo-41584: clarify when the reflected method of a binary arithemtic operator is called (GH-22505)
(cherry picked from commit
d02d824e05e2cb86f4df381be18832e76e2c475f )
Co-authored-by: Brett Cannon <brett@python.org>
Miss Skeleton (bot) [Mon, 5 Oct 2020 14:42:10 +0000 (07:42 -0700)]
bpo-41774: Tweak new programming FAQ entry (GH-22562)
Remove mention of space in "remove multiple items from list".
(cherry picked from commit
060937da988347a887a5f165b023d972fcb97802 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Skeleton (bot) [Mon, 5 Oct 2020 08:27:53 +0000 (01:27 -0700)]
bpo-41557: Update macOS installer to use SQLite 3.33.0 (GH-21959)
https://sqlite.org/releaselog/3_33_0.html
(cherry picked from commit
9a7642667a71a27b38b96eb63df45f17f48b3467 )
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
Miss Skeleton (bot) [Sun, 4 Oct 2020 23:23:43 +0000 (16:23 -0700)]
bpo-41892: Clarify that an example in the ElementTree docs explicitly avoids modifying an XML tree while iterating over it. (GH-22464)
(cherry picked from commit
40db798692ca783fc2163656f196ac77e8b9e792 )
Co-authored-by: scoder <stefan_ml@behnel.de>
Serhiy Storchaka [Sun, 4 Oct 2020 22:28:00 +0000 (01:28 +0300)]
[3.8] bpo-41909: Enable previously disabled recursion checks. (GH-22536) (GH-22551)
Enable recursion checks which were disabled when get __bases__ of
non-type objects in issubclass() and isinstance() and when intern
strings. It fixes a stack overflow when getting __bases__ leads
to infinite recursion.
Originally recursion checks was disabled for PyDict_GetItem() which
silences all errors including the one raised in case of detected
recursion and can return incorrect result. But now the code uses
PyDict_GetItemWithError() and PyDict_SetDefault() instead.
(cherry picked from commit
9ece9cd65cdeb0a1f6e60475bbd0219161c348ac )
Pablo Galindo [Sun, 4 Oct 2020 17:11:31 +0000 (18:11 +0100)]
[3.8] bpo-41490: Bump vendored pip to version 20.2.3 (GH-22527). (GH-22545)
(cherry picked from commit
2cc6dc9896771ef3615abbb5ba80939a2f644a08 )
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Miss Skeleton (bot) [Sun, 4 Oct 2020 16:32:15 +0000 (09:32 -0700)]
Delete extra 'the' from `Formatter` class docstring (GH-22530) (GH-22543)
(cherry picked from commit
a619af43ccd10bab363b1e59814a2e2727422545 )
Miss Skeleton (bot) [Sun, 4 Oct 2020 13:27:14 +0000 (06:27 -0700)]
bpo-41898: add caveat on root logger seeing all messages in assertLogs doc (GH-22526) (GH-22537)
(cherry picked from commit
1ed54435268b285964141fb74d47ceaa33ea79ab )
Pablo Galindo [Sat, 3 Oct 2020 21:50:00 +0000 (22:50 +0100)]
[3.8] bpo-41840: Report module-level globals as both local and global in the symtable module (GH-22391). (GH-22529)
(cherry picked from commit
fb0a4651f1be4ad936f8277478f73f262d8eeb72 )
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Miss Skeleton (bot) [Sat, 3 Oct 2020 16:00:38 +0000 (09:00 -0700)]
[doc] Fix link to abc.collections.Iterable (GH-22520)
Missed this occurrence before, sorry. Also changed "the PEP" to "PEP".
Automerge-Triggered-By: @gvanrossum
(cherry picked from commit
3fe614893742faee3c64e6d974e11329a496424f )
Co-authored-by: Andre Delfino <adelfino@gmail.com>
Miss Skeleton (bot) [Sat, 3 Oct 2020 11:01:41 +0000 (04:01 -0700)]
bpo-41867: List options for timespec in docstrings of isoformat methods (GH-22418)
(cherry picked from commit
52301312bb9de2299b0c42468fd1936d869e651c )
Co-authored-by: Ram Rachum <ram@rachum.com>
Miss Skeleton (bot) [Sat, 3 Oct 2020 10:11:39 +0000 (03:11 -0700)]
bpo-40833: Clarify Path.rename doc-string regarding relative paths (GH-20554)
(cherry picked from commit
f97e42ef4d97dee64f45ed65170a6e77c8e46fdf )
Co-authored-by: Ram Rachum <ram@rachum.com>
Miss Skeleton (bot) [Sat, 3 Oct 2020 06:42:38 +0000 (23:42 -0700)]
bpo-41900: C14N 2.0 serialisation failed for unprefixed attributes when a default namespace was defined. (GH-22474) (GH-22508)
(cherry picked from commit
6a412c94b6b68e7e3632562dc7358a12ffd1447f )
Miss Skeleton (bot) [Fri, 2 Oct 2020 21:05:36 +0000 (14:05 -0700)]
Typo fix - "mesasge" should be "message" (GH-22498)
* Correct at 2 places in email module
(cherry picked from commit
9cd01ece78e63bf98a1d25f70d5a020adf07ca4a )
Co-authored-by: Hansraj Das <raj.das.136@gmail.com>
Miss Islington (bot) [Fri, 2 Oct 2020 16:27:38 +0000 (09:27 -0700)]
bpo-41802: Document 'PyDict_DelItem' can raise a 'KeyError' (GH-22291)
(cherry picked from commit
20ce62f00957d11f24f6449cd5c0ef5dd67174d4 )
Co-authored-by: Campbell Barton <ideasman42@gmail.com>
Miss Islington (bot) [Wed, 30 Sep 2020 22:50:07 +0000 (15:50 -0700)]
Fix grammar in secrets module documentation (GH-22467)
From `In particularly,` to `In particular,`
(cherry picked from commit
63298930fb531ba2bb4f23bc3b915dbf1e17e9e1 )
Co-authored-by: Max Smolens <msmolens@users.noreply.github.com>
Miss Islington (bot) [Tue, 29 Sep 2020 05:11:06 +0000 (22:11 -0700)]
bpo-41774: Add programming FAQ entry (GH-22402)
In the "Sequences (Tuples/Lists)" section, add
"How do you remove multiple items from a list".
(cherry picked from commit
5b0181d1f6474c2cb9b80bdaf3bc56a78bf5fbe7 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Mon, 28 Sep 2020 19:18:39 +0000 (12:18 -0700)]
bpo-40105: ZipFile truncate in append mode with shorter comment (GH-19337)
(cherry picked from commit
ff9147d93b868f0e13b9fe14e2a76c2879f6787b )
Co-authored-by: Jan Mazur <16736821+mzr@users.noreply.github.com>
Miss Islington (bot) [Sun, 27 Sep 2020 03:52:01 +0000 (20:52 -0700)]
bpo-41858: Clarify line in optparse doc (GH-22407)
The existing line is easily read as being incomplete.
(cherry picked from commit
00eb063b6600fdb4ba5cfb99da83cc1660ec69bf )
Co-authored-by: Emmanuel Arias <eamanu@yaerobi.com>
Miss Islington (bot) [Thu, 24 Sep 2020 20:08:06 +0000 (13:08 -0700)]
bpo-41775: Make 'IDLE Shell' the shell title (GH-22399)
'Python Shell' may have contributed to some beginners confusing 'IDLE' with ' Python'.
(cherry picked from commit
05cc881cbcf5d73a312568c78c7149eae3195072 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Thomas Grainger [Thu, 24 Sep 2020 16:44:14 +0000 (17:44 +0100)]
[3.8] bpo-41602: raise SIGINT exit code on KeyboardInterrupt from pymain_run_module (GH-21956) (#22398)
Closes bpo issue 41602.
(cherry picked from commit
a68a2ad19c891faa891904b3da537911cc77df21 )
Co-authored-by: Thomas Grainger <tagrain@gmail.com>
Łukasz Langa [Thu, 24 Sep 2020 10:32:56 +0000 (12:32 +0200)]
Post 3.8.6
Łukasz Langa [Thu, 24 Sep 2020 10:32:42 +0000 (12:32 +0200)]
Merge tag 'v3.8.6' into 3.8
Python 3.8.6
Miss Islington (bot) [Wed, 23 Sep 2020 15:28:08 +0000 (08:28 -0700)]
bpo-33822: Update IDLE section of What's New 3.8 (GH-22383)
(cherry picked from commit
9c4eac7f02ddcf32fc1cdaf7c08c37fe9718c1fb )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Terry Jan Reedy [Wed, 23 Sep 2020 14:34:56 +0000 (10:34 -0400)]
[3.8] bpo-41841: Prepare IDLE News for 3.8.7 (GH-22381)
Łukasz Langa [Wed, 23 Sep 2020 12:36:32 +0000 (14:36 +0200)]
Python 3.8.6
Miss Islington (bot) [Wed, 23 Sep 2020 03:57:48 +0000 (20:57 -0700)]
bpo-37062: Enum: add extended AutoNumber example (GH-22349) (GH-22369)
(cherry picked from commit
62e40d8450b9c78346ec3617de7fe3f0ad381510 )
Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
Miss Islington (bot) [Tue, 22 Sep 2020 18:36:02 +0000 (11:36 -0700)]
bpo-35764: Rewrite the IDLE Calltips doc section (GH-22363)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Tue, 22 Sep 2020 18:30:47 +0000 (11:30 -0700)]
fix `EventType` bases
`StrEnum` does not exist in 3.8, so use original `(str, enum.Enum)` bases.
Miss Islington (bot) [Tue, 22 Sep 2020 06:02:45 +0000 (23:02 -0700)]
bpo-40181: Remove '/' reminder in IDLE calltips. (GH-22350)
The marker was added to the language in 3.8 and
3.7 only gets security patches.
(cherry picked from commit
40a0625792e795cd41c4ba20475e3b770b53817a )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Mon, 21 Sep 2020 22:00:34 +0000 (15:00 -0700)]
bpo-41815: SQLite: segfault if backup called on closed database (GH-22322)
GH- [bpo-41815](): SQLite: fix segfault if backup called on closed database
Attempting to backup a closed database will trigger segfault:
```python
import sqlite3
target = sqlite3.connect(':memory:')
source = sqlite3.connect(':memory:')
source.close()
source.backup(target)
```
(cherry picked from commit
bfee9fad84531a471fd7864e88947320669f68e2 )
Co-authored-by: Peter McCormick <peter@pdmccormick.com>
Miss Islington (bot) [Sat, 19 Sep 2020 19:56:30 +0000 (12:56 -0700)]
bpo-41811: create SortKey members using first given value (GH-22316) (GH-22326)
(cherry picked from commit
ae0d2a33ec05aece939a959d36fcf1df1e210a08 )
Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
Victor Stinner [Fri, 18 Sep 2020 15:21:24 +0000 (17:21 +0200)]
bpo-35293: Travis CI uses "make venv" for the doc (GH-22307) (GH-22309) (GH-22310)
Doc/requirements.txt becomes the reference for packages and package
versions needed to build the Python documentation.
* Doc/Makefile now uses Doc/requirements.txt
* .travis.yml now uses "make env" of Doc/Makefile
* Update Sphinx to version 2.4.4
(cherry picked from commit
8394500cca56490cc347604d39ca40abcdce46c3 )
(cherry picked from commit
9e73cac173e5e9010bd18c8334fffeee1cade3a4 )
Miss Islington (bot) [Fri, 18 Sep 2020 09:31:30 +0000 (02:31 -0700)]
bpo-35293: Remove RemovedInSphinx40Warning (GH-22198)
* bpo-35293: Remove RemovedInSphinx40Warning
* Update Misc/NEWS.d/next/Documentation/2020-09-12-17-37-13.bpo-35293._cOwPD.rst
Co-authored-by: Victor Stinner <vstinner@python.org>
* bpo-35293: Apply Victor's review
Co-authored-by: Victor Stinner <vstinner@python.org>
(cherry picked from commit
6595cb0af4c51c0381c233b97884fe916a4ddd35 )
Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
Miss Islington (bot) [Fri, 18 Sep 2020 08:31:28 +0000 (01:31 -0700)]
bpo-41762: Fix usage of productionlist markup in the doc (GH-22281) (GH-22300)
Use an unique identifier for the different grammars documented using
the Sphinx productionlist markup.
productionlist markups of the same grammar, like "expressions" or
"compound statements", use the same identifier "python-grammar".
(cherry picked from commit
8af239eacfcf52e4e0e2b0223e7cea4672309483 )
Co-authored-by: Victor Stinner <vstinner@python.org>
Serhiy Storchaka [Fri, 18 Sep 2020 06:37:04 +0000 (09:37 +0300)]
[3.8] Remove duplicated words words (GH-20413). (GH-22297)
(cherry picked from commit
1c5d1d7304a119040fd3118128bdb412f0cce6a6 )
Ethan Furman [Thu, 17 Sep 2020 00:38:14 +0000 (17:38 -0700)]
[3.8] bpo-39728: Enum: fix duplicate `ValueError` (GH-22277) (GH-22283)
fix default `_missing_` to return `None` instead of raising a `ValueError`
Co-authored-by: Andrey Darascheka <andrei.daraschenka@leverx.com>.
(cherry picked from commit
c95ad7a91fbd7636f33a098d3b39964ab083bf49 )
Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
Miss Islington (bot) [Thu, 17 Sep 2020 00:28:32 +0000 (17:28 -0700)]
_auto_called cleanup (GH-22285)
(cherry picked from commit
fc23a9483ef0d7c98bea9f82392377d0b6ef7b18 )
Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
Miss Islington (bot) [Wed, 16 Sep 2020 14:30:54 +0000 (07:30 -0700)]
bpo-41517: do not allow Enums to be extended (GH-22271)
fix bug that let Enums be extended via multiple inheritance
(cherry picked from commit
3064dbf5df1021e85b507366a7ea448c8895efe7 )
Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
Miss Islington (bot) [Wed, 16 Sep 2020 00:16:36 +0000 (17:16 -0700)]
bpo-41789: honor object overrides in Enum classes (GH-22250)
EnumMeta double-checks that `__repr__`, `__str__`, `__format__`, and `__reduce_ex__` are not the same as `object`'s, and replaces them if they are -- even if that replacement was intentionally done in the Enum being constructed. This patch fixes that.
Automerge-Triggered-By: @ethanfurman
(cherry picked from commit
22415ad62555d79bd583b4a7d6a96006624a8277 )
Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
Miss Islington (bot) [Tue, 15 Sep 2020 23:23:57 +0000 (16:23 -0700)]
bpo-39587: Enum - use correct mixed-in data type (GH-22263)
(cherry picked from commit
bff01f3a3aac0c15fe8fbe8b2f561f7927d117a1 )
Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
Miss Islington (bot) [Tue, 15 Sep 2020 19:45:29 +0000 (12:45 -0700)]
Improve the description of difflib in the documentation (GH-22253) (GH-22260)
From "can produce difference information in various formats ..."
to " can produce information about file differences in various formats ..."
Automerge-Triggered-By: @Mariatta
(cherry picked from commit
5531269f698f789d1247123fd82681f7a455f66e )
Co-authored-by: Mandeep <mandeep052@gmail.com>
Miss Islington (bot) [Tue, 15 Sep 2020 13:56:43 +0000 (06:56 -0700)]
bpo-41776: Revise example of "continue" in the tutorial documentation (GH-22234) (GH-22256)
Revise example of "continue" in the tutorial documentation
(cherry picked from commit
7bcc6456ad4704da9b287c8045768fa53961adc5 )
Co-authored-by: Neeraj Samtani <neerajjsamtani@gmail.com>
Co-authored-by: Neeraj Samtani <neerajjsamtani@gmail.com>
Miss Islington (bot) [Mon, 14 Sep 2020 20:42:38 +0000 (13:42 -0700)]
bpo-40721: add note about enum member name case (GH-22231)
* UPPER_CASE preferred as enum members are constants
(cherry picked from commit
542e1df2b018ee7068dba8076f2d6e84efd6e144 )
Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
Miss Islington (bot) [Mon, 14 Sep 2020 19:47:40 +0000 (12:47 -0700)]
bpo-41744: Package python.props with correct name in NuGet package (GH-22154)
NuGet automatically includes .props file from the build directory in the
target using the package, but only if the .props file has the correct
name: it must be $(id).props
Rename python.props correspondingly in all the nuspec variants. Also
keep python.props as it were for backward compatibility.
(cherry picked from commit
7c11a9accabe3720940f334eb1226bb7bb9179c7 )
Co-authored-by: Václav Slavík <vaclav@slavik.io>
Miss Islington (bot) [Mon, 14 Sep 2020 05:38:20 +0000 (22:38 -0700)]
bpo-39883: Update macOS installer copy of LICENSE. (GH-22235)
(cherry picked from commit
7dbbea75cec27a48b68cc07c23f3f317cacf4a16 )
Co-authored-by: Ned Deily <nad@python.org>
Miss Islington (bot) [Sun, 13 Sep 2020 21:21:49 +0000 (14:21 -0700)]
bpo-41778: Change a punctuation on documentation. (GH-22229) (GH-22230)
On this paragrapah the clarification about IIS7 seems there's not
connection beacuase is in other sentence. Move the punctuation
to connect both the last sentence with the information in the
parenthesis.
I think the NEWS is not necessary here.
Automerge-Triggered-By: @ericvsmith
(cherry picked from commit
94bfdee25db31941b187591ae5ae9bf3ed431090 )
Co-authored-by: Emmanuel Arias <eamanu@yaerobi.com>
Ethan Furman [Sun, 13 Sep 2020 20:47:43 +0000 (13:47 -0700)]
[3.8] bpo-37479: Enum - use correct __format__ (GH-14545)
* bpo-37479: on Enum subclasses with mixins, __format__ uses overridden __str__.
(cherry picked from commit
2f19e82fbe98ce86bcd98a176328af2808b678e8 )
Co-authored-by: thatneat <thatneat@users.noreply.github.com>
Miss Islington (bot) [Sun, 13 Sep 2020 18:16:39 +0000 (11:16 -0700)]
bpo-33239: Fix default value of 'buffering' parameter in docs of tempfile.* functions (GH-21763) (GH-22226)
(cherry picked from commit
b48389d95093c3f912549add8da339edc164bf0d )
Miss Islington (bot) [Sat, 12 Sep 2020 11:04:50 +0000 (04:04 -0700)]
bpo-41672: Fix type mismatches in imaplib docs (GH-22207) (#22218)
(cherry picked from commit
c75330605d4795850ec74fdc4d69aa5d92f76c00 )
Co-authored-by: Norbert Cyran <cyran.norbert97@gmail.com>
Co-authored-by: Norbert Cyran <cyran.norbert97@gmail.com>
Miss Islington (bot) [Sat, 12 Sep 2020 07:09:54 +0000 (00:09 -0700)]
bpo-39651: Fix asyncio proactor _write_to_self() (GH-22197)
Fix a race condition in the call_soon_threadsafe() method of
asyncio.ProactorEventLoop: do nothing if the self-pipe socket has
been closed.
(cherry picked from commit
1b0f0e3d7d03155da1cf9769a847874d559e57e3 )
Co-authored-by: Victor Stinner <vstinner@python.org>
Miss Islington (bot) [Sat, 12 Sep 2020 06:43:27 +0000 (23:43 -0700)]
bpo-41731: Make test_cmd_line_script pass with -vv (GH-22206)
Argument script_exec_args is usually an absolute file name,
but twice has form ['-m', 'module_name'].
(cherry picked from commit
7e711ead26fea6465e0ef2e3b8880b57ba8fc129 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Sat, 12 Sep 2020 06:09:08 +0000 (23:09 -0700)]
bpo-41729: Fix test_winconsole failures (3) and hang (GH-22146)
The problems occured with a repository build on machine
with freshly updated Windows 10 Pro.
(cherry picked from commit
31c9828ec026e5d9b9122d55bf0aa7cb45bfecc5 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Fri, 11 Sep 2020 15:29:04 +0000 (08:29 -0700)]
[doc] struct: update note about network byte order form to be more helpful (GH-22201)
Update the sentence to provide some context on why network byte order is defined as big endian.
(cherry picked from commit
fb2718720346c8c7a0ad2d7477f20e9a5524ea0c )
Co-authored-by: Stargirl Flowers <theaflowers@google.com>
Miss Islington (bot) [Thu, 10 Sep 2020 20:21:35 +0000 (13:21 -0700)]
bpo-37149: Change Shipman tkinter link from archive.org to TkDocs (GH-22188) (#22193)
The new link responds much faster and begins with a short explanation of the status of the doc.
(cherry picked from commit
06d0b8b67e8aebd8fe4c34e97d6915c11f4afa30 )
Co-authored-by: Mark Roseman <mark@markroseman.com>
Miss Islington (bot) [Thu, 10 Sep 2020 06:41:13 +0000 (23:41 -0700)]
[doc] Remove superfluous comment about equal in f-strings (GH-22006)
Automerge-Triggered-By: @kushaldas
(cherry picked from commit
788b79fa7b6184221e68d4f1a3fbe0b3270693f6 )
Co-authored-by: Andre Delfino <adelfino@gmail.com>
Miss Islington (bot) [Wed, 9 Sep 2020 23:10:09 +0000 (16:10 -0700)]
Update idlelib/help.html to current IDLE doc (GH-22181)
(cherry picked from commit
471247150e9707e583297ac6b4edff978efd8941 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Wed, 9 Sep 2020 22:34:20 +0000 (15:34 -0700)]
Add missing colon to IDLE doc markup (GH-22007)
(cherry picked from commit
7a797a3967fdfedbaf49fd1f140ee670d7db40ad )
Co-authored-by: Andre Delfino <adelfino@gmail.com>
Co-authored-by: Andre Delfino <adelfino@gmail.com>
Miss Islington (bot) [Wed, 9 Sep 2020 18:15:49 +0000 (11:15 -0700)]
[3.8] [3.9] bpo-41688: Document bug in **= dispatching in the language data… (GH-22172) (GH-22175)
(cherry picked from commit
46bc21e1780016aaacd34e472f838dc792fb674c )
Co-authored-by: Ammar Askar <ammar@ammaraskar.com>
Automerge-Triggered-By: @brettcannon
Miss Islington (bot) [Wed, 9 Sep 2020 13:40:41 +0000 (06:40 -0700)]
Fixes dead links to Django's logging config docs (GH-20823) (GH-22171)
(cherry picked from commit
714217f9561507bbc7218a02089d0e1da0239372 )
Miss Islington (bot) [Wed, 9 Sep 2020 10:26:32 +0000 (03:26 -0700)]
Fix compiler warnings in init_dump_ascii_wstr() (GH-22150)
Fix GCC 9.3 (using -O3) warnings on x86:
initconfig.c: In function ‘init_dump_ascii_wstr’:
initconfig.c:2679:34: warning: format ‘%lc’ expects argument of type
‘wint_t’, but argument 2 has type ‘wchar_t’ {aka ‘long int’}
2679 | PySys_WriteStderr("%lc", ch);
initconfig.c:2682:38: warning: format ‘%x’ expects argument of type
‘unsigned int’, but argument 2 has type ‘wchar_t’ {aka ‘long int’}
2682 | PySys_WriteStderr("\\x%02x", ch);
initconfig.c:2686:38: warning: format ‘%x’ expects argument of type
‘unsigned int’, but argument 2 has type ‘wchar_t’ {aka ‘long int’}
2686 | PySys_WriteStderr("\\U%08x", ch);
initconfig.c:2690:38: warning: format ‘%x’ expects argument of type
‘unsigned int’, but argument 2 has type ‘wchar_t’ {aka ‘long int’}
2690 | PySys_WriteStderr("\\u%04x", ch);
(cherry picked from commit
640e8e1d5f61d5868453d992da04bf4741327748 )
Co-authored-by: Victor Stinner <vstinner@python.org>
Miss Islington (bot) [Wed, 9 Sep 2020 00:46:41 +0000 (17:46 -0700)]
bpo-41525: Make the Python program help ASCII-only (GH-21836)
(cherry picked from commit
58de1dd6a8677bd213802c19204b827cb7134695 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Tue, 8 Sep 2020 23:57:11 +0000 (16:57 -0700)]
[3.8] [doc] Fix padding in timeit (GH-22152) (GH-22159)
Compare -p and -u options help in rendered output to see the difference.
(cherry picked from commit
594f0ce73be807c0fecf958dc0644fa37983f5fe )
Co-authored-by: Andre Delfino <adelfino@gmail.com>
Mariatta [Tue, 8 Sep 2020 23:28:02 +0000 (16:28 -0700)]
[3.8] Fix typo in typing.py (GH-22121) (GH-22158)
This is a trivial PR to fix a typo in a docstring in typing.py. From reverences -> references.
(cherry picked from commit
84ef33c5117acd9867781135a9aeb62052432e8a )
Co-authored-by: Graham Bleaney <gbleaney@gmail.com>
Automerge-Triggered-By: @Mariatta
Łukasz Langa [Tue, 8 Sep 2020 09:39:14 +0000 (11:39 +0200)]
Post 3.8.6rc1
Łukasz Langa [Tue, 8 Sep 2020 09:38:51 +0000 (11:38 +0200)]
Merge tag 'v3.8.6rc1' into 3.8
Python 3.8.6rc1
Miss Islington (bot) [Mon, 7 Sep 2020 16:28:04 +0000 (09:28 -0700)]
bpo-41720: Add "return NotImplemented" in turtle.Vec2D.__rmul__(). (GH-22092)
(cherry picked from commit
fd4cafd4700dc03cb05fc2e5263c2666d785d6e3 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Łukasz Langa [Mon, 7 Sep 2020 15:52:19 +0000 (17:52 +0200)]
Python 3.8.6rc1
Victor Stinner [Mon, 7 Sep 2020 15:27:03 +0000 (17:27 +0200)]
bpo-41401: Fix test_fspath_support in test_io. (GH-21640) (GH-22133) (GH-22135)
The error is exposed on non-UTF-8 locales.
(cherry picked from commit
67987acd5dc9776f55f4e139e2b3d9e7a6434d9f )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
(cherry picked from commit
c73ee5acc96b4bbd6885156883b224b8cc3e470c )
Miss Islington (bot) [Sun, 6 Sep 2020 03:47:17 +0000 (20:47 -0700)]
closes bpo-41723: Fix an error in the py_compile documentation. (GH-22110)
(cherry picked from commit
5371a464ce88ffc88f3bb95cfd86f355b7d02953 )
Co-authored-by: Zackery Spytz <zspytz@gmail.com>