]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
Miss Islington (bot) [Wed, 27 Jul 2022 05:49:29 +0000 (22:49 -0700)]
gh-94635: Add sqlite3 'Introduction' and 'Tutorial' doc headings (GH-95269)
(cherry picked from commit
2e35a13e46663acf665da06267c54e66c7ecf18d )
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
Miss Islington (bot) [Tue, 26 Jul 2022 19:40:59 +0000 (12:40 -0700)]
gh-95291: Use import helper to improve sqlite3 audit tests (GH-95292)
Now the tests are correctly reported as skipped if sqlite3 is not available.
(cherry picked from commit
152eb90311fdf294510b5d077332580ba18c0ee4 )
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
Miss Islington (bot) [Tue, 26 Jul 2022 11:56:04 +0000 (04:56 -0700)]
gh-95041: Fail syslog.syslog in case inner call to syslog.openlog fails (GH-95264)
(cherry picked from commit
b1f648efc56ff17e18ec2b7402d59a771b305004 )
Co-authored-by: Noam Cohen <noam@noam.me>
Erlend Egeberg Aasland [Tue, 26 Jul 2022 08:12:50 +0000 (10:12 +0200)]
[3.10] gh-95235: Add explicit parameter list to some sqlite3 methods (GH-95240) (#95268)
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>.
(cherry picked from commit
5012bedc7ca7d78b5a42bf60eef55bac263f4060 )
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
Miss Islington (bot) [Tue, 26 Jul 2022 06:35:25 +0000 (23:35 -0700)]
gh-95041: Fix several minor issues in syslog.openlog() (GH-95058)
* syslog_get_argv() swallows exceptions, but not in all cases.
* if ident is non UTF-8 encodable, syslog.openlog() fails after setting the
global reference to ident. Now the C string saved internally in the previous
call to openlog() points to the freed memory.
* PySys_Audit() can crash if ident is NULL.
* There may be a race condition with syslog.syslog(), because the global
reference to ident is decrefed before setting the new value.
* Possible use of freed memory if syslog.openlog() is called while
the GIL is released in syslog.syslog().
(cherry picked from commit
68c555a50a2b74731b0db0f4dcbf51b2c11d4853 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Mon, 25 Jul 2022 16:55:46 +0000 (09:55 -0700)]
gh-95235: Document undocumented parameters in sqlite3 functions and methods (GH-95236)
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
(cherry picked from commit
ac6a94c669cba8c8384a61b4304c87cc83728335 )
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
Miss Islington (bot) [Mon, 25 Jul 2022 06:39:00 +0000 (23:39 -0700)]
gh-95087: Fix IndexError in parsing invalid date in the email module (GH-95201)
Co-authored-by: wouter bolsterlee <wouter@bolsterl.ee>
(cherry picked from commit
ea5ed0ba51c10cfdde7651a475438551964dfdfc )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Mon, 25 Jul 2022 05:11:41 +0000 (22:11 -0700)]
gh-95212: make multiprocessing test case parallel-safe (GH-95213)
(cherry picked from commit
5956de16cd00e7e1cf5cbf3d7b4a930eaa928321 )
Co-authored-by: Christian Heimes <christian@python.org>
Miss Islington (bot) [Sun, 24 Jul 2022 11:43:05 +0000 (04:43 -0700)]
gh-95199: upgrade bundled setuptools to 63.2.0 (gh-95200)
(cherry picked from commit
3c94d3395edbcd299cbdacd09660ed88e654eeef )
Co-authored-by: Stéphane Bidoul <stephane.bidoul@gmail.com>
Miss Islington (bot) [Sun, 24 Jul 2022 10:18:33 +0000 (03:18 -0700)]
gh-95194: upgrade bundled pip to 22.2 (gh-95195)
upgrade bundled pip to 22.2
(cherry picked from commit
068ffafa5465e9388a940692d1720266a1b37257 )
Co-authored-by: Stéphane Bidoul <stephane.bidoul@gmail.com>
Miss Islington (bot) [Sun, 24 Jul 2022 03:02:40 +0000 (20:02 -0700)]
gh-93157: Fix fileinput didn't support `errors` in `inplace` mode (GH-95128)
(cherry picked from commit
5c7f3bcdafedd60a385e8ca5403bc6b0b7a862b3 )
Co-authored-by: Inada Naoki <songofacandy@gmail.com>
Miss Islington (bot) [Sat, 23 Jul 2022 10:28:15 +0000 (03:28 -0700)]
Doc: Add omitted secondary prompt in inputoutput tutorial (GH-30317) (#95159)
For the continuation lines, "..." should present as secondary prompt
(cherry picked from commit
de28ee8f755760fda13b481a34b1f326984d293a )
Co-authored-by: Chenwei Xiao <chanvinxiao@163.com>
Co-authored-by: Chenwei Xiao <chanvinxiao@163.com>
Miss Islington (bot) [Fri, 22 Jul 2022 20:21:07 +0000 (13:21 -0700)]
Fix copy-friendliness of tutorial example (GH-93424)
(cherry picked from commit
34d11f1b0c0e1936a37581e0fb0daec637afca47 )
Co-authored-by: Chenwei Xiao <chanvinxiao@163.com>
Miss Islington (bot) [Fri, 22 Jul 2022 17:11:25 +0000 (10:11 -0700)]
Fix async method reference links in `compound_stmts` docs (GH-94935)
(cherry picked from commit
79d2f549adcbbefd4f2c0a0c9dd572bbbf252c62 )
Co-authored-by: July Tikhonov <july.tikh@gmail.com>
Miss Islington (bot) [Fri, 22 Jul 2022 16:45:58 +0000 (09:45 -0700)]
Closes gh-95133: docs, fix indentation level in TestCase.assertLogs example (GH-95134)
(cherry picked from commit
2a9c227ac11f7d8fc6d756542dd3410be0a6b6b0 )
Co-authored-by: Alexandru Mărășteanu <alexei@users.noreply.github.com>
Miss Islington (bot) [Fri, 22 Jul 2022 07:41:56 +0000 (00:41 -0700)]
gh-81040: Improve sqlite3.Cursor.rowcount docs (GH-94940)
(cherry picked from commit
f9b3706df65c4962646587b437a4eb39289dfd4c )
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
Miss Islington (bot) [Fri, 22 Jul 2022 00:08:47 +0000 (17:08 -0700)]
gh-95112: Fix What's New 3.10 contribution note periods (GH-95114)
Some are missing, a few placed after the ')'.
One ') was missing.
(cherry picked from commit
c944649ffc06f155acea8454f9449fdccad0a74e )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Thu, 21 Jul 2022 19:10:53 +0000 (12:10 -0700)]
gh-95095: Use SSL_CTX_get_max_proto_version instead of SSL_CTX_ctrl (GH-95096)
The wrapper macros are more readable and match the form recommended in
the OpenSSL documentation. They also slightly less error-prone, as the
mapping of arguments to SSL_CTX_ctrl is not always clear. (Though in
this case it's straightforward.)
https://www.openssl.org/docs/man1.1.1/man3/SSL_CTX_get_max_proto_version.html
(cherry picked from commit
936f71e5d4f50f2238b0320d44f7fb5f88e39809 )
Co-authored-by: David Benjamin <davidben@davidben.net>
Miss Islington (bot) [Thu, 21 Jul 2022 00:10:32 +0000 (17:10 -0700)]
GH-95029: Describe Windows Store package isolation and redirection in more detail (GH-95030)
(cherry picked from commit
b1924b10069fb797845284552fb9da931b1ffdb9 )
Co-authored-by: Anthony Shaw <anthony.p.shaw@gmail.com>
Miss Islington (bot) [Wed, 20 Jul 2022 16:24:33 +0000 (09:24 -0700)]
gh-94844: Add pathlib support to shutil archive management (GH-94846)
Co-authored-by: Barney Gale <barney.gale@gmail.com>
(cherry picked from commit
ed4441567ec480d1e4d8f982bd1f7347e4d03c42 )
Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
Terry Jan Reedy [Wed, 20 Jul 2022 08:16:42 +0000 (04:16 -0400)]
[3.10] gh-90654: Update maintenance NEWS header (#94355)
Miss Islington (bot) [Wed, 20 Jul 2022 07:42:36 +0000 (00:42 -0700)]
gh-90654: Add item missing from idlelib/NEWS.txt (GH-95038)
(cherry picked from commit
acb105a7c1f435f93fee08e292ee12438f716abd )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Tue, 19 Jul 2022 18:57:59 +0000 (11:57 -0700)]
[3.10] gh-94930: skipitem() in getargs.c should return non-NULL on error (GH-94931) (GH-94963)
(cherry picked from commit
067f0da33506f70c36a67d5f3d8d011c8dae10c9 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Erlend Egeberg Aasland [Tue, 19 Jul 2022 18:26:38 +0000 (20:26 +0200)]
[3.10] gh-94998: Remove incorrectly backported Lib/test/test_sqlite3 directory (#95016)
Miss Islington (bot) [Tue, 19 Jul 2022 17:04:47 +0000 (10:04 -0700)]
GH-91153: Handle mutating __index__ methods in bytearray item assignment (GH-94891)
(cherry picked from commit
f36589510b8708fa224d799d5b328deab558aa4e )
Co-authored-by: Brandt Bucher <brandtbucher@microsoft.com>
Shantanu [Tue, 19 Jul 2022 06:24:48 +0000 (23:24 -0700)]
[3.10] gh-94949: Disallow parsing parenthesised ctx mgr with old feature_version (GH-94950) (#94990)
(cherry picked from commit
0daba822212cd5d6c63384a27f390f0945330c2b )
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Miss Islington (bot) [Tue, 19 Jul 2022 02:38:05 +0000 (19:38 -0700)]
test_concurrent_futures: Fix unneeded/confusing format call (GH-93119)
Added in
339fd46cb764277cbbdc3e78dcc5b45b156bb6ae - but as noted in a comment, the test only tests ThreadPoolExecutor.
(cherry picked from commit
3f2dd0a7c0b1a5112f2164dce78fcfaa0c4b39c7 )
Co-authored-by: Florian Bruhin <me@the-compiler.org>
Shantanu [Mon, 18 Jul 2022 19:43:23 +0000 (12:43 -0700)]
[3.10] gh-94947: Disallow parsing walrus with feature_version < (3, 8) (GH-94948) (#94969)
* gh-94947: Disallow parsing walrus with feature_version < (3, 8)
* oops, commit the parser
* 📜🤖 Added by blurb_it.
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>.
(cherry picked from commit
ae0be5a53bb4caee3de4888341addd9c94133f2d )
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Miss Islington (bot) [Mon, 18 Jul 2022 17:33:47 +0000 (10:33 -0700)]
Fix incorrect double indent in ast doc (GH-94976)
Warning directive indent was 4 rather than 3 spaces.
(cherry picked from commit
a25a803c4c452c70da11be3e80004b47646bff4c )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Mon, 18 Jul 2022 16:45:09 +0000 (09:45 -0700)]
In ast doc, update 'below' to 'above' (GH-94967)
The included asdl file was moved from 'below' to 'above' in 3.9.
(cherry picked from commit
7b617be4ab6df871cfa9d2127908cb1373578dc0 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Sun, 17 Jul 2022 15:39:30 +0000 (08:39 -0700)]
gh-94821: Fix autobind of empty unix domain address (GH-94826)
When binding a unix socket to an empty address on Linux, the socket is
automatically bound to an available address in the abstract namespace.
>>> s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
>>> s.bind("")
>>> s.getsockname()
b'\x0075499'
Since python 3.9, the socket is bound to the one address:
>>> s.getsockname()
b'\x00'
And trying to bind multiple sockets will fail with:
Traceback (most recent call last):
File "/home/nsoffer/src/cpython/Lib/test/test_socket.py", line 5553, in testAutobind
s2.bind("")
OSError: [Errno 98] Address already in use
Added 2 tests:
- Auto binding empty address on Linux
- Failing to bind an empty address on other platforms
Fixes
f6b3a07b7df6 (bpo-44493: Add missing terminated NUL in sockaddr_un's length (GH-26866)
(cherry picked from commit
c22f134211743cd5ad14cec1dd4f527bee542b4c )
Co-authored-by: Nir Soffer <nsoffer@redhat.com>
Miss Islington (bot) [Sun, 17 Jul 2022 05:46:43 +0000 (22:46 -0700)]
gh-94864: Fix PyArg_Parse* with deprecated format units "u" and "Z" (GH-94902)
It returned 1 (success) when warnings are turned into exceptions.
(cherry picked from commit
107c21c5d56682320b38c01b5575c1604a429239 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Sat, 16 Jul 2022 21:06:33 +0000 (14:06 -0700)]
gh-94869: Fix the location in some expressions for multi-line f-string ast nodes (GH-94895) (#94911)
(cherry picked from commit
2e9da8e3522764d09f1d6054a2be567e91a30812 )
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Miss Islington (bot) [Sat, 16 Jul 2022 17:07:39 +0000 (10:07 -0700)]
gh-90844: Allow virtual environments to correctly launch when they have spaces in the path (GH-94903)
(cherry picked from commit
4b4439daed3992a5c5a83b86596d6e00ac3c1203 )
Co-authored-by: Steve Dower <steve.dower@python.org>
Miss Islington (bot) [Fri, 15 Jul 2022 22:16:45 +0000 (15:16 -0700)]
Add additional pointers to pathlib's mapping to os.path functions (GH-94828)
* Add additional pointers to pathlib's mapping to os.path functions
os.path.splitext has a somewhat quirky signature since it mixes the path and filename components but I wanted the documentation to mention `PurePath.stem` as the natural counterpart to `PurePath.suffix` for the common use of `os.path.splitext` to turn "file.py" into "file" and "py".
Technically this could have some discussion of how to handle the parent directory hierarchy but that seems a bit out of keeping with the spirit of this table so I omitted mentioning `PurePath.parents` here.
* Update Doc/library/pathlib.rst
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
(cherry picked from commit
3789c635772fbdeb5d0fc32aa811fd6b1d935a60 )
Co-authored-by: Chris Adams <chris@improbable.org>
Miss Islington (bot) [Fri, 15 Jul 2022 07:18:30 +0000 (00:18 -0700)]
[3.10] [doc] Update cookbook example and add information about queue types. (GH-94854) (GH-94872)
(cherry picked from commit
dc54193095e8ac8d73489f7ab133e016a5556256 )
Neil Schemenauer [Fri, 15 Jul 2022 00:26:40 +0000 (17:26 -0700)]
[3.10] gh-94841: Ensure arena_map_get() is inlined in PyObject_Free() (GH-94842)
Need to define ALWAYS_INLINE macro for 3.10.
Co-authored-by: neonene <53406459+neonene@users.noreply.github.com>
Miss Islington (bot) [Thu, 14 Jul 2022 21:58:14 +0000 (14:58 -0700)]
Docs: fix typo in sqlite3.rst (GH-94798)
Colum -> Column
(cherry picked from commit
9ea72e9d8d9c7ff7c0cec4bacf6071ff4f1f6238 )
Co-authored-by: Ikko Ashimine <eltociear@gmail.com>
Miss Islington (bot) [Thu, 14 Jul 2022 01:27:20 +0000 (18:27 -0700)]
idlelib: replace 'while 1' with 'while True' (GH-94827)
(cherry picked from commit
6a15f918b5a6fb5113d5332ebf27df1d5360e66c )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Thu, 14 Jul 2022 00:51:03 +0000 (17:51 -0700)]
gh-90359: Unify documentation style for datetime.rst (gh-94836)
(cherry picked from commit
967da5febbc77b36a5b14863e61db3a2d441a940 )
Co-authored-by: Dong-hee Na <donghee.na@python.org>
Miss Islington (bot) [Thu, 14 Jul 2022 00:16:44 +0000 (17:16 -0700)]
gh-90359: Update documentation to follow PEP 495. (gh-94800)
(cherry picked from commit
07374cce52abb7fd39729dc1b646ca3029b64c64 )
Co-authored-by: Dong-hee Na <donghee.na@python.org>
Miss Islington (bot) [Wed, 13 Jul 2022 16:39:56 +0000 (09:39 -0700)]
gh-90815: Fix test_embed for Windows PGO build with mimalloc (GH-94790)
Fixes the failure of PGO building with `mimalloc` on Windows, ensuring that `test_bpo20891` does not break profiling data (`python31*.pgc`).
(cherry picked from commit
4a6bb30eb600e3b18f4a84c1be922c07758c613f )
Co-authored-by: neonene <53406459+neonene@users.noreply.github.com>
Miss Islington (bot) [Mon, 11 Jul 2022 16:14:57 +0000 (09:14 -0700)]
[3.10] GH-94736: mark SemLock test as linux only (GH-94750) (#94753)
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Miss Islington (bot) [Mon, 11 Jul 2022 14:38:27 +0000 (07:38 -0700)]
bpo-45924: Fix asyncio incorrect traceback when future's exception is raised multiple times (GH-30274) (#94748)
(cherry picked from commit
86c1df18727568758cc329baddc1836e45664023 )
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Miss Islington (bot) [Mon, 11 Jul 2022 12:39:09 +0000 (05:39 -0700)]
GH-94736: Fix _multiprocessing.SemLock subclassing (GH-94738)
* fix allocator and deallocator
* 📜🤖 Added by blurb_it.
* code review
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
(cherry picked from commit
f5b76330cfb93e1ad1a77c71dafe719f6a808cec )
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Mark Shannon [Mon, 11 Jul 2022 12:21:17 +0000 (13:21 +0100)]
[3.10] GH-94329: Don't raise on excessive stack consumption (GH-94421) (#94448)
Miss Islington (bot) [Sun, 10 Jul 2022 17:36:01 +0000 (10:36 -0700)]
GH-77265: Document NaN handling in statistics functions that sort or count (GH-94676) (#94725)
Miss Islington (bot) [Sat, 9 Jul 2022 16:35:54 +0000 (09:35 -0700)]
gh-94637: Release GIL in SSLContext.set_default_verify_paths (GH-94658)
(cherry picked from commit
78307c7dc2352b6633138466debd4c10fae32970 )
Co-authored-by: Christian Heimes <christian@python.org>
Miss Islington (bot) [Fri, 8 Jul 2022 14:50:56 +0000 (07:50 -0700)]
Use mdash-es consistently in the library docs index (GH-92762)
(cherry picked from commit
efb20a97c491821acb03564f526afaf9eed47eef )
Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
Erlend Egeberg Aasland [Fri, 8 Jul 2022 00:50:12 +0000 (02:50 +0200)]
[3.10] gh-94622: Add more references to the sqlite3 types anchor (GH-94623). (#94679)
(cherry picked from commit
e5b841a4037d1c2ce3d12a584facf800ae36332a )
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
Erlend Egeberg Aasland [Thu, 7 Jul 2022 23:44:09 +0000 (01:44 +0200)]
[3.10] gh-94321: Document sqlite3.PrepareProtocol (GH-94620) (#94671)
(cherry picked from commit
fb6dccae348b954d9f625031b54711a9a33da525 )
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
Guy Yagev [Thu, 7 Jul 2022 21:31:39 +0000 (00:31 +0300)]
gh-92743: Remove copyright sign next to "Raymond Hettinger" (#94665)
Closes GH-92743
Miss Islington (bot) [Thu, 7 Jul 2022 11:41:06 +0000 (04:41 -0700)]
GH-94644: fix test_curses ref leak (GH-94647)
(cherry picked from commit
277f55cb04409ccdf651d43df5eb9dcb3ee3128c )
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Erlend Egeberg Aasland [Thu, 7 Jul 2022 11:26:21 +0000 (13:26 +0200)]
[3.10] gh-94430: Allow params named `module` or `self` with custom C names in AC (GH-94431) (#94650)
(cherry picked from commit
8bbd70b4d130f060f87e3f53810dc747a49fa369 )
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
Erlend Egeberg Aasland [Thu, 7 Jul 2022 08:46:29 +0000 (10:46 +0200)]
[3.10] gh-94628: Add explicit parameter list to sqlite3.connect docs (GH-94629) (#94646)
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>.
(cherry picked from commit
3eb2b9634fdc6826a558fa5aa820dc6e69b7800e )
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
Miss Islington (bot) [Wed, 6 Jul 2022 23:21:05 +0000 (16:21 -0700)]
gh-94630: Update sqlite3 docs with positional-only and keyword-only symbols (GH-94631)
(cherry picked from commit
94988603f3c934f95220f09aefffd50c0a5d3367 )
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
Miss Islington (bot) [Wed, 6 Jul 2022 21:07:36 +0000 (14:07 -0700)]
gh-94017: Improve clarity of sqlite3 transaction handling docs (GH-94320)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
(cherry picked from commit
760b8cf0c887fbc5191611a7e7d4b8c0c4f15edc )
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
Pablo Galindo Salgado [Tue, 5 Jul 2022 18:52:33 +0000 (19:52 +0100)]
[3.10] gh-94510: Raise on re-entrant calls to sys.setprofile and syssettrace (GH-94511) (#94579)
Co-authored-by: Łukasz Langa <lukasz@langa.pl>.
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Łukasz Langa [Tue, 5 Jul 2022 18:45:02 +0000 (20:45 +0200)]
[3.10] gh-91330: Tests and docs for dataclass descriptor-typed fields (GH-94424) (GH-94577)
Co-authored-by: Erik De Bonte <erikd@microsoft.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit
5f319308a820f49fec66fc3ade50bbaa9fe2105d )
Pablo Galindo Salgado [Tue, 5 Jul 2022 18:14:28 +0000 (19:14 +0100)]
[3.10] gh-94360: Fix a tokenizer crash when reading encoded files with syntax errors from stdin (GH-94386) (GH-94574)
Signed-off-by: Pablo Galindo <pablogsal@gmail.com>
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit
36fcde61ba48c4e918830691ecf4092e4e3b9b99 )
Miss Islington (bot) [Tue, 5 Jul 2022 15:58:28 +0000 (08:58 -0700)]
gh-90355: Add isolated flag if currently isolated (GH-92857) (GH-94569)
Co-authored-by: Carter Dodd <carter.dodd@gmail.com>
Co-authored-by: Éric <merwok@netwok.org>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit
c8556bcf6c0b05ac46bd74880626a2853e7c99a1 )
Vinay Sajip [Tue, 5 Jul 2022 15:04:29 +0000 (16:04 +0100)]
[3.10] bpo-46755: Don't log stack info twice in QueueHandler (GH-31355) (GH-94565)
Co-authored-by: Erik Montnemery <erik@montnemery.com>
Miss Islington (bot) [Tue, 5 Jul 2022 12:33:23 +0000 (05:33 -0700)]
gh-94538: Fix Argument Clinic output to custom file (GH-94539) (GH-94556)
(cherry picked from commit
2b8ed4d3d4741811da31fc774a202d535755c0a9 )
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
Łukasz Langa [Tue, 5 Jul 2022 12:30:37 +0000 (14:30 +0200)]
[3.10] Docs: remove redundant "adverb-adjective" hyphens from compound modifiers (GH-94551) (GH-94558)
Discussion: https://discuss.python.org/t/slight-grammar-fix-throughout-adverbs-dont-need-hyphen/17021
(cherry picked from commit
3440d197a55800ecceea3e115e44b4262411359c )
Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
Miss Islington (bot) [Tue, 5 Jul 2022 12:24:25 +0000 (05:24 -0700)]
gh-84753: Clarify change made to `inspect` functions (GH-94554) (GH-94559)
(cherry picked from commit
a2a3f2c541290fc8f0720d1abdc12d564b856c28 )
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Vinay Sajip [Mon, 4 Jul 2022 08:10:13 +0000 (09:10 +0100)]
[3.10] Update logging documentation: change cross-reference and add webapp r… (GH-94542)
Miss Islington (bot) [Sun, 3 Jul 2022 17:39:20 +0000 (10:39 -0700)]
IDLE doc: Tweek RESTART and Windows console start (GH-94530)
(cherry picked from commit
39c29f753e6d6f390dce5a36613c1e03f43d28ea )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Fri, 1 Jul 2022 16:41:40 +0000 (09:41 -0700)]
gh-81054: Document that SimpleHTTPRequestHandler follows symbolic links (GH-94416) (GH-94493)
(cherry picked from commit
80aaeabb8bd1e6b49598a7e23e0f8d99b3fcecaf )
Co-authored-by: Sam Ezeh <sam.z.ezeh@gmail.com>
Miss Islington (bot) [Fri, 1 Jul 2022 16:22:28 +0000 (09:22 -0700)]
gh-75372: Specify major version in README for installation (GH-92759) (GH-94488)
(cherry picked from commit
3abda7a38a2a6803d4dbf70c6ae097ad5b59c58d )
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
Miss Islington (bot) [Fri, 1 Jul 2022 16:15:06 +0000 (09:15 -0700)]
Update code sample when importing modules in queue doc (GH-94244) (GH-94491)
In the queue documentation, the code snippet shows the import to be not PEP 8 compliant.
Since people typically copy-paste from such code samples, I think it's important to show best-practices here.
(cherry picked from commit
ad55147c1d5dbfc23d2ec4554f5e82c18984158c )
Co-authored-by: Mariatta Wijaya <Mariatta@users.noreply.github.com>
Jason R. Coombs [Fri, 1 Jul 2022 15:34:11 +0000 (11:34 -0400)]
[3.10] gh-93975: Provide nicer error reporting from subprocesses in test_venv.EnsurePipTest.test_with_pip (GH-93959) (GH-94004)
This change does three things:
1. Extract a function for trapping output in subprocesses.
2. Emit both stdout and stderr when encountering an error.
3. Apply the change to `ensurepip._uninstall` check.
(cherry picked from commit
6066f450b91f1cbebf33a245c14e660052ccd90a )
Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
Miss Islington (bot) [Thu, 30 Jun 2022 18:22:58 +0000 (11:22 -0700)]
multiprocessing.spawn doc: Capitalize the p in "Python" (gh-94462)
(cherry picked from commit
62bb7a3b50150495e215d7bd32f633eef81b3bc2 )
Co-authored-by: Mariatta Wijaya <Mariatta@users.noreply.github.com>
Miss Islington (bot) [Thu, 30 Jun 2022 18:02:15 +0000 (11:02 -0700)]
gh-84753: Make inspect.iscoroutinefunction() work with AsyncMock (GH-94050) (GH-94461)
The inspect version was not working with unittest.mock.AsyncMock.
The fix introduces special-casing of AsyncMock in
`inspect.iscoroutinefunction` equivalent to the one
performed in `asyncio.iscoroutinefunction`.
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit
4261b6bffc0b8bb5c6d4d80578a81b7520f4aefc )
Co-authored-by: Mehdi ABAAKOUK <sileht@sileht.net>
Miss Islington (bot) [Thu, 30 Jun 2022 17:16:06 +0000 (10:16 -0700)]
xml.dom.minidom docs: fix typo (GH-93437)
(cherry picked from commit
639e35108bc8b2b880225862d3571277ad57648b )
Co-authored-by: Jean-Christophe Helary <jean.christophe.helary@traduction-libre.org>
Irit Katriel [Thu, 30 Jun 2022 15:40:37 +0000 (16:40 +0100)]
gh-94332: make it safe to call assemble_free when assemble_init has not been called (GH-94389) (GH-94443)
(cherry picked from commit
be82d26570343dafc8a89be5a1a0e2f58d51a904 )
Miss Islington (bot) [Thu, 30 Jun 2022 15:39:48 +0000 (08:39 -0700)]
gh-89038: [doc] update dis.findlinestarts documentation for changes related to PEP-626 (GH-94247) (GH-94449)
(cherry picked from commit
d68f2d27bbf85f3573a08fc7554889e1733a30f0 )
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Miss Islington (bot) [Thu, 30 Jun 2022 09:48:13 +0000 (02:48 -0700)]
[3.10] GH-77403: Fix tests which fail when PYTHONUSERBASE is not normalized (GH-93917) (GH-93970)
(cherry picked from commit
b1ae4af5e82e7275cebcfb383690b816a388a785 )
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Automerge-Triggered-By: GH:iritkatriel
Miss Islington (bot) [Thu, 30 Jun 2022 09:46:27 +0000 (02:46 -0700)]
gh-92336: linecache.getline should not raise exceptions on decoding errors (GH-94410)
(cherry picked from commit
21cbdae90ffdac047d27d1b83a5442fabcf89f7c )
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Miss Islington (bot) [Wed, 29 Jun 2022 20:54:44 +0000 (13:54 -0700)]
[3.10] bpo-92336: [doc] clarify that the dfile is read by the traceback display code (GH-94409) (GH-94429)
(cherry picked from commit
68fb03249f3b17146db42b00a75718b823a2280c )
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Automerge-Triggered-By: GH:iritkatriel
Miss Islington (bot) [Wed, 29 Jun 2022 17:22:22 +0000 (10:22 -0700)]
Docs: Update SyntaxError message in REPL example for list comprehension (GH-93901) (GH-94426)
(cherry picked from commit
22b783aba05bcc3a21af9e5ae308ffbb98ff6a12 )
Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
Kumar Aditya [Tue, 28 Jun 2022 16:14:47 +0000 (21:44 +0530)]
[3.10] GH-89988: Fix memory leak in pickle.Pickler dispatch_table lookup (GH-94298) (#94385)
Miss Islington (bot) [Tue, 28 Jun 2022 14:10:04 +0000 (07:10 -0700)]
[3.11] Backport ABI regeneration script (GH-94376)
(cherry picked from commit
648469299d9102bcc165baace67c6758e244eec1 )
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Miss Islington (bot) [Tue, 28 Jun 2022 10:50:58 +0000 (03:50 -0700)]
[3.10] gh-82006: IDLE doc improvements (GH-94349) (GH-94358)
0. Update text start and stop conditions.
1. Title-case sections but not subsections.
2. Edit Shell Window sections: title, execute, restart.
(cherry picked from commit
e6391e08bff775a3c10707fd2cfce6963e6ae429 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Miss Islington (bot) [Tue, 28 Jun 2022 10:30:09 +0000 (03:30 -0700)]
gh-61585: Clarify import scope in modules tutorial (GH-93455) (GH-94374)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
(cherry picked from commit
4b854b746650214eddadb2440efd9e1544d08ccb )
Miss Islington (bot) [Tue, 28 Jun 2022 09:43:14 +0000 (02:43 -0700)]
gh-92841: Fix asyncio's RuntimeError: Event loop is closed (GH-92842) (GH-92904)
(cherry picked from commit
33880b4b1c60f54aa9e7fa02698a3c82eafe3dc7 )
Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
Miss Islington (bot) [Tue, 28 Jun 2022 07:53:23 +0000 (00:53 -0700)]
gh-94208: Add more TLS version/protocol checks for FreeBSD (GH-94347)
Three test cases were failing on FreeBSD with latest OpenSSL.
(cherry picked from commit
1bc86c26253befa006c0f52eebb6ed633c7d1e5c )
Co-authored-by: Christian Heimes <christian@python.org>
wookie184 [Mon, 27 Jun 2022 18:21:42 +0000 (19:21 +0100)]
[3.10] gh-94192: Fix error for dictionary literals with invalid expression as value. (GH-94304) (#94344)
Co-authored-by: wookie184 <wookie1840@gmail.com>
Miss Islington (bot) [Mon, 27 Jun 2022 04:13:49 +0000 (21:13 -0700)]
[3.11] gh-84623: Remove unused imports in stdlib (GH-94313)
GH-93773
Backport only for 2 idlelib files.
Cherrypicked from
259dd71c32a42708a2800c72898e2664a33fda9c
(cherry picked from commit
bc8d81a8febd26e7d02e26f46532aeb7ecbd55be )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Sun, 26 Jun 2022 22:05:23 +0000 (15:05 -0700)]
gh-85023: [doc] clarify parameters vs arguments explanation in FAQ (GH-94282)
(cherry picked from commit
d71f5adc41569c2d626552269797e0545fc9122c )
Co-authored-by: Arun Mani J <49952138+arun-mani-j@users.noreply.github.com>
Miss Islington (bot) [Sun, 26 Jun 2022 10:45:00 +0000 (03:45 -0700)]
GH-94254: Make _struct module types immutable (GH-94269)
(cherry picked from commit
17ed560fcd0a1442485f9bd48884bbe412f35abc )
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Victor Stinner [Sun, 26 Jun 2022 10:39:16 +0000 (12:39 +0200)]
Run Tools/scripts/reindent.py (#94225) (#94291)
Reindent files which were not properly formatted (PEP 8: 4 spaces).
Remove also some trailing spaces.
(cherry picked from commit
e87ada48a9e5d9d03f9759138869216df0d7383a )
Miss Islington (bot) [Sun, 26 Jun 2022 10:11:43 +0000 (03:11 -0700)]
[doc] fix typo in reference to tp_descr_get and tp_descr_set (GH-94140)
(cherry picked from commit
32d595fdcd4be8e1f41dcfe84ccf4de89fea3c3f )
Co-authored-by: Max Bachmann <kontakt@maxbachmann.de>
Miss Islington (bot) [Sun, 26 Jun 2022 08:17:19 +0000 (01:17 -0700)]
gh-83499: Fix closing file descriptors in tempfile (GH-93874)
(cherry picked from commit
d4792ce916b94d090b6c7bce8b0f973e840c9e4e )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Sun, 26 Jun 2022 06:01:07 +0000 (23:01 -0700)]
gh-94245: Test pickling and copying of typing.Tuple[()] (GH-94259) (GH-94268)
(cherry picked from commit
75cb3abc3bf10c7be3b374bfb4c060c36d251411 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Sat, 25 Jun 2022 22:52:06 +0000 (15:52 -0700)]
gh-70474: [doc] fix wording of GET_ANEXT doc (GH-94048)
(cherry picked from commit
9af6b75298d066e89646acf8df1704bef183a6f8 )
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Miss Islington (bot) [Sat, 25 Jun 2022 20:58:27 +0000 (13:58 -0700)]
bpo-39971: Change examples to be runnable (GH-32172)
(cherry picked from commit
c57a1c76d71075b14f6524b4681f29a3f1e88cb2 )
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
Erlend Egeberg Aasland [Sat, 25 Jun 2022 20:55:38 +0000 (22:55 +0200)]
[3.10] gh-90016: Reword sqlite3 adapter/converter docs (GH-93095) (#94273)
Also add adapters and converter recipes.
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com.
(cherry picked from commit
bd3c1c187e0e4fde5aec6835d180e9eddde8ceb6 )
Serhiy Storchaka [Sat, 25 Jun 2022 15:45:46 +0000 (18:45 +0300)]
[3.10] gh-94245: Fix pickling and copying of typing.Tuple[()] (GH-94260)
Miss Islington (bot) [Sat, 25 Jun 2022 15:05:06 +0000 (08:05 -0700)]
[3.10] gh-94207: Fix struct module leak (GH-94239) (GH-94266)
* gh-94207: Fix struct module leak (GH-94239)
Make _struct.Struct a GC type
This fixes a memory leak in the _struct module, where as soon
as a Struct object is stored in the cache, there's a cycle from
the _struct module to the cache to Struct objects to the Struct
type back to the module. If _struct.Struct is not gc-tracked, that
cycle is never collected.
This PR makes _struct.Struct GC-tracked, and adds a regression test.
(cherry picked from commit
6b865349aae47b90f9ef0b98f3fe3720c2f05601 )
Co-authored-by: Mark Dickinson <dickinsm@gmail.com>
Miss Islington (bot) [Fri, 24 Jun 2022 17:30:55 +0000 (10:30 -0700)]
IDLE: replace if statement with expression (GH-94228)
(cherry picked from commit
91f9947f231cce2c72a3fb7b5c8e8cf49cc2c10f )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>