Miss Islington (bot)
6d332a6cfa
gh-95199: upgrade bundled setuptools to 63.2.0 (gh-95200)
...
(cherry picked from commit 3c94d3395e )
Co-authored-by: Stéphane Bidoul <stephane.bidoul@gmail.com>
2022-07-24 04:43:05 -07:00
Miss Islington (bot)
227a1973d5
gh-95194: upgrade bundled pip to 22.2 (gh-95195)
...
upgrade bundled pip to 22.2
(cherry picked from commit 068ffafa54 )
Co-authored-by: Stéphane Bidoul <stephane.bidoul@gmail.com>
2022-07-24 03:18:33 -07:00
Miss Islington (bot)
4a682b4f1a
gh-93157: Fix fileinput didn't support errors in inplace mode (GH-95128)
...
(cherry picked from commit 5c7f3bcdaf )
Co-authored-by: Inada Naoki <songofacandy@gmail.com>
2022-07-23 20:02:40 -07:00
Miss Islington (bot)
e71e6e2ce5
Doc: Add omitted secondary prompt in inputoutput tutorial (GH-30317) ( #95159 )
...
For the continuation lines, "..." should present as secondary prompt
(cherry picked from commit de28ee8f75 )
Co-authored-by: Chenwei Xiao <chanvinxiao@163.com>
Co-authored-by: Chenwei Xiao <chanvinxiao@163.com>
2022-07-23 18:28:15 +08:00
Miss Islington (bot)
9f4d0e807d
Fix copy-friendliness of tutorial example (GH-93424)
...
(cherry picked from commit 34d11f1b0c )
Co-authored-by: Chenwei Xiao <chanvinxiao@163.com>
2022-07-22 13:21:07 -07:00
Miss Islington (bot)
665e5585f4
Fix async method reference links in compound_stmts docs (GH-94935)
...
(cherry picked from commit 79d2f549ad )
Co-authored-by: July Tikhonov <july.tikh@gmail.com>
2022-07-22 10:11:25 -07:00
Miss Islington (bot)
e50a63ed18
Closes gh-95133: docs, fix indentation level in TestCase.assertLogs example (GH-95134)
...
(cherry picked from commit 2a9c227ac1 )
Co-authored-by: Alexandru Mărășteanu <alexei@users.noreply.github.com>
2022-07-22 09:45:58 -07:00
Miss Islington (bot)
02f1cac282
gh-81040: Improve sqlite3.Cursor.rowcount docs (GH-94940)
...
(cherry picked from commit f9b3706df6 )
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
2022-07-22 00:41:56 -07:00
Miss Islington (bot)
79561860cd
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 c944649ffc )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2022-07-21 17:08:47 -07:00
Miss Islington (bot)
8fd2d36c1c
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 936f71e5d4 )
Co-authored-by: David Benjamin <davidben@davidben.net>
2022-07-21 12:10:53 -07:00
Miss Islington (bot)
b60c3d2f7e
GH-95029: Describe Windows Store package isolation and redirection in more detail (GH-95030)
...
(cherry picked from commit b1924b1006 )
Co-authored-by: Anthony Shaw <anthony.p.shaw@gmail.com>
2022-07-20 17:10:32 -07:00
Miss Islington (bot)
cbe3ad51ed
gh-94844: Add pathlib support to shutil archive management (GH-94846)
...
Co-authored-by: Barney Gale <barney.gale@gmail.com>
(cherry picked from commit ed4441567e )
Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
2022-07-20 09:24:33 -07:00
Terry Jan Reedy
1c3b2fe0fa
[3.10] gh-90654: Update maintenance NEWS header ( #94355 )
2022-07-20 04:16:42 -04:00
Miss Islington (bot)
28478c7a0b
gh-90654: Add item missing from idlelib/NEWS.txt (GH-95038)
...
(cherry picked from commit acb105a7c1 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2022-07-20 00:42:36 -07:00
Miss Islington (bot)
31a390e43f
[3.10] gh-94930: skipitem() in getargs.c should return non-NULL on error (GH-94931) (GH-94963)
...
(cherry picked from commit 067f0da335 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2022-07-19 21:57:59 +03:00
Erlend Egeberg Aasland
374afb4a4e
[3.10] gh-94998: Remove incorrectly backported Lib/test/test_sqlite3 directory ( #95016 )
2022-07-19 20:26:38 +02:00
Miss Islington (bot)
2d79804bb0
GH-91153: Handle mutating __index__ methods in bytearray item assignment (GH-94891)
...
(cherry picked from commit f36589510b )
Co-authored-by: Brandt Bucher <brandtbucher@microsoft.com>
2022-07-19 10:04:47 -07:00
Shantanu
906b345ddd
[3.10] gh-94949: Disallow parsing parenthesised ctx mgr with old feature_version (GH-94950) ( #94990 )
...
(cherry picked from commit 0daba82221 )
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
2022-07-19 07:24:48 +01:00
Miss Islington (bot)
96e15167b0
test_concurrent_futures: Fix unneeded/confusing format call (GH-93119)
...
Added in 339fd46cb7 - but as noted in a comment, the test only tests ThreadPoolExecutor.
(cherry picked from commit 3f2dd0a7c0 )
Co-authored-by: Florian Bruhin <me@the-compiler.org>
2022-07-18 19:38:05 -07:00
Shantanu
dda9198021
[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 ae0be5a53b )
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
2022-07-18 20:43:23 +01:00
Miss Islington (bot)
95ae29d508
Fix incorrect double indent in ast doc (GH-94976)
...
Warning directive indent was 4 rather than 3 spaces.
(cherry picked from commit a25a803c4c )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2022-07-18 10:33:47 -07:00
Miss Islington (bot)
a923eb47c2
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 7b617be4ab )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2022-07-18 09:45:09 -07:00
Miss Islington (bot)
5d75edd925
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 f6b3a07b7d (bpo-44493: Add missing terminated NUL in sockaddr_un's length (GH-26866)
(cherry picked from commit c22f134211 )
Co-authored-by: Nir Soffer <nsoffer@redhat.com>
2022-07-17 08:39:30 -07:00
Miss Islington (bot)
31608abf55
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 107c21c5d5 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2022-07-16 22:46:43 -07:00
Miss Islington (bot)
964431eaeb
gh-94869: Fix the location in some expressions for multi-line f-string ast nodes (GH-94895) ( #94911 )
...
(cherry picked from commit 2e9da8e352 )
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
2022-07-16 22:06:33 +01:00
Miss Islington (bot)
3781d1a458
gh-90844: Allow virtual environments to correctly launch when they have spaces in the path (GH-94903)
...
(cherry picked from commit 4b4439daed )
Co-authored-by: Steve Dower <steve.dower@python.org>
2022-07-16 10:07:39 -07:00
Miss Islington (bot)
6654392587
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 3789c63577 )
Co-authored-by: Chris Adams <chris@improbable.org>
2022-07-15 15:16:45 -07:00
Miss Islington (bot)
c5bf768a53
[3.10] [doc] Update cookbook example and add information about queue types. (GH-94854) (GH-94872)
...
(cherry picked from commit dc54193095 )
2022-07-15 08:18:30 +01:00
Neil Schemenauer
5d26f85521
[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>
2022-07-14 17:26:40 -07:00
Miss Islington (bot)
1cf0305ba5
Docs: fix typo in sqlite3.rst (GH-94798)
...
Colum -> Column
(cherry picked from commit 9ea72e9d8d )
Co-authored-by: Ikko Ashimine <eltociear@gmail.com>
2022-07-14 14:58:14 -07:00
Miss Islington (bot)
915fb4f441
idlelib: replace 'while 1' with 'while True' (GH-94827)
...
(cherry picked from commit 6a15f918b5 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2022-07-13 18:27:20 -07:00
Miss Islington (bot)
8a01502e2d
gh-90359: Unify documentation style for datetime.rst (gh-94836)
...
(cherry picked from commit 967da5febb )
Co-authored-by: Dong-hee Na <donghee.na@python.org>
2022-07-13 17:51:03 -07:00
Miss Islington (bot)
381b86bde8
gh-90359: Update documentation to follow PEP 495. (gh-94800)
...
(cherry picked from commit 07374cce52 )
Co-authored-by: Dong-hee Na <donghee.na@python.org>
2022-07-13 17:16:44 -07:00
Miss Islington (bot)
65dd637840
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 4a6bb30eb6 )
Co-authored-by: neonene <53406459+neonene@users.noreply.github.com>
2022-07-13 09:39:56 -07:00
Miss Islington (bot)
1bc13df628
[3.10] GH-94736: mark SemLock test as linux only (GH-94750) ( #94753 )
...
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
2022-07-11 17:14:57 +01:00
Miss Islington (bot)
aa2142def6
bpo-45924: Fix asyncio incorrect traceback when future's exception is raised multiple times (GH-30274) ( #94748 )
...
(cherry picked from commit 86c1df1872 )
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
2022-07-11 15:38:27 +01:00
Miss Islington (bot)
916686fdb2
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 f5b76330cf )
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
2022-07-11 05:39:09 -07:00
Mark Shannon
b87d03d355
[3.10] GH-94329: Don't raise on excessive stack consumption (GH-94421) ( #94448 )
2022-07-11 13:21:17 +01:00
Miss Islington (bot)
30015de723
GH-77265: Document NaN handling in statistics functions that sort or count (GH-94676) ( #94725 )
2022-07-10 12:36:01 -05:00
Miss Islington (bot)
d4796c2231
gh-94637: Release GIL in SSLContext.set_default_verify_paths (GH-94658)
...
(cherry picked from commit 78307c7dc2 )
Co-authored-by: Christian Heimes <christian@python.org>
2022-07-09 09:35:54 -07:00
Miss Islington (bot)
da4912885f
Use mdash-es consistently in the library docs index (GH-92762)
...
(cherry picked from commit efb20a97c4 )
Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
2022-07-08 07:50:56 -07:00
Erlend Egeberg Aasland
691d26a17f
[3.10] gh-94622: Add more references to the sqlite3 types anchor (GH-94623). ( #94679 )
...
(cherry picked from commit e5b841a403 )
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
2022-07-08 02:50:12 +02:00
Erlend Egeberg Aasland
797745e749
[3.10] gh-94321: Document sqlite3.PrepareProtocol (GH-94620) ( #94671 )
...
(cherry picked from commit fb6dccae34 )
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
2022-07-08 01:44:09 +02:00
Guy Yagev
860aefaeca
gh-92743: Remove copyright sign next to "Raymond Hettinger" ( #94665 )
...
Closes GH-92743
2022-07-07 14:31:39 -07:00
Miss Islington (bot)
c5819c1f6c
GH-94644: fix test_curses ref leak (GH-94647)
...
(cherry picked from commit 277f55cb04 )
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
2022-07-07 04:41:06 -07:00
Erlend Egeberg Aasland
dc36801f7c
[3.10] gh-94430: Allow params named module or self with custom C names in AC (GH-94431) ( #94650 )
...
(cherry picked from commit 8bbd70b4d1 )
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
2022-07-07 13:26:21 +02:00
Erlend Egeberg Aasland
663aa6e7d9
[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 3eb2b9634f )
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
2022-07-07 10:46:29 +02:00
Miss Islington (bot)
7f45ae859a
gh-94630: Update sqlite3 docs with positional-only and keyword-only symbols (GH-94631)
...
(cherry picked from commit 94988603f3 )
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
2022-07-06 16:21:05 -07:00
Miss Islington (bot)
7e3b6affa0
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 760b8cf0c8 )
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
2022-07-06 14:07:36 -07:00
Pablo Galindo Salgado
5e24c80b94
[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>
2022-07-05 19:52:33 +01:00