Miss Islington (bot)
d19b5d8533
gh-95010: Fix asyncio GenericWatcherTests.test_create_subprocess_fails_with_inactive_watcher (GH-95009)
...
The test was never run, because it was missing the TestCase class.
The test failed because the wrong attribute was patched.
(cherry picked from commit 834bd5dd76
)
Co-authored-by: Thomas Grainger <tagrain@gmail.com>
2022-07-21 06:01:05 -07:00
Miss Islington (bot)
e2e8ec0760
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:11:01 -07:00
Miss Islington (bot)
57375d1d74
gh-90654: Remove unneeded blank line (GH-95044) ( #95047 )
...
(cherry picked from commit bd390ef825
)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2022-07-20 18:03:35 -04:00
Brandt Bucher
e2fce3a8e7
[3.11] GH-91409: Don't overwrite valid locations with NOP locations (GH-95067) (GH-95068)
...
(cherry picked from commit 742d4614e1
)
2022-07-20 15:01:42 -07:00
Miss Islington (bot)
6515738c0e
gh-54781: Move NEWS item to Tests, and improve wording (GH-95063)
...
(cherry picked from commit 8ede67cdcf
)
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
2022-07-20 12:33:38 -07:00
Miss Islington (bot)
2ac1096423
gh-94998: Remove redundant condition in test_sqlite3/__main__.py (GH-95052)
...
(cherry picked from commit 9d09e7b026
)
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
2022-07-20 10:01:58 -07:00
Miss Islington (bot)
6cc9489a3a
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:19:35 -07:00
Miss Islington (bot)
16cb8ca52e
GH-94851: fix immortal objects refcounting in compiler (gh-95040)
...
(cherry picked from commit 7476154886
)
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
2022-07-20 03:42:05 -07:00
Miss Islington (bot)
1093804b88
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:43:27 -07:00
Miss Islington (bot)
e98728ab4d
gh-93939: Use new MODULE_name_STATE in wasm_assets script (GH-95035)
...
(cherry picked from commit 0f34c7e2d3
)
Co-authored-by: Christian Heimes <christian@python.org>
2022-07-20 00:17:52 -07:00
Miss Islington (bot)
84d58ad17b
GH-90699: fix ref counting of static immortal strings (gh-94850)
...
(cherry picked from commit 1834133e66
)
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
2022-07-19 23:56:47 -07:00
Terry Jan Reedy
b3aec3ea58
[3.11] Remove blurb boilerplate from news item( #95033 ) ( #95036 )
...
Cherry-picked from 88e4eeba25
2022-07-20 02:23:28 -04:00
Miss Islington (bot)
bb8e20a329
gh-91256: Ensure help text has the program name even before getpath is called (GH-94929)
...
(cherry picked from commit 49aeff49d7
)
Co-authored-by: Steve Dower <steve.dower@python.org>
2022-07-19 12:03:15 -07:00
Miss Islington (bot)
9487e8d250
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:12:39 -07:00
Miss Islington (bot)
d2be44230e
Remove out of date reference to YIELD_FROM from docs. (GH-94966) (GH-94975)
...
(cherry picked from commit c41d4d0917
)
Co-authored-by: Mark Shannon <mark@hotpy.org>
Co-authored-by: Mark Shannon <mark@hotpy.org>
2022-07-19 12:58:44 +01:00
Miss Islington (bot)
fbd24068c2
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:42:19 -07:00
Miss Islington (bot)
7733aa048e
gh-94949: Disallow parsing parenthesised ctx mgr with old feature_version (GH-94950)
...
* gh-94949: Disallow parsing parenthesised ctx manager with old feature_version
* 📜 🤖 Added by blurb_it.
* Allow it with feature_version=(3, 9) as well
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
(cherry picked from commit 0daba82221
)
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
2022-07-18 14:57:45 -07:00
Ethan Furman
be84daf52a
Revert "gh-93910: [Enum] restore member.member restriction while keeping performance boost (GH-94913)" ( #94981 )
...
This reverts commit 30f28ac296
.
2022-07-18 13:56:21 -07:00
Brandt Bucher
eda2f90094
[3.11] GH-94822: Don't specialize when metaclasses are involved (GH-94892) (GH-94980)
...
(cherry picked from commit daf68ba92f
)
Co-authored-by: Brandt Bucher <brandtbucher@microsoft.com>
2022-07-18 11:55:07 -07:00
Miss Islington (bot)
a5c8cecf29
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:34:09 -07:00
Miss Islington (bot)
37ec0bdf16
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:46:26 -07:00
Miss Islington (bot)
ec6ed6681d
gh-94930: skipitem() in getargs.c should return non-NULL on error (GH-94931)
...
(cherry picked from commit 067f0da335
)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2022-07-18 08:41:22 -07:00
Miss Islington (bot)
a914fa979e
GH-94857: fix test_io refleak (GH-94858)
...
(cherry picked from commit 631160c262
)
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
2022-07-18 07:17:55 -07:00
Miss Islington (bot)
4607e884e5
[3.11] gh-94847: Don't force inlining in debug builds of libmpdec (GH-94848) (GH-94951)
...
Co-authored-by: Christian Heimes <christian@python.org>
2022-07-18 14:42:42 +02:00
Miss Islington (bot)
7dc236d116
gh-94947: Disallow parsing walrus with feature_version < (3, 8) (GH-94948)
...
* 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 02:46:21 -07:00
Christian Heimes
30412d91b6
[3.11] gh-94801: Use custom flags to check for headers and libs (GH-94802) (GH-94881)
...
Co-authored-by: Christian Heimes <christian@python.org>
2022-07-18 08:46:49 +02:00
Miss Islington (bot)
e747562345
gh-94601: [Enum] fix inheritance for __str__ and friends (GH-94942)
...
(cherry picked from commit c961d14f85
)
Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
2022-07-17 19:18:41 -07:00
Miss Islington (bot)
8d0249e345
gh-72889: Remove redundant mock.Mock()._is_coroutine = False workarounds (GH-94926)
...
(cherry picked from commit 07aeb7405e
)
Co-authored-by: Thomas Grainger <tagrain@gmail.com>
2022-07-17 10:49:01 -07:00
Miss Islington (bot)
1c63734217
gh-91348: Restore frame argument to sys._getframe audit event (GH-94928)
...
(cherry picked from commit 044a593cbb
)
Co-authored-by: Steve Dower <steve.dower@python.org>
2022-07-17 08:49:57 -07:00
Miss Islington (bot)
65d87a2cb8
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:22 -07:00
Miss Islington (bot)
7bca87d384
gh-92348: Add quotes to support building on Windows with spaces in directory name (GH-94925)
...
(cherry picked from commit 5c19ddab65
)
Co-authored-by: Steve Dower <steve.dower@python.org>
2022-07-17 07:46:43 -07:00
Serhiy Storchaka
107c21c5d5
gh-94864: Fix PyArg_Parse* with deprecated format units "u" and "Z" (GH-94902)
...
It returned 1 (success) when warnings are turned into exceptions.
2022-07-17 08:23:37 +03:00
Miss Islington (bot)
30f28ac296
gh-93910: [Enum] restore member.member restriction while keeping performance boost (GH-94913)
...
(cherry picked from commit c20186c397
)
Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
2022-07-16 21:53:41 -07:00
Miss Islington (bot)
5a34287b5d
gh-91181: Add a What's New entry for dropping bytes support for sys.path
(GH-94918)
...
(cherry picked from commit ec4745b5f2
)
Co-authored-by: Brett Cannon <brett@python.org>
2022-07-16 19:23:57 -07:00
Miss Islington (bot)
ccbf85382c
gh-91181: drop support for bytes on sys.path (GH-31934)
...
Support for bytes broke sometime between Python 3.2 and 3.6 and has been broken ever since. Trying to bring back supports is surprisingly difficult in the face of -b and checking for keys in sys.path_importer_cache. Since the support was broken for so long, trying to overcome the difficulty of bringing back the support has been deemed not worth it.
Co-authored-by: Eryk Sun <eryksun@gmail.com>
Co-authored-by: Brett Cannon <brett@python.org>
(cherry picked from commit 6da988a46c
)
Co-authored-by: Thomas Grainger <tagrain@gmail.com>
2022-07-16 18:31:25 -07:00
Miss Islington (bot)
e121cb5814
gh-94869: Fix the location in some expressions for multi-line f-string ast nodes (GH-94895)
...
(cherry picked from commit 2e9da8e352
)
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
2022-07-16 12:16:51 -07:00
Miss Islington (bot)
8c08e86d8d
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:11:34 -07:00
Miss Islington (bot)
b040617195
gh-94772: Fix off-by-one error in Windows launcher (GH-94779)
...
(cherry picked from commit 407ff6556c
)
Co-authored-by: Paul Moore <p.f.moore@gmail.com>
Co-authored-by: Paul Moore <p.f.moore@gmail.com>
2022-07-16 10:42:08 +01:00
Miss Islington (bot)
734c8b7e55
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:21:34 -07:00
Miss Islington (bot)
8dc4de3aaf
gh-94808: Add coverage for boolobject.c:bool_new (GH-94859) (GH-94883)
...
`bool_new` had no coverage.
Automerge-Triggered-By: GH:brandtbucher
(cherry picked from commit df4d53a09a
)
Co-authored-by: Michael Droettboom <mdboom@gmail.com>
Co-authored-by: Michael Droettboom <mdboom@gmail.com>
2022-07-15 10:37:13 -07:00
Miss Islington (bot)
e55f60db8f
[3.11] GH-94808: Cover handling non-finite numbers from round when ndigits is provided (GH-94860) (GH-94882)
...
(cherry picked from commit 625ba9bdff
)
Co-authored-by: Michael Droettboom <mdboom@gmail.com>
Automerge-Triggered-By: GH:brandtbucher
2022-07-15 10:34:18 -07:00
Miss Islington (bot)
8f92ebbde7
gh-94814: Improve coverage of _PyCode_CreateLineArray (GH-94852)
...
The case where there are more than (1 << 15) lines was not covered.
I don't know if increasing test coverage requires a blurb -- let me know if it does.
Automerge-Triggered-By: GH:brandtbucher
(cherry picked from commit 582ae86b3f
)
Co-authored-by: Michael Droettboom <mdboom@gmail.com>
2022-07-15 10:28:47 -07:00
Miss Islington (bot)
d9107aa015
gh-94731: Revert to C-style casts for _Py_CAST (GH-94782) ( #94849 )
...
Co-authored-by: da-woods <dw-git@d-woods.co.uk>
(cherry picked from commit 6cbb57f62d
)
2022-07-15 09:35:23 +02:00
Miss Islington (bot)
a6c4ca9b7c
[3.11] [doc] Update cookbook example and add information about queue types. (GH-94854) (GH-94871)
...
(cherry picked from commit dc54193095
)
2022-07-15 08:19:02 +01:00
Miss Islington (bot)
3b6cb56dc9
GH-46771: docs for asyncio.timeout and task cancellation (GH-94794)
...
(cherry picked from commit 08f68975ab
)
Co-authored-by: Tin Tvrtković <tinchester@gmail.com>
2022-07-14 19:48:03 -07:00
Miss Islington (bot)
016fd7b57f
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:56:30 -07:00
Miss Islington (bot)
498c649080
gh-94841: Ensure arena_map_get() is inlined in PyObject_Free() (GH-94842)
...
(cherry picked from commit 9b3f779209
)
Co-authored-by: neonene <53406459+neonene@users.noreply.github.com>
2022-07-14 12:04:06 -07:00
Miss Islington (bot)
91f7914003
GH-89988: Fix memory leak in pickle.Pickler dispatch_table lookup (GH-94298)
...
(cherry picked from commit 01ef1f95da
)
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
2022-07-14 09:47:17 -07:00
Miss Islington (bot)
29fc20cdc0
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:33:29 -07:00
Dong-hee Na
0a51204cd0
[3.11] gh-90359: Unify documentation style for datetime.rst (gh-94836) (gh-94838)
...
(cherry picked from commit 967da5febb
)
Co-authored-by: Dong-hee Na <donghee.na@python.org>
2022-07-14 09:52:53 +09:00