]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
Pablo Galindo Salgado [Fri, 30 Jul 2021 14:51:13 +0000 (15:51 +0100)]
[3.9] Fail the CI if an optional module fails to compile (GH-27466). (GH-27482)
(cherry picked from commit
7cad0bee80a536c7e47f54cf43174175834f30a0 )
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Łukasz Langa [Fri, 30 Jul 2021 14:34:04 +0000 (16:34 +0200)]
[3.9] Update URLs in comments and metadata to use HTTPS (GH-27458) (GH-27480)
(cherry picked from commit
be42c06bb01206209430f3ac08b72643dc7cad1c )
Co-authored-by: Noah Kantrowitz <noah@coderanger.net>
Miss Islington (bot) [Fri, 30 Jul 2021 12:07:30 +0000 (05:07 -0700)]
Add missing gdbm dependencies to the UNIX CI (GH-27467) (GH-27468)
(cherry picked from commit
851cca8c22795a2f143ad5ebc10adab3c7784ad0 )
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Erlend Egeberg Aasland [Thu, 29 Jul 2021 21:12:55 +0000 (23:12 +0200)]
[3.9] bpo-31746: Prevent segfaults when sqlite3.Connection is uninitialised (GH-27431) (GH-27465)
(cherry picked from commit
7e311e496b0e26b3d3c62fe9b0ed2a4677c37ee9 )
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
Miss Islington (bot) [Thu, 29 Jul 2021 17:41:51 +0000 (10:41 -0700)]
Fix typo in ast.rst (GH-27449) (GH-27455)
Co-authored-by: HaeckelK <haeckelk.github@gmail.com>
(cherry picked from commit
6b61d74a3bab43a44fa47b1facd1bec3d74e12b1 )
Miss Islington (bot) [Thu, 29 Jul 2021 17:28:22 +0000 (10:28 -0700)]
To fix the random failed test cases of test___xxsubinterpreters in multiprocess. (GH-27240) (GH-27453)
(cherry picked from commit
9101b39e67c2437e88c0ad6b57aafd48ab08d431 )
Co-authored-by: Hai Shi <shihai1992@gmail.com>
Miss Islington (bot) [Thu, 29 Jul 2021 17:23:17 +0000 (10:23 -0700)]
bpo-44765: [doc] fix typo (GH-27430) (GH-27451)
(cherry picked from commit
ccefa8a905c797e4a60078d5e1de846f929c6928 )
Co-authored-by: Pavel <69010336+pavel-lexyr@users.noreply.github.com>
Miss Islington (bot) [Thu, 29 Jul 2021 15:46:07 +0000 (08:46 -0700)]
bpo-44752: refactor part of rlcompleter.Completer.attr_matches (GH-27433) (GH-27446)
(cherry picked from commit
6741794dd420c6b9775a188690dbf265037cd69f )
Co-authored-by: Jack DeVries <58614260+jdevries3133@users.noreply.github.com>
Miss Islington (bot) [Thu, 29 Jul 2021 13:53:39 +0000 (06:53 -0700)]
bpo-44752: Make rlcompleter not call `@property` methods (GH-27401) (#27445)
* rlcompleter was calling these methods to identify whether to add
parenthesis to the completion, based on if the attribute is callable.
* for property objects, completion with parenthesis are never desirable.
* property methods with print statements behaved very strangely, which
was especially unfriendly to language newcomers. <tab> could suddenly
produce output unexpectedly.
(cherry picked from commit
50de8f74f8e92b20e76438c22b6a8f91afd6df75 )
Co-authored-by: Jack DeVries <58614260+jdevries3133@users.noreply.github.com>
Miss Islington (bot) [Thu, 29 Jul 2021 12:05:43 +0000 (05:05 -0700)]
bpo-44707: Fix an undefined behavior of the null pointer arithmetic (GH-27292) (GH-27443)
(cherry picked from commit
e5c8ddb1714fb51ab1defa24352c98e0f01205dc )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Thu, 29 Jul 2021 09:33:16 +0000 (02:33 -0700)]
bpo-43565: Document PyUnicode_KIND's return type as an unsigned int (GH-25724) (GH-27440)
(cherry picked from commit
47fd4726a2ce8599cc397ddeae40f70eb471e868 )
Co-authored-by: Ammar Askar <ammar@ammaraskar.com>
Jason R. Coombs [Wed, 28 Jul 2021 22:48:52 +0000 (18:48 -0400)]
[3.9] bpo-44461: Check early that a pdb target is valid for execution. (GH-27227) (GH-27400)
* [3.9] bpo-44461: Check early that a pdb target is valid for execution. (GH-27227)
* bpo-44461: Fix bug with pdb's handling of import error due to a package which does not have a __main__ module
* 📜🤖 Added by blurb_it.
* remove "else"
Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
* If running as a module, first check that it can run as a module. Alternate fix for bpo-44461.
Co-authored-by: Irit Katriel
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>.
(cherry picked from commit
ee03bad25e83b00ba5fc2a0265b48c6286e6b3f7 )
Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
* Ensure os_helper is imported.
* Actually, os_helper doesn't exist yet. Just reference rmtree from support.
Miss Islington (bot) [Wed, 28 Jul 2021 21:52:11 +0000 (14:52 -0700)]
bpo-40263: Fixes an off-by-one error in _winapi_WaitForMultipleObjects_impl (GH-19501)
(cherry picked from commit
92b5dc780db968f6277f42cb06926dddb7475dc6 )
Co-authored-by: Ray Donnelly <mingw.android@gmail.com>
Dennis Sweeney [Wed, 28 Jul 2021 19:12:17 +0000 (15:12 -0400)]
[doc] Remove reference to obsolute opcode (GH-27402)
Miss Islington (bot) [Wed, 28 Jul 2021 17:31:19 +0000 (10:31 -0700)]
bpo-44763: [doc] remove repetitive sentence from textwrap.wrap (GH-27423) (GH-27427)
(cherry picked from commit
cb1d76f10ab33dddd0dbd64e6506bf7c065d499b )
Co-authored-by: Jack DeVries <58614260+jdevries3133@users.noreply.github.com>
Miss Islington (bot) [Wed, 28 Jul 2021 17:29:47 +0000 (10:29 -0700)]
bpo-44544: [doc] list all textwrap func kwargs (GH-26999) (GH-27425)
(cherry picked from commit
c1e39d6b1167376fdaf3f288ba9a689e61c7fdd1 )
Co-authored-by: Jack DeVries <58614260+jdevries3133@users.noreply.github.com>
Miss Islington (bot) [Wed, 28 Jul 2021 15:15:51 +0000 (08:15 -0700)]
bpo-27827: identify a greater range of reserved filename on Windows. (GH-26698) (#27422)
`pathlib.PureWindowsPath.is_reserved()` now identifies as reserved
filenames with trailing spaces or colons.
Co-authored-by: Barney Gale <barney.gale@foundry.com>
Co-authored-by: Eryk Sun <eryksun@gmail.com>
(cherry picked from commit
56c1f6d7edad454f382d3ecb8cdcff24ac898a50 )
Miss Islington (bot) [Wed, 28 Jul 2021 14:54:40 +0000 (07:54 -0700)]
Add missing end of sentence in docs (GH-27280) (GH-27420)
(cherry picked from commit
531e2fbc52ce07a9cf37e0db05a5337e404dfccd )
Co-authored-by: Adrian Garcia Badaracco <1755071+adriangb@users.noreply.github.com>
Miss Islington (bot) [Wed, 28 Jul 2021 14:33:38 +0000 (07:33 -0700)]
Fix typo in sqlite3.rst (GH-27415) (GH-27418)
preceeding -> preceding
(cherry picked from commit
fbe87023bf33e941373a5fca023652a825db7baf )
Co-authored-by: Ikko Ashimine <eltociear@gmail.com>
Miss Islington (bot) [Wed, 28 Jul 2021 13:57:03 +0000 (06:57 -0700)]
Spell out 's.pop() or s.pop(i)' (GH-27398) (GH-27413)
(cherry picked from commit
2ff5bb4908975976031ba738866de619cafadc4d )
Co-authored-by: Dennis Sweeney <36520290+sweeneyde@users.noreply.github.com>
Miss Islington (bot) [Wed, 28 Jul 2021 13:40:18 +0000 (06:40 -0700)]
bpo-44756: in ./Doc, `make build` depends on `make html` (GH-27403) (GH-27411)
- venv rule is now conditional, and only does anything if $VENVDIR does not exist
- add rule "clean-venv"
(cherry picked from commit
d22c876d5ac5fa464337d2e82654b8d87a83cb1b )
Co-authored-by: Jack DeVries <58614260+jdevries3133@users.noreply.github.com>
Miss Islington (bot) [Wed, 28 Jul 2021 13:33:03 +0000 (06:33 -0700)]
bpo-44657: Fix instancemethod_call to use PyInstanceMethod_GET_FUNCTION (GH-27202)
(cherry picked from commit
ddf8ae31a0f371eff2db14c7f7a45976b86d56ea )
Co-authored-by: Dong-hee Na <donghee.na@python.org>
Inada Naoki [Wed, 28 Jul 2021 13:27:49 +0000 (22:27 +0900)]
[3.9] bpo-42853: Fix http.client fails to download >2GiB data over TLS (GH-27405)
Revert "bpo-36050: optimize HTTPResponse.read() (GH-12698)"
This reverts commit
d6bf6f2d0c83f0c64ce86e7b9340278627798090 .
Miss Islington (bot) [Tue, 27 Jul 2021 03:32:45 +0000 (20:32 -0700)]
Add windows build.bat counterpart for 'make regen-all' in error message (GH-26770)
(cherry picked from commit
d61b69f02d441ae517109a4428f2a18416c9ff0f )
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Miss Islington (bot) [Mon, 26 Jul 2021 20:22:58 +0000 (13:22 -0700)]
docs: replace "Mac OS X" -> "macOS" (GH-27364) (GH-27375)
"Mac OS X" has been rebranded as macOS
https://www.apple.com/macos
(cherry picked from commit
5fdd2a14ce3f81a7db47bb79421c426dec4b25bd )
Co-authored-by: partev <petrosyan@gmail.com>
Miss Islington (bot) [Mon, 26 Jul 2021 19:35:46 +0000 (12:35 -0700)]
The current documentation says it returns None if the name is not found, but (GH-26785) (GH-27372)
the implementation uses [] and will raise KeyError instead.
Noticed by @srittau in python/typeshed@5659.
(cherry picked from commit
f22737abfa07605f4ed1a99cfa97a26520b6c5c2 )
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Miss Islington (bot) [Mon, 26 Jul 2021 19:32:49 +0000 (12:32 -0700)]
bpo-43443: Clarify difference between shelve objects and dicts (GH-27004) (GH-27370)
(cherry picked from commit
c97c2a050cf753003012ae3f08e035326b8f6167 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Mon, 26 Jul 2021 19:30:11 +0000 (12:30 -0700)]
bpo-44698: Fix undefined behaviour in complex exponentiation. (GH-27278) (GH-27367)
(cherry picked from commit
1d582bbc969e05896addf97844ddf17ce9830e5e )
Co-authored-by: T. Wouters <thomas@python.org>
Miss Islington (bot) [Mon, 26 Jul 2021 15:56:13 +0000 (08:56 -0700)]
bpo-44734: Fix precision in turtle tests (GH-27343) (GH-27362)
(cherry picked from commit
3f135c073a53793ec68902f6b513934ddff47235 )
Co-authored-by: Logan Jones <loganasherjones@gmail.com>
Miss Islington (bot) [Mon, 26 Jul 2021 01:40:36 +0000 (18:40 -0700)]
bpo-44693: Update __future__ entry in Doc/glossary.rst (GH-27349) (GH-27358)
Replace sentence with confusing "pseudo-module" with two sentences
separating future statements and the __future__ module.
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
(cherry picked from commit
0363a4014d90df17a29042de008ef0b659f92505 )
Co-authored-by: Steven Hsu <hsuhaochun@gmail.com>
Co-authored-by: Steven Hsu <hsuhaochun@gmail.com>
Miss Islington (bot) [Sun, 25 Jul 2021 19:32:15 +0000 (12:32 -0700)]
[3.9] bpo-44399: Update logging cookbook to document patterns to be avoided. (GH-27348) (GH-27350)
(cherry picked from commit
9751f85914e0ef3324671a91da34a635d48b17fb )
Miss Islington (bot) [Sun, 25 Jul 2021 19:30:11 +0000 (12:30 -0700)]
[3.9] bpo-43184: Add information about added attribute and method. (GH-27347) (GH-27353)
(cherry picked from commit
50b72768ffe6413424dc4eba916dd1ff89a2fe7b )
Miss Islington (bot) [Sat, 24 Jul 2021 10:30:25 +0000 (03:30 -0700)]
bpo-44713: [doc fix]: typo in subprocess.rst (GH-27297) (#27327)
This fixes a small typo. The code fragment should not be quoted. Thank you
@merwok for the feedback.
(cherry picked from commit
7d25254cf0763b62f4c4a3019e56385cab597b9f )
Co-authored-by: Jack DeVries <58614260+jdevries3133@users.noreply.github.com>
Miss Islington (bot) [Sat, 24 Jul 2021 09:45:40 +0000 (02:45 -0700)]
bpo-44720: Don't crash when calling weakref.proxy(not_an_iterator).__next__ (GH-27316) (#27325)
(cherry picked from commit
5370f0a82aaa4ba617070d5c71d2b18236096ac0 )
Co-authored-by: Dennis Sweeney <36520290+sweeneyde@users.noreply.github.com>
Miss Islington (bot) [Fri, 23 Jul 2021 13:27:17 +0000 (06:27 -0700)]
bpo-29298: Fix crash with required subparsers without dest (GH-3680) (GH-27304)
(cherry picked from commit
17575f73ce2cb9f3a4eb4cc416c690f9a4e7205c )
Co-authored-by: Anthony Sottile <asottile@umich.edu>
Łukasz Langa [Thu, 22 Jul 2021 21:17:13 +0000 (23:17 +0200)]
[3.9] bpo-44708: Only re-run test methods that match names of previously failing test methods (GH-27287) (GH-27293)
* Move to a static argparse.Namespace subclass
* Roughly annotate runtest.py
* Refactor libregrtest to use lossless test result objects
* Only re-run test methods that match names of previously failing test methods
* Adopt tests to cover test method name matching
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>.
(cherry picked from commit
f1afef5e0d93d66fbf3c9aaeab8b3b8da9617583 )
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Miss Islington (bot) [Thu, 22 Jul 2021 18:25:31 +0000 (11:25 -0700)]
bpo-14879: [doc] clarify how to check for errors from subprocess.Popen(..., shell=True) (GH-26755) (GH-27289)
(cherry picked from commit
50ffbe3dafcae7826d114df61d56c7ac45a6358c )
Co-authored-by: Jack DeVries <58614260+jdevries3133@users.noreply.github.com>
Miss Islington (bot) [Thu, 22 Jul 2021 08:38:40 +0000 (01:38 -0700)]
Fix typo in collections.rst (GH-27270) (#27284)
Miss Islington (bot) [Thu, 22 Jul 2021 00:23:38 +0000 (17:23 -0700)]
bpo-44704: Make Set._hash consistent with frozenset.__hash__ (GH-27281) (GH-27283)
Miss Islington (bot) [Wed, 21 Jul 2021 09:04:42 +0000 (02:04 -0700)]
bpo-30511: Add note on thread safety to shutil.make_archive() (GH-26933) (GH-27275)
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit
64f54b7ccd49764b0304e076bfd79b5482988f53 )
Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
Łukasz Langa [Tue, 20 Jul 2021 19:12:58 +0000 (21:12 +0200)]
[3.9] bpo-44566: resolve differences between asynccontextmanager and contextmanager (GH-27024). (#27269)
(cherry picked from commit
7f1c330da31c54e028dceaf3610877914c2a4497 )
Co-authored-by: Thomas Grainger <tagrain@gmail.com>
Miss Islington (bot) [Tue, 20 Jul 2021 18:44:58 +0000 (11:44 -0700)]
[3.9] bpo-43219: skip Solaris in the test as well (GH-27257) (GH-27267)
(cherry picked from commit
6564656495d456a1bcc1aaa06abfc696209f37b2 )
Co-authored-by: Jakub Kulík <Kulikjak@gmail.com>
Automerge-Triggered-By: GH:gpshead
Miss Islington (bot) [Tue, 20 Jul 2021 17:34:49 +0000 (10:34 -0700)]
[3.9] Update macOS build-installer script comments for 3.10 and remove unused pre-10.5 vestiges. (GH-27253) (GH-27264)
(cherry picked from commit
42205ee512159de62c01e202ff799d78fac9ac26 )
Co-authored-by: Ned Deily <nad@python.org>
Automerge-Triggered-By: GH:ned-deily
Mark Shannon [Tue, 20 Jul 2021 10:09:56 +0000 (11:09 +0100)]
Set line number of END_ASYNC_FOR so that it doesn't show in traces. (GH-27255)
Miss Islington (bot) [Mon, 19 Jul 2021 17:28:56 +0000 (10:28 -0700)]
bpo-27513: email.utils.getaddresses() now handles Header objects (GH-13797) (#27245)
getaddresses() should be able to handle a Header object if passed
one.
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit
89f4c34797de2f0e5045da2b97c1c8cbbb42fbb2 )
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Miss Islington (bot) [Mon, 19 Jul 2021 00:39:03 +0000 (17:39 -0700)]
[3.9] bpo-44561: Update hyperlinks in Doc/distributing/index.rst (GH-27032) (GH-27233)
* Update hyperlinks in Doc/distributing/index.rst
Update three expired hyperlinks.
Closes [bpo-44561]().
(cherry picked from commit
b494685b2548489efcc66993cc6c13b027ce3b26 )
Co-authored-by: Steven Hsu <hsuhaochun@gmail.com>
Automerge-Triggered-By: GH:ncoghlan
Pablo Galindo Salgado [Sun, 18 Jul 2021 15:53:14 +0000 (16:53 +0100)]
Correct the order of check-abidump (GH-27230)
The check was backwards so we were not correctly detecting removals.
Miss Islington (bot) [Sun, 18 Jul 2021 02:53:00 +0000 (19:53 -0700)]
[3.9] bpo-43958: Document importlib.metadata.PackagePath.locate method (GH-25669) (GH-27221)
(cherry picked from commit
b38b2fa0218911ccc20d576ff504f39c9c9d47ec )
Co-authored-by: Paul Moore <p.f.moore@gmail.com>
Automerge-Triggered-By: GH:jaraco
Miss Islington (bot) [Sat, 17 Jul 2021 09:46:11 +0000 (02:46 -0700)]
Replace @ilevkivskyi with @Fidget-Spinner as typing code owner (GH-27210) (#27213)
(cherry picked from commit
311ee83adb40a9b549af8e0b546a787e8eb01f5d )
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Ken Jin [Sat, 17 Jul 2021 09:36:38 +0000 (17:36 +0800)]
[3.9] bpo-41249: Fix postponed annotations for TypedDict (GH-27017) (GH-27205)
This fixes TypedDict to work with get_type_hints and postponed evaluation of annotations across modules.
This is done by adding the module name to ForwardRef at the time the object is created and using that to resolve the globals during the evaluation.
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Co-authored-by: Germán Méndez Bravo <german.mb@gmail.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Miss Islington (bot) [Sat, 17 Jul 2021 08:36:31 +0000 (01:36 -0700)]
bpo-40897:Give priority to using the current class constructor in `inspect.signature` (GH-27177) (GH-27209)
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit
6aab5f9bf303a8e4cd8377fabcdcb499e0541f9a )
Co-authored-by: Weipeng Hong <hongweichen8888@sina.com>
Łukasz Langa [Sat, 17 Jul 2021 08:04:01 +0000 (10:04 +0200)]
bpo-40897: Partially backport GH-22583's refactor of inspect.py to allow bugfix backports (#27193)
Miss Islington (bot) [Thu, 15 Jul 2021 23:36:51 +0000 (16:36 -0700)]
bpo-44184: Fix subtype_dealloc() for freed type (GH-26274)
Fix a crash at Python exit when a deallocator function removes the
last strong reference to a heap type.
Don't read type memory after calling basedealloc() since
basedealloc() can deallocate the type and free its memory.
_PyMem_IsPtrFreed() argument is now constant.
(cherry picked from commit
615069eb08494d089bf24e43547fbc482ed699b8 )
Co-authored-by: Victor Stinner <vstinner@python.org>
Miss Islington (bot) [Thu, 15 Jul 2021 23:35:25 +0000 (16:35 -0700)]
bpo-44184: Apply GH-26274 to the non-GC-type branch of subtype_dealloc (GH-27165) (GH-27175)
The non-GC-type branch of subtype_dealloc is using the type of an object after freeing in the same unsafe way as GH-26274 fixes. (I believe the old news entry covers this change well enough.)
https://bugs.python.org/issue44184
(cherry picked from commit
074e7659f208051b6b973f7fdb654dd22b93aaa2 )
Co-authored-by: T. Wouters <thomas@python.org>
Miss Islington (bot) [Thu, 15 Jul 2021 20:09:55 +0000 (13:09 -0700)]
bpo-44647: Fix test_httpservers failing on Unicode characters in os.environ on Windows (GH-27161) (#27170)
GH-23638 introduced a new test for Accept: headers in CGI HTTP servers. This test serializes all of os.environ on the server side. For non-UTF8 locales this can fail for some Unicode characters found in environment variables. This change fixes the HTTP_ACCEPT test.
(cherry picked from commit
82b218f36ce6ef910bda5af227a9fd5be613c94f )
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Miss Islington (bot) [Wed, 14 Jul 2021 22:49:33 +0000 (15:49 -0700)]
bpo-44639: fix typo in sqlite.rst (transation => transaction) (GH-27145) (GH-27149)
To my understanding, this is supposed to say "transaction".
See the relevant source:
https://github.com/python/cpython/blob/
a158b20019b50e3ece6e4743ec4e6ae8d818b690 /Modules/_sqlite/connection.cGH-L1434-L1467
(cherry picked from commit
1ca27f264730abaaa48b3c5e7c6eafb45017b824 )
Co-authored-by: Jack DeVries <58614260+jdevries3133@users.noreply.github.com>
Co-authored-by: Jack DeVries <58614260+jdevries3133@users.noreply.github.com>
Miss Islington (bot) [Wed, 14 Jul 2021 16:17:18 +0000 (09:17 -0700)]
bpo-44572: On Windows, disconnect STDIN in platform._syscmd_ver() to prevent erroneous STDIN consumption (GH-27092)
(cherry picked from commit
0ee0a740e12ec8568aafa033aa6bb08b265afe26 )
Co-authored-by: Konstantin-Glukhov <glukhov.k@gmail.com>
Miss Islington (bot) [Wed, 14 Jul 2021 05:44:08 +0000 (22:44 -0700)]
bpo-44608: Fix memory leak in _tkinter._flatten() (GH-27107)
if it is called with a sequence or set, but not list or tuple.
(cherry picked from commit
f572cbf1faab33d9afbbe3e95738ed6fbe6e48e6 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Tue, 13 Jul 2021 23:20:28 +0000 (16:20 -0700)]
bpo-44630: Fix assertion errors in csv module (GH-27127)
Fix incorrect handling of exceptions when interpreting dialect objects in
the csv module. Not clearing exceptions between calls to
PyObject_GetAttrString() causes assertion failures in pydebug mode (or with
assertions enabled).
Add a minimal test that would've caught this (passing None as dialect, or
any object that isn't a csv.Dialect subclass, which the csv module allows
and caters to, even though it is not documented.) In pydebug mode, the test
triggers the assertion failure in the old code.
Contributed-By: T. Wouters [Google]
(cherry picked from commit
0093876328afa330224c9d887c18dee0b3117852 )
Co-authored-by: T. Wouters <thomas@python.org>
Miss Islington (bot) [Tue, 13 Jul 2021 14:41:31 +0000 (07:41 -0700)]
bpo-43126: Expand docs on io.IOBase.readlines() method (GH-27061) (#27114)
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit
3b5b99da4b256a31933112f4a2385386149c19e1 )
Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
Miss Islington (bot) [Tue, 13 Jul 2021 14:33:50 +0000 (07:33 -0700)]
bpo-44514: Add doctest testcleanup for configparser and bz2 (GH-26909) (#27111)
Add testcleanup section to configparser and bz2 documentation which
removes temporary files created in the filesystem when 'make doctest'
is run.
(cherry picked from commit
48a5aa7f128caf5a46e4326c1fd285cd5fc8e59d )
Co-authored-by: Kevin Follstad <kfollstad@gmail.com>
Miss Islington (bot) [Mon, 12 Jul 2021 16:23:25 +0000 (09:23 -0700)]
bpo-42194: Add "New in version: 3.9" to argparse.BooleanOptionalAction (GH-23026) (#27098)
(cherry picked from commit
da2e673c53974641a0e13941950e7976bbda64d5 )
Co-authored-by: David Sanders <shang.xiao.sanders@gmail.com>
Vladimir Feinberg [Mon, 12 Jul 2021 15:58:47 +0000 (08:58 -0700)]
[3.9] bpo-43048: RecursionError traceback RecursionError bugfix for cpy3.9 (GH-24460) (#24460)
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Miss Islington (bot) [Mon, 12 Jul 2021 15:22:33 +0000 (08:22 -0700)]
bpo-26329: update os.path.normpath documentation (GH-20138) (#27095)
(cherry picked from commit
66c5853406bbcccecf35372795078c0641a5f385 )
Co-authored-by: Furkan Onder <furkanonder@protonmail.com>
Christian Heimes [Mon, 12 Jul 2021 15:12:38 +0000 (17:12 +0200)]
[3.9] bpo-38820: Test with OpenSSL 3.0.0-alpha16 (GH-25942) (#25944)
Also use new make target to install FIPS provider..
(cherry picked from commit
e8525567dd325527e00b3c4ce7c4ce31ff3f1a8c )
Co-authored-by: Christian Heimes <christian@python.org>
Miss Islington (bot) [Mon, 12 Jul 2021 15:11:59 +0000 (08:11 -0700)]
bpo-43207: InspectLoader.is_package is not an abstract method (GH-24517) (#26322)
Making the description of `InspectLoader.is_package` aligned with the current implementation.
Automerge-Triggered-By: GH:jaraco
(cherry picked from commit
8b9310d90281d4bd3643f4e0767b2d0390f0cb05 )
Co-authored-by: Junnosuke Kuroda <Isa-rentacs@users.noreply.github.com>
Miss Islington (bot) [Mon, 12 Jul 2021 15:11:33 +0000 (08:11 -0700)]
bpo-43298: Improved error message when building without the Windows SDK installed (GH-26800) (#26803)
(cherry picked from commit
80190b3e533097b55077becddc75423318ab2371 )
Co-authored-by: Steve Dower <steve.dower@python.org>
Miss Islington (bot) [Mon, 12 Jul 2021 15:11:10 +0000 (08:11 -0700)]
bpo-44472: Fix ltrace functionality when exceptions are raised (GH-26822) (#26831)
(cherry picked from commit
06cda808f149fae9b4c688f752b6eccd0d455ba4 )
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Miss Islington (bot) [Sat, 10 Jul 2021 04:13:59 +0000 (21:13 -0700)]
[3.9] bpo-43219: shutil.copyfile, raise a less confusing exception instead of IsADirectoryError (GH-27049) (GH-27082)
Fixes the misleading IsADirectoryError to be FileNotFoundError.
(cherry picked from commit
248173cc0483a9ad9261353302f1234cf9eb2ebe )
Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
Automerge-Triggered-By: GH:gpshead
Miss Islington (bot) [Thu, 8 Jul 2021 15:21:55 +0000 (08:21 -0700)]
docs: add the word 'official' (GH-26849)
(cherry picked from commit
af4a2dcc40321de49bffec80bf6c6b5a7d43b134 )
Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
Dong-hee Na [Wed, 7 Jul 2021 14:55:22 +0000 (23:55 +0900)]
[3.9] bpo-44558: Match countOf `is`/`==` treatment to c (GH-27007). (GH-27055)
Miss Islington (bot) [Mon, 5 Jul 2021 22:34:01 +0000 (15:34 -0700)]
bpo-44563: Fix error handling in tee.fromiterable() (GH-27020) (GH-27042)
In debug build failed tee.fromiterable() corrupted the linked list of all GC objects.
(cherry picked from commit
f64de53ff01e734d48d1d42195443d7d1646f220 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Ken Jin [Mon, 5 Jul 2021 16:22:43 +0000 (00:22 +0800)]
[3.9] bpo-44562: Remove invalid PyObject_GC_Del from error path of types.GenericAlias … (GH-27016) (GH-27028)
Miss Islington (bot) [Mon, 5 Jul 2021 09:52:04 +0000 (02:52 -0700)]
bpo-44558: Make the implementation consistency of operator.indexOf (GH-27012)
(cherry picked from commit
09302405d22e86884d6058226790c0cdf5b72f14 )
Co-authored-by: Dong-hee Na <donghee.na@python.org>
Pablo Galindo [Sun, 4 Jul 2021 19:26:34 +0000 (20:26 +0100)]
Revert "bpo-44562: Remove invalid PyObject_GC_Del from error path of types.GenericAlias … (GH-27016) (GH-27018)" (GH-27022)
This reverts commit
4684a34c8d2a2ffac7b779edb4ba57f043783478 .
Miss Islington (bot) [Sun, 4 Jul 2021 17:55:43 +0000 (10:55 -0700)]
bpo-44562: Remove invalid PyObject_GC_Del from error path of types.GenericAlias … (GH-27016) (GH-27018)
(cherry picked from commit
d33943a6c368c2184e238019c63ac7a267da5594 )
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Miss Islington (bot) [Sat, 3 Jul 2021 16:05:33 +0000 (09:05 -0700)]
bpo-34266: [pdb] handle ValueError from shlex.split() (GH-26656) (GH-27005)
(cherry picked from commit
d968a638fcbf9030c999cfacd4c9bf0656e779c4 )
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Miss Islington (bot) [Fri, 2 Jul 2021 17:38:04 +0000 (10:38 -0700)]
bpo-30256: [doc] Fix formatting error in news (GH-26994) (GH-26996)
(cherry picked from commit
2560c612c89ea2534b90a266aabf76dc74d93a12 )
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Miss Islington (bot) [Fri, 2 Jul 2021 04:35:31 +0000 (21:35 -0700)]
bpo-30256: Add manager_owned keyword arg to AutoProxy (GH-16341) (GH-26989)
Co-authored-by: Jordan Speicher <jordan@jspeicher.com>
(cherry picked from commit
85b920498b42c69185540ecc2f5c4907fd38d877 )
Co-authored-by: finefoot <33361833+finefoot@users.noreply.github.com>
Miss Islington (bot) [Wed, 30 Jun 2021 19:31:04 +0000 (12:31 -0700)]
bpo-44535: Enable building with Visual Studio 2022 on Windows (GH-26962)
(cherry picked from commit
d3a95c1b6eacbbbd92c294744e7ed41932f3f63e )
Co-authored-by: Steve Dower <steve.dower@python.org>
Steve Dower [Wed, 30 Jun 2021 17:52:39 +0000 (18:52 +0100)]
bpo-41180: Replace marshal code.__new__ audit event with marshal.load[s] and marshal.dumps (GH-26971)
Miss Islington (bot) [Tue, 29 Jun 2021 23:19:32 +0000 (16:19 -0700)]
bpo-44523: Remove the pass-through for hash() in weakref proxy objects (GH-26950) (GH-26960)
(cherry picked from commit
e2fea101fd5517f33371b04432842b971021c3bf )
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Miss Islington (bot) [Tue, 29 Jun 2021 17:53:07 +0000 (10:53 -0700)]
bpo-38062: [doc] clarify that atexit uses equality comparisons internally. (GH-26935) (GH-26957)
(cherry picked from commit
12803c59d54ff1a45a5b08cef82652ef199b3b07 )
Co-authored-by: Jack DeVries <58614260+jdevries3133@users.noreply.github.com>
Miss Islington (bot) [Tue, 29 Jun 2021 14:19:05 +0000 (07:19 -0700)]
bpo-42588: Update the docs for the TopologicalSorter.static_order() method (GH-26834) (GH-26952)
(cherry picked from commit
0d7f7975d55eff7e3dfcebd14e765fc6cd7d3e40 )
Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
Łukasz Langa [Mon, 28 Jun 2021 09:48:44 +0000 (11:48 +0200)]
Post 3.9.6
Łukasz Langa [Mon, 28 Jun 2021 08:26:18 +0000 (10:26 +0200)]
Python 3.9.6
Jason R. Coombs [Sun, 27 Jun 2021 22:05:27 +0000 (18:05 -0400)]
[3.9] bpo-37741: make importlib.metadata docs discoverable through a module directive. (GH-25415) (GH-26500)
Automerge-Triggered-By: GH:jaraco.
(cherry picked from commit
23acadcc1c75eb74b2459304af70d97a35001b34 )
Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
Miss Islington (bot) [Sun, 27 Jun 2021 19:52:32 +0000 (12:52 -0700)]
bpo-40620: Clarify tutorial controlflow.rst ``range`` examples (GH-26919) (GH-26928)
(cherry picked from commit
2f49c9debc2efe010c757be3bdbd6493f1ebc5f6 )
Co-authored-by: jdevries3133 <58614260+jdevries3133@users.noreply.github.com>
Miss Islington (bot) [Sun, 27 Jun 2021 18:50:45 +0000 (11:50 -0700)]
Clarify the order of a stacked `abstractmethod` (GH-26892)
Co-authored-by: Tal Einat <532281+taleinat@users.noreply.github.com>
(cherry picked from commit
74d60eab558bffdf5ca8ea2f5305e19b36bdb9a8 )
Co-authored-by: Ram Rachum <ram@rachum.com>
Serhiy Storchaka [Sun, 27 Jun 2021 11:28:24 +0000 (14:28 +0300)]
[3.9] bpo-44482: Fix very unlikely resource leak in glob in non-CPython implementations (GH-26843). (GH-26916)
(cherry picked from commit
5c7940257e1f611e7284fd504887bd29a63d0a94 )
Stéphane Bidoul [Sat, 26 Jun 2021 17:59:57 +0000 (19:59 +0200)]
[3.9] Update vendored pip to 21.1.3 (GH-26912). (GH-26915)
Miss Islington (bot) [Thu, 24 Jun 2021 12:25:41 +0000 (05:25 -0700)]
bpo-44229: Ignore spurious EPROTOTYPE on macOS in test_ssl (GH-26893)
(cherry picked from commit
b5a52eef67997246b4235b5407e52a01e822ce56 )
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
Victor Stinner [Wed, 23 Jun 2021 15:47:33 +0000 (17:47 +0200)]
bpo-44441: _PyImport_Fini2() resets PyImport_Inittab (GH-26874) (GH-26878)
Py_RunMain() now resets PyImport_Inittab to its initial value at
exit. It must be possible to call PyImport_AppendInittab() or
PyImport_ExtendInittab() at each Python initialization.
(cherry picked from commit
489699ca05bed5cfd10e847d8580840812b476cd )
Miss Islington (bot) [Wed, 23 Jun 2021 10:03:00 +0000 (03:03 -0700)]
bpo-28395: Remove unnecessary semicolons in tests (GH-26868)
(cherry picked from commit
5a3108044d2e5b694da2d1f4176c9bbaef15c142 )
Co-authored-by: Dong-hee Na <donghee.na@python.org>
Miss Islington (bot) [Tue, 22 Jun 2021 17:10:50 +0000 (10:10 -0700)]
[doc] Improve punctuation atexit doc (GH-25629) (GH-26857)
(cherry picked from commit
a6b47de07a304eaa37a1c5554ed00a3ec91f8407 )
Co-authored-by: Géry Ogam <gery.ogam@gmail.com>
Co-authored-by: Géry Ogam <gery.ogam@gmail.com>
Miss Islington (bot) [Tue, 22 Jun 2021 14:42:41 +0000 (07:42 -0700)]
bpo-41621: Document defaultdict's default_factory parameter (GH-21945)
It defaults to None and is positional only.
(cherry picked from commit
d1ae57027fc39ff60dcfc1b63881400e5ca3ce56 )
Co-authored-by: Dennis Sweeney <36520290+sweeneyde@users.noreply.github.com>
Ma Lin [Tue, 22 Jun 2021 13:57:41 +0000 (21:57 +0800)]
bpo-44439: BZ2File.write()/LZMAFile.write() handle length correctly (GH-26846)
No longer use len() to get the length of the input data. For some buffer protocol objects, the length obtained by using len() is wrong.
Co-authored-by: Marco Ribeiro <marcoffee@users.noreply.github.com>
Miss Islington (bot) [Tue, 22 Jun 2021 00:29:13 +0000 (17:29 -0700)]
bpo-44287: asyncio test_popen() uses longer timeout (GH-26832)
Fix asyncio test_popen() of test_windows_utils by using a longer
timeout. Use military grade battle-tested test.support.SHORT_TIMEOUT
timeout rather than a hardcoded timeout of 10 seconds: it's 30
seconds by default, but it is made longer on slow buildbots.
WaitForMultipleObjects() timeout argument is in milliseconds.
(cherry picked from commit
be1cb3214d09d4bf0288bc45f3c1f167f67e4514 )
Co-authored-by: Victor Stinner <vstinner@python.org>
Miss Islington (bot) [Mon, 21 Jun 2021 22:03:06 +0000 (15:03 -0700)]
bpo-13814: Explain why generators are not context managers (GH-26835)
Put entry in Design FAQ after a question about a context manager for assignment.
Original patch by Aidan Lowe.
(cherry picked from commit
51f45d085dad3b708f6fe166af517aba69e7e9f7 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Mon, 21 Jun 2021 14:27:42 +0000 (07:27 -0700)]
bpo-44395: Fix MIMEPart.as_string to pass unixfrom properly (GH-26685)
(cherry picked from commit
30f7a77f359a0fc6e37988b0f317a77a15d66b7b )
Co-authored-by: Dong-hee Na <donghee.na@python.org>