Miss Islington (bot)
2cc19a5463
bpo-44806: Fix __init__ in subclasses of protocols (GH-27545)
...
Non-protocol subclasses of protocol ignore now the __init__ method
inherited from protocol base classes.
(cherry picked from commit 043cd60abe )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2021-08-02 10:08:59 -07:00
Miss Islington (bot)
9de590151d
Document PyMember_GetOne and PyMember_SetOne (GH-27555)
...
(cherry picked from commit d382bde220 )
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
2021-08-02 10:08:49 -07:00
Miss Islington (bot)
7c89bddd2f
doc: "Mac OS " -> "macOS" (GH-27534)
...
(cherry picked from commit 1342248f3a )
Co-authored-by: partev <petrosyan@gmail.com>
2021-08-02 09:30:05 -07:00
Miss Islington (bot)
a1eaa74d9d
bpo-44808: Fix test_inspect in refleak mode (GH-27544)
...
(cherry picked from commit 626d397cc1 )
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
2021-08-02 06:41:08 -07:00
Miss Islington (bot)
5888107f33
doc: "Mac OS X" -> "macOS" (GH-27535)
...
(cherry picked from commit 414dcb13aa )
Co-authored-by: partev <petrosyan@gmail.com>
2021-08-02 06:13:48 -07:00
Miss Islington (bot)
1bc83eb5c8
bpo-44781: make distutils test suppress deprecation warning from import distutils (GH-27485) (GH-27540)
...
(cherry picked from commit a9134fa2ff )
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
2021-08-02 11:54:52 +02:00
Miss Islington (bot)
33a4010198
bpo-44667: Treat correctly lines ending with comments and no newlines in the Python tokenizer (GH-27499) (GH-27500)
...
(cherry picked from commit b6bde9fc42 )
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
2021-08-02 11:43:45 +02:00
Miss Islington (bot)
c8db292012
bpo-44793: Fix checking the number of arguments when subscribe a generic type with ParamSpec parameter. (GH-27515)
...
For example Callable[P, T][[int], str, float] will now raise an error.
Use also term "arguments" instead of "parameters" in error
message for too few/many arguments.
(cherry picked from commit f92b9133ef )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2021-08-02 00:08:24 -07:00
Ned Deily
b192fb3f6a
Remove beta release note from macOS installer displays (GH-27531)
2021-08-01 17:35:53 -04:00
Miss Islington (bot)
21d5897982
bpo-44784: Apply changes from importlib_metadata 4.6.3 (GH-27508) ( #27510 )
...
Addressing issues with tests under error on warnings.
Automerge-Triggered-By: GH:jaraco
(cherry picked from commit 1cf8424a62 )
Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
2021-07-31 23:01:38 -04:00
Miss Islington (bot)
35035bc35a
bpo-34013: Don't consider a grouped expression when reporting legacy print syntax errors (GH-27521)
...
(cherry picked from commit 208a7e957b )
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
2021-07-31 18:31:44 -07:00
Miss Islington (bot)
76903ff9ce
bpo-44794: Merge tests for typing.Callable and collection.abc.Callable (GH-27507)
...
(cherry picked from commit be4cb9089a )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2021-07-31 10:25:22 -07:00
Miss Islington (bot)
12073fc6fd
Trivial typo in docstring ( #27504 )
...
(cherry picked from commit 4b4227b907 )
Co-authored-by: Jesús Cea <jcea@jcea.es>
Co-authored-by: Jesús Cea <jcea@jcea.es>
2021-07-31 07:04:45 +02:00
Miss Islington (bot)
f468ede4a2
bpo-44648: Fix error type in inspect.getsource() in interactive session (GH-27171) (GH-27495)
...
(cherry picked from commit 48a62559df )
Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
2021-07-30 19:46:42 +02:00
Miss Islington (bot)
440c9f772a
bpo-43625: Enhance csv sniffer has_headers() to be more accurate (GH-26939) (GH-27494)
...
(cherry picked from commit ceea579ccc )
Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
2021-07-30 19:30:09 +02:00
Miss Islington (bot)
6f950023c6
bpo-42892: fix email multipart attribute error (GH-26903) (GH-27492)
...
(cherry picked from commit e3f877c32d )
Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
2021-07-30 19:27:06 +02:00
Miss Islington (bot)
843b3d2820
bpo-41911: Update docs for various expressions (GH-27470) (GH-27490)
...
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit 4bd9caafb6 )
Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
2021-07-30 19:25:45 +02:00
Miss Islington (bot)
0db6c143ae
bpo-44666: Use default encoding as fallback for compile_file (GH-27236) (GH-27488)
...
When sys.stdout.encoding is None compile_file will fall back to
sys.getdefaultencoding to encode/decode error messages.
Co-authored-by: Stefan Hoelzl <stefan.hoelzl@posteo.de>
Co-authored-by: Mickaël Schoentgen <contact@tiger-222.fr>
(cherry picked from commit 80f0707629 )
2021-07-30 19:12:05 +02:00
Miss Islington (bot)
6e6dc25173
bpo-44753: Don't use logfile extension when determining old files to be deleted (GH-27475) (GH-27487)
...
(cherry picked from commit 6ff8903809 )
2021-07-30 17:20:59 +01:00
Pablo Galindo Salgado
c2e0b131c7
[3.10] Fail the CI if an optional module fails to compile (GH-27466). (GH-27481)
...
(cherry picked from commit 7cad0bee80 )
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
2021-07-30 16:14:28 +01:00
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