Commit graph

110331 commits

Author SHA1 Message Date
Miss Islington (bot)
c2593b4d06
bpo-42958: Improve description of shallow= in filecmp.cmp docs (GH-27166)
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Co-authored-by: Alexander Vandenbulcke <alexander.vandenbulcke95@gmail.com>
(cherry picked from commit a8dc4893d2)

Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
2021-08-04 13:03:33 -07:00
Miss Islington (bot)
98f6a72ff6
[doc] bpo-43066: zipfile - add note on leading slash in the filename arg (GH-26899)
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit 7c5dab4340)

Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
2021-08-04 12:59:04 -07:00
Miss Islington (bot)
cdcae41377
Fix typo in 'xml.dom.minidom' documentation (GH-27602)
(cherry picked from commit cc77193127)

Co-authored-by: Cristián Maureira-Fredes <cmaureir@users.noreply.github.com>
2021-08-04 12:50:18 -07:00
Miss Islington (bot)
770be3a9e1
Fix 404 link to the pyporting mailing list (GH-27320)
Co-authored-by: Mariatta Wijaya <Mariatta@users.noreply.github.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit 977d99d1cc)

Co-authored-by: Rohit Nishad <47008599+rohitnishad613@users.noreply.github.com>
2021-08-04 12:15:40 -07:00
Miss Islington (bot)
f4b3217874
Note that tp_clear and m_clear are not always called (GH-27581)
(cherry picked from commit 10faada709)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
2021-08-04 11:23:41 -07:00
Miss Islington (bot)
40a863185e
Fix hyperlink conflict in turtle docs (GH-27592)
(cherry picked from commit 3d2b4c6f18)

Co-authored-by: Harry <harry.lees@gmail.com>
2021-08-04 11:14:12 -07:00
Miss Islington (bot)
952aa31c89
bpo-41886: Fix documented type of PyType_Type (GH-22454)
(cherry picked from commit ac811f9b5a)

Co-authored-by: da-woods <dw-git@d-woods.co.uk>
2021-08-03 10:50:24 -07:00
Steve Dower
4b46db68d0
Ensure LICENSE.txt file is generated even in PGO builds (GH-27580) (GH-27582) 2021-08-03 17:38:04 +01:00
Miss Islington (bot)
bc2841c7a9
bpo-44808: fixes test for interactive inspect getsource of a class (GH-27571)
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit 58325971de)

Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
2021-08-03 06:07:59 -07:00
Miss Islington (bot)
84494db419
bpo-41737: expand doc for NotADirectoryError (GH-27471)
(cherry picked from commit f7c23a99cd)

Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
2021-08-03 05:05:04 -07:00
Miss Islington (bot)
8ce7f2f4ef
bpo-39091: Fix segfault when Exception constructor returns non-exception for gen.throw. (GH-17658) (GH-27572)
Co-authored-by: Benjamin Peterson <benjamin@python.org>
(cherry picked from commit 83ca46b778)

Co-authored-by: Noah <33094578+coolreader18@users.noreply.github.com>
2021-08-03 12:10:38 +02:00
Pablo Galindo
2b8d4eaec9
Post 3.10.0rc1 2021-08-02 22:37:13 +01:00
Pablo Galindo
cc115e5bf6
Python 3.10.0rc1 2021-08-02 20:53:59 +01:00
Miss Islington (bot)
567176249e
bpo-44792: Improve syntax errors for if expressions (GH-27506) (GH-27565)
(cherry picked from commit 28b6dc9dd5)

Co-authored-by: Miguel Brito <5544985+miguendes@users.noreply.github.com>
2021-08-02 20:05:33 +01:00
Miss Islington (bot)
c6e7c9860d
bpo-44782: Improve OrderedDict recipe for LRU cache variants (GH-27536)
(cherry picked from commit 54f185b6d3)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
2021-08-02 11:38:14 -07:00
Miss Islington (bot)
14cb669357
bpo-35183: Add typical examples to os.path.splitext docs (GH-27286) (GH-27563)
(cherry picked from commit aa0894b379)

Co-authored-by: Jake Stockwin <jake.stockwin@optimorlabs.com>
2021-08-02 20:10:47 +02:00
Miss Islington (bot)
aa7266854a
bpo-44785: Silence deprecation warnings in test_pickle (GH-27538)
(cherry picked from commit 36d952d228)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2021-08-02 10:09:05 -07:00
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