]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
Miss Islington (bot) [Sat, 19 Jun 2021 15:16:13 +0000 (08:16 -0700)]
bpo-44426: Fix use of the C keyword 'default' as a variable name (GH-26798) (GH-26804)
(cherry picked from commit
291848195f85e23c01adb76d5a0ff9c6eb7f2614 )
Miss Islington (bot) [Sat, 19 Jun 2021 10:44:37 +0000 (03:44 -0700)]
[3.10] bpo-38820: Test with OpenSSL 3.0.0-beta1 (GH-26769) (GH-26799)
Signed-off-by: Christian Heimes <christian@python.org>
(cherry picked from commit
44fb55149934d8fb095edb6fc3f8167208035b96 )
Co-authored-by: Christian Heimes <christian@python.org>
Automerge-Triggered-By: GH:tiran
Miss Islington (bot) [Sat, 19 Jun 2021 04:27:47 +0000 (21:27 -0700)]
Remove dubious suggestion (GH-26789) (#26797)
Ethan Furman [Fri, 18 Jun 2021 21:25:42 +0000 (14:25 -0700)]
[3.10] bpo-43945: [Enum] reduce scope of new format() behavior (GH-26752)
* [Enum] reduce scope of new format behavior
Instead of treating all Enums the same for format(), only user mixed-in
enums will be affected. In other words, IntEnum and IntFlag will not be
changing the format() behavior, due to the requirement that they be
drop-in replacements of existing integer constants.
If a user creates their own integer-based enum, then the new behavior
will apply:
class Grades(int, Enum):
A = 5
B = 4
C = 3
D = 2
F = 0
Now: format(Grades.B) -> DeprecationWarning and '4'
3.12: -> no warning, and 'B'.
(cherry picked from commit
f60b07ab6c943fce084772c3c7731ab3bbd213ff )
Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
Pablo Galindo [Fri, 18 Jun 2021 21:15:57 +0000 (22:15 +0100)]
[3.10] bpo-44368: Improve syntax errors with invalid as pattern targets (GH-26632) (GH-26792)
(cherry picked from commit
05073036dcecefc00b0c3e7397601809da41e2f1 )
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Miss Islington (bot) [Fri, 18 Jun 2021 20:30:53 +0000 (13:30 -0700)]
bpo-44451: Reset DeprecationWarning filters in test_importlib.test_entry_points_by_index (GH-26784)
This avoids the following error if DeprecationWarnings are ignored.
======================================================================
ERROR: test_entry_points_by_index (test.test_importlib.test_metadata_api.APITests)
Prior versions of Distribution.entry_points would return a
----------------------------------------------------------------------
Traceback (most recent call last):
File "/builddir/build/BUILD/Python-3.10.0b3/Lib/test/test_importlib/test_metadata_api.py", line 145, in test_entry_points_by_index
expected = next(iter(caught))
StopIteration
----------------------------------------------------------------------
Ran 1402 tests in 2.125s
FAILED (errors=1, skipped=18, expected failures=1)
(cherry picked from commit
df1502e47fc1e0cf1e7d460ae04530c3e2e4a7c6 )
Co-authored-by: Miro Hrončok <miro@hroncok.cz>
Miss Islington (bot) [Fri, 18 Jun 2021 17:48:07 +0000 (10:48 -0700)]
[3.10] Reorganize the pattern matching suite (GH-26661) (GH-26787)
(cherry picked from commit
c106cf31f816f719de0a83ff31b9f4d0bea3519b )
Co-authored-by: Brandt Bucher <brandt@python.org>
Automerge-Triggered-By: GH:brandtbucher
Miss Islington (bot) [Thu, 17 Jun 2021 21:14:36 +0000 (14:14 -0700)]
bpo-44310: Add a FAQ entry for caching method calls (GH-26731) (GH-26777)
Miss Islington (bot) [Thu, 17 Jun 2021 16:41:46 +0000 (09:41 -0700)]
bpo-43024: improve signature (in help, etc) for functions taking sent… (GH-24331) (GH-26773)
…inel defaults
(cherry picked from commit
f73377d57c5272390de63cccc3c292c44689310a )
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Pablo Galindo [Thu, 17 Jun 2021 12:20:47 +0000 (13:20 +0100)]
Post 3.10.0b3
Pablo Galindo [Thu, 17 Jun 2021 10:27:08 +0000 (11:27 +0100)]
Python 3.10.0b3
Miss Islington (bot) [Thu, 17 Jun 2021 10:19:44 +0000 (03:19 -0700)]
bpo-43908: Make heap types converted during 3.10 alpha immutable (GH-26351) (GH-26766)
* Make functools types immutable
* Multibyte codec types are now immutable
* pyexpat.xmlparser is now immutable
* array.arrayiterator is now immutable
* _thread types are now immutable
* _csv types are now immutable
* _queue.SimpleQueue is now immutable
* mmap.mmap is now immutable
* unicodedata.UCD is now immutable
* sqlite3 types are now immutable
* _lsprof.Profiler is now immutable
* _overlapped.Overlapped is now immutable
* _operator types are now immutable
* winapi__overlapped.Overlapped is now immutable
* _lzma types are now immutable
* _bz2 types are now immutable
* _dbm.dbm and _gdbm.gdbm are now immutable
(cherry picked from commit
00710e6346fd2394aa020b2dfae170093effac98 )
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
Miss Islington (bot) [Thu, 17 Jun 2021 10:00:56 +0000 (03:00 -0700)]
bpo-44389: Fix typo in ssl deprecation warning message (GH-26754)
`ssl.SSL_NO_TLS` should be `ssl.OP_NO_TLS`.
(cherry picked from commit
c544393b89f9b3e2b1a22588fc9ae58019314879 )
Co-authored-by: Joe <nigelchiang@outlook.com>
Miss Islington (bot) [Wed, 16 Jun 2021 19:13:37 +0000 (12:13 -0700)]
bpo-44426: Use of 'complex' as a C variable name confuses Sphinx; change it to 'num'. (GH-26744) (GH-26760)
(cherry picked from commit
7247f6f433846c6e37308a550e8e5eb6be379856 )
Miss Islington (bot) [Wed, 16 Jun 2021 14:34:45 +0000 (07:34 -0700)]
bpo-44392: Add Py_GenericAlias to C API docs (GH-26724)
Also fix stable ABI type definitions
(cherry picked from commit
6773c3eaa735b5061b4a97f2c730703a32d8c9ff )
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Miss Islington (bot) [Wed, 16 Jun 2021 09:53:12 +0000 (02:53 -0700)]
bpo-43795: Don't list private names in the limited API (GH-26740)
* Remove struct _node from the stable ABI list
This struct was removed along with the old parser in Python 3.9 (PEP 617)
* Stable ABI list: Use the public name "PyFrameObject" rather than "_frame"
* Ensure limited API doesn't contain private names
Names prefixed by an underscore are private by definition.
* Add a blurb
(cherry picked from commit
7cad9cb51bdae2144cbab330f13a607ba3471742 )
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Ethan Furman [Wed, 16 Jun 2021 01:50:59 +0000 (18:50 -0700)]
[3.10] bpo-44342: [Enum] improve test, add andrei kulakov to ACKS (GH-26726)
* [3.10] [Enum] improve test, add andrei kulakov to ACKS (GH-26726).
(cherry picked from commit
cb2014f2077c92c35486bf0db7e646a68478a7a5 )
Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
Miss Islington (bot) [Tue, 15 Jun 2021 21:07:37 +0000 (14:07 -0700)]
bpo-44342: [Enum] fix data type search (GH-26667)
In an inheritance chain of
int -> my_int -> final_int
the data type is now final_int (not my_int)
(cherry picked from commit
3a7cccfd6cd3693e1a2ab65ee05d7f45f8501dfa )
Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
Mark Dickinson [Tue, 15 Jun 2021 19:13:10 +0000 (20:13 +0100)]
[3.10] bpo-43475: Add what's new entry for NaN hash changes (GH-26725) (GH-26743)
(cherry picked from commit
1d10bf0bb9409a406c56b0de8870df998637fd0f )
Co-authored-by: Mark Dickinson <mdickinson@enthought.com>
Miss Islington (bot) [Tue, 15 Jun 2021 18:25:07 +0000 (11:25 -0700)]
Fix a typo in _make_class_unpicklable() docstring (GH-26729)
(cherry picked from commit
689a84475e7b1da79d5ae82df67ab8897316f98c )
Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
Miss Islington (bot) [Tue, 15 Jun 2021 14:34:42 +0000 (07:34 -0700)]
bpo-44422: Fix threading.enumerate() reentrant call (GH-26727)
The threading.enumerate() function now uses a reentrant lock to
prevent a hang on reentrant call.
(cherry picked from commit
243fd01047ddce1a7eb0f99a49732d123e942c63 )
Co-authored-by: Victor Stinner <vstinner@python.org>
Miss Islington (bot) [Tue, 15 Jun 2021 13:29:44 +0000 (06:29 -0700)]
bpo-42972: _thread.RLock implements the GH protocol (GH-26734)
The _thread.RLock type now fully implement the GC protocol: add a
traverse function and the Py_TPFLAGS_HAVE_GC flag.
(cherry picked from commit
1cd3d859a49b047dd08abb6f44f0539564d3525a )
Co-authored-by: Victor Stinner <vstinner@python.org>
Miss Islington (bot) [Tue, 15 Jun 2021 12:36:45 +0000 (05:36 -0700)]
bpo-44351: Restore back parse_makefile in distutils.sysconfig (GH-26637) (GH-26673)
The function uses distutils.text_file.TextFile and therefore
behaves differently than _parse_makefile in sysconfig.
(cherry picked from commit
fc98266ff627ba0f56f8ae241245b66bc983baa3 )
Co-authored-by: Lumír 'Frenzy' Balhar <lbalhar@redhat.com>
Miss Islington (bot) [Mon, 14 Jun 2021 17:07:52 +0000 (10:07 -0700)]
bpo-44409: Fix error location in tokenizer errors that happen during initialization (GH-26712)
(cherry picked from commit
507ed6fa1d6661e0f8e6d3282764aa9625a99594 )
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Miss Islington (bot) [Mon, 14 Jun 2021 15:06:33 +0000 (08:06 -0700)]
bpo-38291: Remove mention of typing.io and typing.re again (GH-26113)
They were originally removed in GH-10173 per bpo-35089, but then
readded in GH-21574. Cf. bpo-38291 for decision to remove.
(cherry picked from commit
8a76683cfb842e12b57f6d276839f6c68fd94e1a )
Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
Miss Islington (bot) [Mon, 14 Jun 2021 13:43:48 +0000 (06:43 -0700)]
bpo-44310: Note that lru_cache keep references to both arguments and results (GH-26715) (GH-26716)
Miss Islington (bot) [Mon, 14 Jun 2021 00:24:11 +0000 (17:24 -0700)]
bpo-43425: Update test_c_parser not to use TempdirManager (GH-26693)
(cherry picked from commit
736ed6f7a9f465ba728198e8bca81e5fbe71bc37 )
Co-authored-by: Dong-hee Na <donghee.na@python.org>
Miss Islington (bot) [Sun, 13 Jun 2021 14:05:28 +0000 (07:05 -0700)]
bpo-43475: Fix the Python implementation of hash of Decimal NaN (GH-26679)
(cherry picked from commit
9f1c5f6e8af6ba3f659b2aea1e221ac9695828ba )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Sun, 13 Jun 2021 12:07:00 +0000 (05:07 -0700)]
[3.10] bpo-44389: Fix deprecation of OP_NO_TLSv1_3 (GH-26700) (GH-26705)
Signed-off-by: Christian Heimes <christian@python.org>
(cherry picked from commit
bf527277d4e4907e32d76ca7ba667ab3149fe258 )
Co-authored-by: Christian Heimes <christian@python.org>
Automerge-Triggered-By: GH:tiran
Miss Islington (bot) [Sun, 13 Jun 2021 10:29:33 +0000 (03:29 -0700)]
bpo-44389: Remove duplicate SSL_OP_NO_TLSv1_2 flag (GH-26680)
(cherry picked from commit
cb7230c7a7d6d497e54c25e9ba640eec79de10f2 )
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
Mark Dickinson [Sun, 13 Jun 2021 07:58:32 +0000 (08:58 +0100)]
[3.10] Fix a potential reference-counting bug in long_pow (GH-26690) (GH-26703)
(cherry picked from commit
59242431991794064824cf2ab70886367613f29e )
Co-authored-by: Mark Dickinson <mdickinson@enthought.com>
Miss Islington (bot) [Sat, 12 Jun 2021 20:27:02 +0000 (13:27 -0700)]
bpo-44396: Update multi-line-start location when reallocating tokenizer buffers (GH-26676) (GH-26695)
Automerge-Triggered-By: GH:pablogsal
(cherry picked from commit
a342cc5891dbd8a08d40e9444f2e2c9e93258721 )
Serhiy Storchaka [Sat, 12 Jun 2021 17:44:32 +0000 (20:44 +0300)]
[3.10] Add more const modifiers. (GH-26691). (GH-26692)
(cherry picked from commit
be8b631b7a587aa781245e14c8cca32970e1be5b )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Fri, 11 Jun 2021 23:24:16 +0000 (16:24 -0700)]
bpo-40128: Fix IDLE autocomplete on macOS (GH-26672)
In particular, when running with tk8.6.8, as in PSF 3.9.
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
(cherry picked from commit
3ec3ee7d2e9b45b586e486e429b412d6d0ca530f )
Co-authored-by: Kaustubh J <kaustubhkj@gmail.com>
Miss Islington (bot) [Fri, 11 Jun 2021 21:21:12 +0000 (14:21 -0700)]
bpo-44381: Windows build now allows enabling control flow guard (GH-26645)
(cherry picked from commit
5af56c6f2a0d11df37fed7ecaaf321cf6926ba13 )
Co-authored-by: Steve Dower <steve.dower@python.org>
Miss Islington (bot) [Fri, 11 Jun 2021 16:18:19 +0000 (09:18 -0700)]
bpo-43318: Fix a bug where pdb does not always echo cleared breakpoints (GH-24646) (GH-26674)
(cherry picked from commit
4cb6ba14325cff98589c2660d1d2c65f4aacfee4 )
Co-authored-by: huzhaojie <hu.zj@foxmail.com>
Miss Islington (bot) [Fri, 11 Jun 2021 09:58:57 +0000 (02:58 -0700)]
bpo-44242: [Enum] improve error messages (GH-26669)
(cherry picked from commit
c956734d7af83ad31f847d31d0d26df087add9a4 )
Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
Miss Islington (bot) [Fri, 11 Jun 2021 08:57:16 +0000 (01:57 -0700)]
bpo-44378: Fix a compiler warning in Py_IS_TYPE() (GH-26644)
Py_IS_TYPE() no longer uses Py_TYPE() to avoid a compiler warning:
no longer cast "const PyObject*" to "PyObject*".
(cherry picked from commit
304dfec8d3c0763734ea8b5fa2af1d9e1ce69ffa )
Co-authored-by: Victor Stinner <vstinner@python.org>
Miss Islington (bot) [Fri, 11 Jun 2021 07:36:17 +0000 (00:36 -0700)]
bpo-44362: ssl: improve deprecation warnings and docs (GH-26646)
Signed-off-by: Christian Heimes <christian@python.org>
(cherry picked from commit
e26014f1c47d26d6097ff7a0f25384bfbde714a9 )
Co-authored-by: Christian Heimes <christian@python.org>
Miss Islington (bot) [Thu, 10 Jun 2021 23:37:27 +0000 (16:37 -0700)]
bpo-44342: [Enum] changed pickling from by-value to by-name (GH-26658) (GH-26660)
by-value lookups could fail on complex enums, necessitating a check for
__reduce__ and possibly sabotaging the final enum;
by-name lookups should never fail, and sabotaging is no longer necessary
for class-based enum creation.
(cherry picked from commit
62f1d2b3d7dda99598d053e10b785c463fdcf591 )
Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
Miss Islington (bot) [Thu, 10 Jun 2021 22:31:09 +0000 (15:31 -0700)]
bpo-44385: Remove unused grammar rules (GH-26655)
Automerge-Triggered-By: GH:lysnikolaou
(cherry picked from commit
e7b4644607789848f9752a3bd20ff216e25b4156 )
Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
Miss Islington (bot) [Thu, 10 Jun 2021 22:01:03 +0000 (15:01 -0700)]
bpo-44356: [Enum] allow multiple data-type mixins if they are all the same (GH-26649) (GH-26653)
This enables, for example, two base Enums to both inherit from `str`, and then both be mixed into the same final Enum:
class Str1Enum(str, Enum):
GH- some behavior here
class Str2Enum(str, Enum):
GH- some more behavior here
class FinalStrEnum(Str1Enum, Str2Enum):
GH- this now works
(cherry picked from commit
8a4f0850d75747af8c96ca0e7eef1f5c1abfba25 )
Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
Miss Islington (bot) [Thu, 10 Jun 2021 20:56:57 +0000 (13:56 -0700)]
bpo-37022: Fix bug where pdb's do_p/do_pp commands swallow exceptions from repr (GH-18180) (GH-26650)
(cherry picked from commit
6544b2532df82d137b71323445a07a6e29bcdec0 )
Co-authored-by: Daniel Hahler <git@thequod.de>
Miss Islington (bot) [Thu, 10 Jun 2021 20:16:38 +0000 (13:16 -0700)]
bpo-33962: Use ttk spinbox for IDLE indent space config (GH-22954)
If ttk.Spinbox is not available (Tk < 8.5.9) use readonly ttk.Combobox.
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
(cherry picked from commit
42d5a4fc3b35e45cdd237d56a04e98894d0a31f5 )
Co-authored-by: Mark Roseman <mark@markroseman.com>
Ethan Furman [Thu, 10 Jun 2021 14:24:20 +0000 (07:24 -0700)]
[3.10] bpo-44242: [Enum] remove missing bits test from Flag creation (GH-26586) (GH-26635)
Move the check for missing named flags in flag aliases from Flag creation
to a new *verify* decorator..
(cherry picked from commit
eea8148b7dff5ffc7b84433859ac819b1d92a74d )
Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
Miss Islington (bot) [Thu, 10 Jun 2021 12:02:22 +0000 (05:02 -0700)]
bpo-44363: Get test_capi passing with address sanitizer (GH-26639)
(cherry picked from commit
31aa0dbff4c1d39c9d77c6c8f4a61d0e46c1268b )
Co-authored-by: Mark Shannon <mark@hotpy.org>
Miss Islington (bot) [Wed, 9 Jun 2021 21:45:43 +0000 (14:45 -0700)]
bpo-44368: Ensure we don't raise incorrect custom syntax errors with soft keywords (GH-26630)
(cherry picked from commit
457ce60fc70f1c9290023f46fb82b6a490dff32e )
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Miss Islington (bot) [Wed, 9 Jun 2021 20:37:56 +0000 (13:37 -0700)]
bpo-40468: Split IDLE settings General tab (GH-26621)
Replace it with Windows tab for Shell and Editor options
and Shell/Ed for options exclusive to one of them.
Create room for more options and make dialog shorter,
to better fit small windows.
(cherry picked from commit
275d5f7957dbb56a6d5e1248addff210ee2e7270 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Wed, 9 Jun 2021 02:11:26 +0000 (19:11 -0700)]
bpo-40468: Factor out class ExtPage in idlelib.configdialog (GH-26618)
(cherry picked from commit
5571cabf1b3385087aba2c7c10289bba77494e08 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Wed, 9 Jun 2021 00:29:21 +0000 (17:29 -0700)]
bpo-44349: Fix edge case when displaying text from files with encoding in syntax errors (GH-26611) (GH-26616)
(cherry picked from commit
9fd21f649d66dcb10108ee395fd68ed32c8239cd )
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Miss Islington (bot) [Tue, 8 Jun 2021 23:52:23 +0000 (16:52 -0700)]
bpo-43833: Emit warnings for numeric literals followed by keyword (GH-25466)
Emit a deprecation warning if the numeric literal is immediately followed by
one of keywords: and, else, for, if, in, is, or. Raise a syntax error with
more informative message if it is immediately followed by other keyword or
identifier.
Automerge-Triggered-By: GH:pablogsal
(cherry picked from commit
2ea6d890281c415e0a2f00e63526e592da8ce3d9 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Tue, 8 Jun 2021 20:01:23 +0000 (13:01 -0700)]
bpo-40468: Move IDLE helplist settings to extensions page of dialog. (GH-26593)
These are the settings that extend the help menu. Moving them shortens the dialog and will help with it being too tall for small screens.
(cherry picked from commit
ab36b9f83424a020fbd672f218612e6f19257a32 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Tue, 8 Jun 2021 19:25:17 +0000 (12:25 -0700)]
bpo-44335: Ensure the tokenizer doesn't go into Python with the error set (GH-26608)
(cherry picked from commit
bafe0aade5741ab0d13143ee261711fdd65e8a1f )
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Batuhan Taskaya [Tue, 8 Jun 2021 17:39:30 +0000 (20:39 +0300)]
[3.10] bpo-11105: reduce the recursion limit for tests. (GH-26607)
(cherry picked from commit
e58d762c1fb4ad5e021d016c80c2bc4513632d2f )
Co-authored-by: Batuhan Taskaya <batuhan@python.org>
Miss Islington (bot) [Tue, 8 Jun 2021 16:00:10 +0000 (09:00 -0700)]
bpo-43795: Note Stable ABI PEP in What's New (GH-26479) (GH-26603)
(cherry picked from commit
257e400a19b34c7da6e2aa500d80b54e4c4dbf6f )
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Miss Islington (bot) [Tue, 8 Jun 2021 11:46:56 +0000 (04:46 -0700)]
bpo-44335: Fix a regression when identifying invalid characters in syntax errors (GH-26589)
(cherry picked from commit
d334c73b56756e90c33ce06e3a6ec23271aa099d )
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Miss Islington (bot) [Tue, 8 Jun 2021 00:36:19 +0000 (17:36 -0700)]
fix: use unambiguous punction in 'invalid escape sequence' message (GH-26582)
(cherry picked from commit
ffd87b7093109c279caf8e3ca060f408a102388a )
Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
Miss Islington (bot) [Mon, 7 Jun 2021 22:15:31 +0000 (15:15 -0700)]
Use absolute imports in IDLE tests (GH-26581)
Relative imports do not work when running test_x as main.
(cherry picked from commit
e915db3e9e512249a6f494c0b331db2d021e1f56 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Mon, 7 Jun 2021 02:09:34 +0000 (19:09 -0700)]
bpo-44322: Document more SyntaxError details. (GH-26562)
1. SyntaxError args have a tuple of other attributes.
2. Attributes are adjusted for errors in f-string field expressions.
3. Compile() can raise SyntaxErrors.
(cherry picked from commit
67dfa6f2a508c325715625fe442f2ce20270a8b3 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Sun, 6 Jun 2021 19:52:42 +0000 (12:52 -0700)]
bpo-44227: Update bisect docstrings (GH-26548) (GH-26563)
Miss Islington (bot) [Sun, 6 Jun 2021 02:56:47 +0000 (19:56 -0700)]
bpo-44320: Fix markup for W3C C14N test suite (GH-26556)
(cherry picked from commit
71be46170490d08743c714b9fa4484038aa7a23e )
Co-authored-by: NAKAMURA Osamu <osamu0329nakamura@users.noreply.github.com>
Miss Islington (bot) [Sat, 5 Jun 2021 23:13:27 +0000 (16:13 -0700)]
bpo-44304: Ensure the sqlite3 destructor callback is always called with the GIL held (GH-26551) (GH_26552)
(cherry picked from commit
6e3b7cf3af3ed7758b2c2193c1d393feb8ab8f72 )
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Miss Islington (bot) [Sat, 5 Jun 2021 03:09:40 +0000 (20:09 -0700)]
bpo-44304: Fix crash in the sqlite3 module when the GC clears Statement objects (GH-26545)
(cherry picked from commit
fa106a685c1f199aca5be5c2d0277a14cc9057bd )
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Miss Islington (bot) [Sat, 5 Jun 2021 02:38:30 +0000 (19:38 -0700)]
Update nonstandard variable names (GH-26540) (GH-26546)
Miss Islington (bot) [Sat, 5 Jun 2021 01:49:29 +0000 (18:49 -0700)]
Improve speed and accuracy for correlation() (GH-26135) (GH-26151)
Miss Islington (bot) [Sat, 5 Jun 2021 00:05:54 +0000 (17:05 -0700)]
bpo-38323: Skip SubprocessMultiLoopWatcherTest as they can hang the test suite (GH-26542) (GH-26544)
(cherry picked from commit
f171877ebe276749f31386baed5841ce37cbee2e )
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Miss Islington (bot) [Fri, 4 Jun 2021 22:10:07 +0000 (15:10 -0700)]
bpo-44279: revert 'exceptions are raised' back to 'exceptions occur' (GH-26492) (GH-26538)
(cherry picked from commit
dda9ecbfece28aad7b8ba7eaf7951dd9816f78b1 )
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Miss Islington (bot) [Fri, 4 Jun 2021 18:54:39 +0000 (11:54 -0700)]
bpo-43853: Handle sqlite3_value_text() errors (GH-25422)
(cherry picked from commit
006fd869e4798b68e266f5de89c83ddb531a756b )
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
Miss Islington (bot) [Fri, 4 Jun 2021 18:38:02 +0000 (11:38 -0700)]
bpo-44048: Fix two hashlib test cases under FIPS mode (GH-26470) (GH-26531)
test_disallow_instantiation and test_readonly_types try to test all the available
digests, however under FIPS mode, while the algorithms are available, trying to use
them will fail with a ValueError.
(cherry picked from commit
a46c220edc5cf716d0b71eb80ac29ecdb4ebb430 )
Co-authored-by: stratakis <cstratak@redhat.com>
Co-authored-by: stratakis <cstratak@redhat.com>
Pablo Galindo [Thu, 3 Jun 2021 23:11:43 +0000 (00:11 +0100)]
[3.10] bpo-44305: Improve syntax error for try blocks without except or finally (GH-26523) (GH-26524)
(cherry picked from commit
b250f89bb7e05e72a4641d44b988866b919575db )
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Pablo Galindo [Thu, 3 Jun 2021 21:22:28 +0000 (22:22 +0100)]
[3.10] bpo-44273: Improve syntax error message for assigning to "..." (GH-26477) (GH-26478)
Use "ellipsis" instead of "Ellipsis" in syntax error messages to eliminate confusion with built-in variable Ellipsis.
(cherry picked from commit
39dd141 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Thu, 3 Jun 2021 20:27:00 +0000 (13:27 -0700)]
bpo-11105: Do not crash when compiling recursive ASTs (GH-20594)
When compiling an AST object with a direct / indirect reference
cycles, on the conversion phase because of exceeding amount of
calls, a segfault was raised. This patch adds recursion guards to
places for preventing user inputs to not to crash AST but instead
raise a RecursionError.
(cherry picked from commit
f3491242e41933aa9529add7102edb68b80a25e9 )
Co-authored-by: Batuhan Taskaya <batuhan@python.org>
Miss Islington (bot) [Thu, 3 Jun 2021 20:15:15 +0000 (13:15 -0700)]
bpo-43921: Fix test_ssl.test_wrong_cert_tls13() on Windows (GH-26502) (GH-26518)
Fix test_ssl.test_wrong_cert_tls13(): use suppress_ragged_eofs=False,
since read() can raise ssl.SSLEOFError on Windows.
(cherry picked from commit
ea0210fa8ccca769896847f25fc6fadfe9a717bc )
Co-authored-by: Victor Stinner <vstinner@python.org>
Mark Shannon [Thu, 3 Jun 2021 18:57:31 +0000 (19:57 +0100)]
[3.10] bpo-44298: Backport #26513 to 3.10 (#26516)
* Backport
937cebc93 to 3.10
* Update importlib
Erlend Egeberg Aasland [Thu, 3 Jun 2021 16:38:09 +0000 (18:38 +0200)]
[3.10] bpo-42972: Track sqlite3 statement objects (GH-26475) (GH-26515)
Allocate and track statement objects in pysqlite_statement_create.
By allocating and tracking creation of statement object in
pysqlite_statement_create(), the caller does not need to worry about GC
syncronization, and eliminates the possibility of getting a badly
created object. All related fault handling is moved to
pysqlite_statement_create().
Co-authored-by: Victor Stinner <vstinner@python.org>.
(cherry picked from commit
fffa0f92adaaed0bcb3907d982506f78925e9052 )
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
Miss Islington (bot) [Thu, 3 Jun 2021 04:05:41 +0000 (21:05 -0700)]
Add bpo-42914 to What's New (GH-25124)
BPO-42914 was not added to the What's New in GH-24864. This includes it in the "Improved Modules" section.
Automerge-Triggered-By: GH:gpshead
(cherry picked from commit
4846ea95d1a121df5e8081e2a290f63d1419cad8 )
Co-authored-by: Wm. Keith van der Meulen <keith@wkeithvan.com>
Miss Islington (bot) [Thu, 3 Jun 2021 04:04:20 +0000 (21:04 -0700)]
bpo-44022: Improve the regression test. (GH-26503)
It wasn't actually detecting the regression due to the
assertion being too lenient.
(cherry picked from commit
e60ab843cbb016fb6ff8b4f418641ac05a9b2fcc )
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Miss Islington (bot) [Thu, 3 Jun 2021 00:14:41 +0000 (17:14 -0700)]
bpo-44282: Fix occasional test_incremental_editing failures on buildbots (GH-26491) (GH-26499)
Signed-off-by: Tal Einat <532281+taleinat@users.noreply.github.com>
(cherry picked from commit
adef445dc34685648bd0ea1c125df2ef143912ed )
Co-authored-by: Tal Einat <532281+taleinat@users.noreply.github.com>
Miss Islington (bot) [Wed, 2 Jun 2021 23:50:38 +0000 (16:50 -0700)]
bpo-44285: getpath.c: Assert that env_file is NULL during an error check (GH-26486)
This was flagged by a static analyzer, but the logic of why this is NULL on error is hard to follow for humans as well.
(cherry picked from commit
bdb56902a3bfe12b10f85a941d5dd0eae739f1a8 )
Co-authored-by: stratakis <cstratak@redhat.com>
Miss Islington (bot) [Wed, 2 Jun 2021 23:48:40 +0000 (16:48 -0700)]
bpo-43921: Fix test_ssl.test_pha_required_nocert() (GH-26489)
Fix test_pha_required_nocert() of test_ssl: catch two more EOF cases
(when the recv() method returns an empty string).
(cherry picked from commit
320eaa7f42b413cd5e5436ec92d4dc5ba150395f )
Co-authored-by: Victor Stinner <vstinner@python.org>
Irit Katriel [Tue, 1 Jun 2021 21:58:06 +0000 (22:58 +0100)]
[3.10] bpo-44279: [doc] reword contextlib.suppress documentation (GH-26428) (GH-26480)
(cherry picked from commit
87272b70f157af76cb14ff90d73dfc5d9bfb945a )
Co-authored-by: MapleCCC <littlelittlemaple@gmail.com>
Miss Islington (bot) [Mon, 31 May 2021 22:29:08 +0000 (15:29 -0700)]
bpo-44246: Remove note about access by index now that a compatibility shim is offered. (GH-26472) (#26473)
(cherry picked from commit
78d9a9b1904f0e1d9db1e941c19782f4f5a881d4 )
Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
Miss Islington (bot) [Mon, 31 May 2021 16:41:55 +0000 (09:41 -0700)]
[3.10] bpo-44246: Restore compatibility in entry_points (GH-26468) (GH-26471)
* [bpo-44246](): Entry points performance improvements.
From importlib_metadata 4.3.1.
* [bpo-44246](): Sync with importlib_metadata 4.4
(cherry picked from commit
c34ed08d975fb7daa7b329f7c631647782290393 )
Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
Automerge-Triggered-By: GH:jaraco
Miss Islington (bot) [Mon, 31 May 2021 16:12:32 +0000 (09:12 -0700)]
bpo-44246: Entry points performance improvements. (GH-26467)
From importlib_metadata 4.3.1.
(cherry picked from commit
410b70d39d9d77384f8b8597560f6731530149ca )
Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
Pablo Galindo [Mon, 31 May 2021 11:58:35 +0000 (12:58 +0100)]
Post 3.10.0b2
Pablo Galindo [Mon, 31 May 2021 11:29:21 +0000 (12:29 +0100)]
Python 3.10.0b2
Miss Islington (bot) [Mon, 31 May 2021 11:25:47 +0000 (04:25 -0700)]
bpo-44263: Fix _decimal and _testcapi GC protocol (GH-26464) (GH-26465)
* _testcapi.heapgctype: implement a traverse function since the type
is defined with Py_TPFLAGS_HAVE_GC.
* _decimal: PyDecSignalDictMixin_Type is no longer defined with
Py_TPFLAGS_HAVE_GC since it has no traverse function.
(cherry picked from commit
142e5c5445c019542246d93fe2f9e195d3131686 )
Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Victor Stinner <vstinner@python.org>
Miss Islington (bot) [Mon, 31 May 2021 11:23:13 +0000 (04:23 -0700)]
bpo-42972: Fully implement GC protocol for xxlimited (GH-26451) (GH-26460)
(cherry picked from commit
4b20f2574d412f4c4a5b1ab799d8e71a5dd3b766 )
Co-authored-by: Hai Shi <shihai1992@gmail.com>
Co-authored-by: Hai Shi <shihai1992@gmail.com>
Miss Islington (bot) [Mon, 31 May 2021 09:12:27 +0000 (02:12 -0700)]
bpo-42972: Fix sqlite3 traverse/clear functions (GH-26452) (GH-26461)
(cherry picked from commit
d1124b09e8251061dc040cbd396f35ae57783f4a )
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
Miss Islington (bot) [Sat, 29 May 2021 20:38:00 +0000 (13:38 -0700)]
bpo-42085: [docs] Add versionadded for am_send in type object documentation (GH-25465) (GH-26453)
(cherry picked from commit
0b11c429c7f1721d9ffb9ae19e3e8e2e7bd6444d )
Co-authored-by: Martmists <mail@martmists.com>
Miss Islington (bot) [Sat, 29 May 2021 17:49:16 +0000 (10:49 -0700)]
bpo-44263: Mention PyType_Ready in the gc protocol warning (GH-26445) (#26446)
(cherry picked from commit
43cf7c864a2941b3f8f823e5928721dd286b7778 )
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Miss Islington (bot) [Sat, 29 May 2021 07:34:57 +0000 (00:34 -0700)]
bpo-44254: On Mac, remove disfunctional colors from turtledemo buttons (GH-26448)
On macOS, tk defers to system setting for button background when in normal state.
Give turtledemo button text a color that works on either light or dark background.
(cherry picked from commit
af5a324843de395cecc562cb0c757b3768f2077f )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Sat, 29 May 2021 03:21:26 +0000 (20:21 -0700)]
bpo-44263: Better explain the GC contract for PyType_FromSpecWithBases (GH-26442) (GH-26443)
(cherry picked from commit
8b55bc3f93a655bc803bff79725d5fe3f124e2f0 )
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Miss Islington (bot) [Sat, 29 May 2021 01:07:27 +0000 (18:07 -0700)]
Fix dataclass comment typo _eq__ -> __eq__ (GH-26433) (GH-26436)
(cherry picked from commit
7e6f2375698036d62464c238059ef2073755fdaf )
Co-authored-by: Sean Grady <vedicmonk@gmail.com>
Co-authored-by: Sean Grady <vedicmonk@gmail.com>
Miss Islington (bot) [Fri, 28 May 2021 23:47:36 +0000 (16:47 -0700)]
bpo-44252: Correctly implement gc support for SSLError objects (GH-26439) (GH-26441)
(cherry picked from commit
8b4312b909abff3100c1f18fb3efa5c25617fee3 )
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Miss Islington (bot) [Fri, 28 May 2021 20:03:10 +0000 (13:03 -0700)]
bpo-44249: Fix 3 README.rst typos (GH-26385)
(cherry picked from commit
acac6c71ff370413374c6aca1df808c426e8a30c )
Co-authored-by: Ayush Parikh <ayushparikh332@gmail.com>
Ken Jin [Fri, 28 May 2021 17:47:15 +0000 (01:47 +0800)]
[3.10] bpo-42972: Fully support GC for _winapi.Overlapped (GH-26381) (#26430)
* bpo-42972: Fully support GC for _winapi.Overlapped (GH-26381)
* untrack earlier
Miss Islington (bot) [Fri, 28 May 2021 14:26:07 +0000 (07:26 -0700)]
bpo-42972: Fully implement GC protocol for functools LRU cache (GH-26423)
(cherry picked from commit
3f8d33252722750e6c019d3df7ce0fabf7bdd45e )
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
Miss Islington (bot) [Fri, 28 May 2021 09:08:01 +0000 (02:08 -0700)]
bpo-42972: Fully implement GC protocol for functools keywrapper and partial types (GH-26363) (GH-26424)
(cherry picked from commit
8994e9c2cd775ddf7b0723824da53fe0d7c039ac )
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
Miss Islington (bot) [Fri, 28 May 2021 07:10:45 +0000 (00:10 -0700)]
bpo-44256: Do not expose _functools._list_elem_type (GH-26416)
It is internal use only type.
(cherry picked from commit
28be3191a9db2769ed05e55c6bcbccdd029656dd )
Co-authored-by: Inada Naoki <songofacandy@gmail.com>