Commit graph

110294 commits

Author SHA1 Message Date
Miss Islington (bot)
f7f1c26423
Update URLs in comments and metadata to use HTTPS (GH-27458) (GH-27478)
(cherry picked from commit be42c06bb0)

Co-authored-by: Noah Kantrowitz <noah@coderanger.net>
2021-07-30 16:25:28 +02:00
Miss Islington (bot)
6ca35f2891
Doc: Change errant 3.10.0 to 3.10, to match other mentions (GH-27459) (GH-27479)
(cherry picked from commit f4367ba3c5)

Co-authored-by: Ori Avtalion <ori@avtalion.name>
2021-07-30 16:16:46 +02:00
Miss Islington (bot)
56122b0bba
bpo-44761: Change default value of NewType __module__ attr (GH-27406) (GH-27477)
(cherry picked from commit 7b975f81e4)

Co-authored-by: Yurii Karabas <1998uriyyo@gmail.com>
2021-07-30 15:48:01 +02:00
Erlend Egeberg Aasland
0cb470e622
[3.10] bpo-31746: Prevent segfaults when sqlite3.Connection is uninitialised (GH-27431). (GH-27472)
(cherry picked from commit 7e311e496b)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
2021-07-30 14:01:22 +02:00
Miss Islington (bot)
472997659b
bpo-44662: Add ability to annotate types.Union (GH-27214) (GH-27461)
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
(cherry picked from commit 8182c8329c)

Co-authored-by: Yurii Karabas <1998uriyyo@gmail.com>
2021-07-30 11:31:54 +02:00
Steve Dower
0b984d1ccc
bpo-44479: Do not regenerate files during a PGO build as it will invalidate the profile. (GH-27462)
Also remove some unused code that should not have been backported.
2021-07-29 23:18:17 +01:00
Miss Islington (bot)
9d7511c7e0
Add missing gdbm dependencies to the UNIX CI (GH-27467)
(cherry picked from commit 851cca8c22)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
2021-07-29 15:01:07 -07:00
Miss Islington (bot)
1256279047
Fix typo in ast.rst (GH-27449) (GH-27454)
Co-authored-by: HaeckelK <haeckelk.github@gmail.com>
(cherry picked from commit 6b61d74a3b)

Co-authored-by: HaeckelK <51128712+HaeckelK@users.noreply.github.com>
2021-07-29 19:38:28 +02:00
Miss Islington (bot)
a438b37d9f
To fix the random failed test cases of test___xxsubinterpreters in multiprocess. (GH-27240) (GH-27452)
(cherry picked from commit 9101b39e67)

Co-authored-by: Hai Shi <shihai1992@gmail.com>
2021-07-29 19:27:24 +02:00
Miss Islington (bot)
86545bd94c
bpo-44765: [doc] fix typo (GH-27430) (GH-27450)
(cherry picked from commit ccefa8a905)

Co-authored-by: Pavel <69010336+pavel-lexyr@users.noreply.github.com>
2021-07-29 19:22:57 +02:00
Miss Islington (bot)
f8e13e35d1
bpo-44752: refactor part of rlcompleter.Completer.attr_matches (GH-27433) (GH-27447)
(cherry picked from commit 6741794dd4)

Co-authored-by: Jack DeVries <58614260+jdevries3133@users.noreply.github.com>
2021-07-29 17:44:42 +02:00
Miss Islington (bot)
ebba286709
bpo-32280: Store _PyRuntime in a named section (GH-4802) (#27448)
This commit stores the _PyRuntime structure in a section of the same name. This allows a debugging or crash reporting tool to quickly locate this structure at runtime without requiring the symbol table.

Co-authored-by: Pablo Galindo <pablogsal@gmail.com>
(cherry picked from commit 35002aa8f6)

Co-authored-by: Max Bélanger <aeromax@gmail.com>

Co-authored-by: Max Bélanger <aeromax@gmail.com>
2021-07-29 16:20:58 +01:00
Miss Islington (bot)
d20f1095a6
bpo-44752: Make rlcompleter not call @property methods (GH-27401) (GH-27444)
* 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 50de8f74f8)

Co-authored-by: Jack DeVries <58614260+jdevries3133@users.noreply.github.com>
2021-07-29 14:07:00 +02:00
Miss Islington (bot)
761c641f19
bpo-44707: Fix an undefined behavior of the null pointer arithmetic (GH-27292) (GH-27442)
(cherry picked from commit e5c8ddb171)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2021-07-29 14:05:30 +02:00
Miss Islington (bot)
6b922dae6c
bpo-41103: Resurrect the old buffer protocol. (GH-27437) (GH-27441)
Revert "bpo-41103: Remove old buffer protocol support (GH-21117)"

This reverts commit 6f8a6ee59c.
(cherry picked from commit ce5e1a6809)

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
2021-07-29 13:31:42 +02:00
Miss Islington (bot)
b5bdc0c407
bpo-43565: Document PyUnicode_KIND's return type as an unsigned int (GH-25724) (GH-27439)
(cherry picked from commit 47fd4726a2)

Co-authored-by: Ammar Askar <ammar@ammaraskar.com>
2021-07-29 11:31:02 +02:00
Miss Islington (bot)
405f5c5491
[3.10] bpo-43897: Reject "_" captures and top-level MatchStar in the AST validator (GH-27432) (GH-27435)
(cherry picked from commit 8d0647485d)


Co-authored-by: Brandt Bucher <brandt@python.org>

Automerge-Triggered-By: GH:brandtbucher
2021-07-28 18:02:14 -07:00
Miss Islington (bot)
bccb7b9509
bpo-40263: Fixes an off-by-one error in _winapi_WaitForMultipleObjects_impl (GH-19501)
(cherry picked from commit 92b5dc780d)

Co-authored-by: Ray Donnelly <mingw.android@gmail.com>
2021-07-28 13:18:01 -07:00
Miss Islington (bot)
369d1480b7
bpo-44763: [doc] remove repetitive sentence from textwrap.wrap (GH-27423) (GH-27426)
(cherry picked from commit cb1d76f10a)

Co-authored-by: Jack DeVries <58614260+jdevries3133@users.noreply.github.com>
2021-07-28 19:30:58 +02:00
Miss Islington (bot)
97af790495
bpo-44544: [doc] list all textwrap func kwargs (GH-26999) (GH-27424)
(cherry picked from commit c1e39d6b11)

Co-authored-by: Jack DeVries <58614260+jdevries3133@users.noreply.github.com>
2021-07-28 19:29:25 +02:00
Miss Islington (bot)
8789add991
bpo-27827: identify a greater range of reserved filename on Windows. (GH-26698) (GH-27421)
`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 56c1f6d7ed)
2021-07-28 17:01:47 +02:00
Miss Islington (bot)
a90a57ed53
Fix typo in sqlite3.rst (GH-27415) (GH-27417)
preceeding -> preceding
(cherry picked from commit fbe87023bf)

Co-authored-by: Ikko Ashimine <eltociear@gmail.com>
2021-07-28 16:33:26 +02:00
Miss Islington (bot)
c75b59418e
Add missing end of sentence in docs (GH-27280) (GH-27419)
(cherry picked from commit 531e2fbc52)

Co-authored-by: Adrian Garcia Badaracco <1755071+adriangb@users.noreply.github.com>
2021-07-28 16:32:38 +02:00
Miss Islington (bot)
5eabf246b6
Change type check to isinstance in pipes (GH-27291) (GH-27416)
(cherry picked from commit 9ffbb89946)

Co-authored-by: Anton Grübel <anton.gruebel@gmail.com>
2021-07-28 16:08:51 +02:00
Miss Islington (bot)
0993837766
Spell out 's.pop() or s.pop(i)' (GH-27398) (GH-27412)
(cherry picked from commit 2ff5bb4908)

Co-authored-by: Dennis Sweeney <36520290+sweeneyde@users.noreply.github.com>
2021-07-28 15:56:17 +02:00
Miss Islington (bot)
f113195ac8
bpo-44756: in ./Doc, make build depends on make html (GH-27403) (GH-27410)
- venv rule is now conditional, and only does anything if $VENVDIR does not exist
- add rule "clean-venv"
(cherry picked from commit d22c876d5a)

Co-authored-by: Jack DeVries <58614260+jdevries3133@users.noreply.github.com>
2021-07-28 15:35:18 +02:00
Miss Islington (bot)
c558e12695
bpo-44657: Fix instancemethod_call to use PyInstanceMethod_GET_FUNCTION (GH-27202)
(cherry picked from commit ddf8ae31a0)

Co-authored-by: Dong-hee Na <donghee.na@python.org>
2021-07-28 06:29:17 -07:00
Jason R. Coombs
684eb5cb80
[3.10] bpo-44461: Check early that a pdb target is valid for execution. (GH-27227) (GH-27399)
Automerge-Triggered-By: GH:jaraco
2021-07-28 06:04:38 -07:00
Miss Islington (bot)
5502ee052f
bpo-44600: Refactor new tracing tests (GH-27396) (GH-27404)
(cherry picked from commit 38ddc8beb3)

Co-authored-by: Brandt Bucher <brandt@python.org>
2021-07-28 14:38:39 +02:00
Miss Islington (bot)
68e3dca068
bpo-34013: Move the Python 2 hints from the exception constructor to the parser (GH-27392)
(cherry picked from commit ecc3c8e421)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
2021-07-27 14:19:18 -07:00
Pablo Galindo Salgado
b977f8510e
[3.10] bpo-34013: Generalize the invalid legacy statement error message (GH-27389). (GH-27391)
(cherry picked from commit 6948964ecf)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
2021-07-27 18:52:32 +01:00
Miss Islington (bot)
be2415487a
bpo-44740: Make minor edits to lowercasing "internet" and "web". (GH-27385) (#27386)
Follow up to 11749e2dc2
(cherry picked from commit 2e41df4d60)

Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2021-07-27 11:20:11 +02:00
Miss Islington (bot)
1557cff025
[doc] Fix typo in asyncio Event Loop (GH-27377)
First Pull Request to cpython, so forgive me for any mistakes

Automerge-Triggered-By: GH:Mariatta
(cherry picked from commit 6fa4060b86)

Co-authored-by: Vinicius Gubiani Ferreira <vini.g.fer@gmail.com>
2021-07-26 21:07:30 -07:00
Miss Islington (bot)
b631d8d932
Add windows build.bat counterpart for 'make regen-all' in error message (GH-26770)
(cherry picked from commit d61b69f02d)

Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
2021-07-26 20:27:48 -07:00
Miss Islington (bot)
6fc1efa454
bpo-44740: Lowercase "internet" and "web" where appropriate. (GH-27378) (GH-27380)
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit 11749e2dc2)

Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2021-07-27 00:34:32 +02:00
Miss Islington (bot)
0ea5e0d792
bpo-44515: handle non-refcounted GC in contextlib tests (GH-26910) (GH-27379)
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit a2c45e5bcf)

Co-authored-by: Nick Coghlan <ncoghlan@gmail.com>
2021-07-26 23:21:36 +02:00
Miss Islington (bot)
3dc88ff845
docs: replace "Mac OS X" -> "macOS" (GH-27364) (GH-27374)
"Mac OS X" has been rebranded as macOS

https://www.apple.com/macos
(cherry picked from commit 5fdd2a14ce)

Co-authored-by: partev <petrosyan@gmail.com>
2021-07-26 16:22:26 -04:00
Miss Islington (bot)
5151826ee4
The current documentation says it returns None if the name is not found, but (GH-26785) (GH-27371)
the implementation uses [] and will raise KeyError instead.

Noticed by @srittau in python/typeshed@5659.
(cherry picked from commit f22737abfa)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2021-07-26 21:35:33 +02:00
Miss Islington (bot)
563e05743c
bpo-43443: Clarify difference between shelve objects and dicts (GH-27004) (GH-27369)
(cherry picked from commit c97c2a050c)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2021-07-26 21:32:36 +02:00
Miss Islington (bot)
4a5457d5d4
bpo-44490: Add 'Whats New' docs regarding types.Union changes (GH-27215) (GH-27368)
(cherry picked from commit 6c1b57d958)

Co-authored-by: Yurii Karabas <1998uriyyo@gmail.com>
2021-07-26 21:32:05 +02:00
Miss Islington (bot)
256d97c8a3
bpo-44698: Fix undefined behaviour in complex exponentiation. (GH-27278) (#27366)
(cherry picked from commit 1d582bbc96)

Co-authored-by: T. Wouters <thomas@python.org>
2021-07-26 21:29:52 +02:00
Miss Islington (bot)
8a37e8cf45
bpo-44732: Rename types.Union to types.UnionType (GH-27342)
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
(cherry picked from commit 2b8ad9e6c5)

Co-authored-by: Hasan <hasan.aleeyev@gmail.com>
2021-07-26 12:02:58 -07:00
Miss Islington (bot)
16a174f7ba
bpo-44734: Fix precision in turtle tests (GH-27343) (GH-27361)
(cherry picked from commit 3f135c073a)

Co-authored-by: Logan Jones <loganasherjones@gmail.com>
2021-07-26 17:55:50 +02:00
Miss Islington (bot)
642d873d67
bpo-44693: Update __future__ entry in Doc/glossary.rst (GH-27349) (GH-27357)
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 0363a4014d)

Co-authored-by: Steven Hsu <hsuhaochun@gmail.com>

Co-authored-by: Steven Hsu <hsuhaochun@gmail.com>
2021-07-25 21:40:08 -04:00
Miss Islington (bot)
01601aa736
[3.10] bpo-44600: Fix line numbers for pattern matching cleanup code (GH-27346) (GH-27356)
(cherry picked from commit 4214f470f0)


Co-authored-by: Charles Burkland <charles.aburkland@gmail.com>

Automerge-Triggered-By: GH:brandtbucher
2021-07-25 17:04:06 -07:00
Miss Islington (bot)
628baf6fef
[3.10] bpo-44399: Update logging cookbook to document patterns to be avoided. (GH-27348) (GH-27352)
(cherry picked from commit 9751f85914)
2021-07-25 20:31:54 +01:00
Miss Islington (bot)
59058a65a2
[3.10] bpo-43184: Add information about added attribute and method. (GH-27347) (GH-27355)
(cherry picked from commit 50b72768ff)
2021-07-25 20:30:50 +01:00
Miss Islington (bot)
0aea99e444
bpo-44676: Serialize the union type using only public API (GH-27323) (GH-27340)
Remove also the _from_args() constructor.
(cherry picked from commit 435a0334d3)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2021-07-24 22:35:33 +03:00
Ken Jin
ca5a4cf826
bpo-44731: Simplify the union type implementation (GH-27318) (GH-27334)
Remove direct support of typing types in the C code because they are already supported by defining methods __or__ and __ror__ in the Python code.

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2021-07-24 15:49:25 +01:00
Pablo Galindo Salgado
9356d1e47d
[3.10] bpo-44676: Add ability to serialize types.Union (GH-27244) (GH-27333)
(cherry picked from commit fe13f0b0f6)

Co-authored-by: Yurii Karabas <1998uriyyo@gmail.com>
2021-07-24 15:08:53 +01:00