summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* bpo-45948: Remove constructor discrepancy in C version of ↵Miss Islington (bot)2022-02-124-5/+19
| | | | | | | | ElementTree.XMLParser (GH-31152) Both implementations accept target=None now. (cherry picked from commit 168fd6453b5de15236116f9261d64601d92571ac) Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
* bpo-46483: [doc] pathlib classes no longer support parameterized generics ↵Miss Islington (bot)2022-02-111-4/+0
| | | | | | | | | (GH-31281) Remove pathlib classes from the list in stdtypes.rst of classes that can be parameterized at runtime. (cherry picked from commit e0bc8ee945af96f9395659bbe3cc30b082e7a361) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* bpo-46615: Don't crash when set operations mutate the sets (GH-31120)Miss Islington (bot)2022-02-113-8/+226
| | | | | | Ensure strong references are acquired whenever using `set_next()`. Added randomized test cases for `__eq__` methods that sometimes mutate sets when called. (cherry picked from commit 4a66615ba736f84eadf9456bfd5d32a94cccf117) Co-authored-by: Dennis Sweeney <36520290+sweeneyde@users.noreply.github.com>
* [3.10] bpo-46433: _PyType_GetModuleByDef: handle static types in MRO ↵Petr Viktorin2022-02-115-13/+77
| | | | | | | (GH-30696) (GH-31262) (cherry picked from commit 0ef08530124c5ca13a9394f4ac18bee8e6c66409)
* bpo-46246: add missing __slots__ to importlib.metadata.DeprecatedList (GH-30452)Miss Islington (bot)2022-02-113-0/+9
| | | | | | | | | | Confirmed with @jaraco that this indeed needs a fix. A question that came up while I was digging into the code: I think `SelectableGroups` could similarly use `__slots__ = ()`, since its purpose seems only for convenience around `dict`, not to have attributes of its own. Automerge-Triggered-By: GH:jaraco (cherry picked from commit dd76b3f7d332dd6eced5cbc2ad2adfc397700b3d) Co-authored-by: Arie Bovenberg <a.c.bovenberg@gmail.com>
* [3.10] Allow the parser to avoid nested processing of invalid rules ↵Pablo Galindo Salgado2022-02-106-921/+921
| | | | | | | (GH-31252). (GH-31257) (cherry picked from commit 390459de6db1e68b79c0897cc88c0d562693ec5c) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* [3.10] Fix warning: asyncio.events._event_loop_policy was modified by ↵Andrew Svetlov2022-02-107-4/+30
| | | | | | | test_asyncio (GH-31253) (GH-31255) (cherry picked from commit 012e77eb5c3ba3d411f5967a7f368ebdb42ab88c) Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
* [3.10] bpo-46707: Avoid potential exponential backtracking in some syntax ↵Pablo Galindo Salgado2022-02-104-884/+901
| | | | | | | errors (GH-31241). (GH-31242) (cherry picked from commit b71dc71905ab674ccaa4a56230d17a28f61c325c) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* bpo-43532: add version added to KW_ONLY (GH-31235)Miss Islington (bot)2022-02-091-0/+2
| | | | | | | | Minor missing version note mentioned at the end of (and affected me independently before reading that note). Automerge-Triggered-By: GH:ericvsmith (cherry picked from commit 5a3f97291eea96037cceee097ebc00bba44bc9ed) Co-authored-by: Henry Schreiner <HenrySchreinerIII@gmail.com>
* bpo-45863: tarfile: don't zero out header fields unnecessarily (GH-29693)Miss Islington (bot)2022-02-093-6/+71
| | | | | | | | | | | | | Numeric fields of type float, notably mtime, can't be represented exactly in the ustar header, so the pax header is used. But it is helpful to set them to the nearest int (i.e. second rather than nanosecond precision mtimes) in the ustar header as well, for the benefit of unarchivers that don't understand the pax header. Add test for tarfile.TarInfo.create_pax_header to confirm correct behaviour. (cherry picked from commit bf2d44ffb06e8f49aacc6b1c140a6717df5cf897) Co-authored-by: Joshua Root <jmr@macports.org>
* bpo-46685: cover `TypeError` of `ForwardRef(1)` in `test_typing` (GH-31223)Miss Islington (bot)2022-02-091-0/+4
| | | | | (cherry picked from commit d2d1d49eaccaa83eb8873ba15f2fc9562143bc56) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* bpo-46678: Fix Invalid cross device link in ↵Miss Islington (bot)2022-02-082-1/+5
| | | | | | | | | | Lib/test/support/import_helper.py (GH-31204) (GH-31207) In `Lib/test/support/import_helper.py`, the function `make_legacy_pyc` makes a call to `os.rename` which can fail when the source and target live on different devices. This happens (for example) when `PYTHONPYCACHEPREFIX` is set to a directory anywhere on disk, while a ramdisk is mounted on `/tmp` (the latter of which is the default on various Linux distros). Replacing `os.rename` with `shutil.move` fixes this. Automerge-Triggered-By: GH:brettcannon (cherry picked from commit da576e08296490e94924421af71001bcfbccb317) Co-authored-by: Jason Wilkes <notarealdeveloper@gmail.com>
* [3.10] bpo-46521: Fix codeop to use a new partial-input mode of the parser ↵Pablo Galindo Salgado2022-02-087-54/+52
| | | | | | | (GH-31010). (GH-31213) (cherry picked from commit 69e10976b2e7682c6d57f4272932ebc19f8e8859) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* [3.10] bpo-46676: Make ParamSpec args and kwargs equal to themselves ↵Gregory Beauregard2022-02-083-0/+19
| | | | | | | (GH-31203) (GH-31210) (cherry picked from commit c8b62bbe46e20d4b6dd556f2fa85960d1269aa45) Co-authored-by: Gregory Beauregard <greg@greg.red>
* [3.10] bpo-46648: Rewrite test_urllib2.test_issue16464() with a local HTTP ↵Miss Islington (bot)2022-02-072-18/+18
| | | | | | | | | | server (GH-31186) (GH-31189) Re-enable test_issue16464() of test_urllib2, move it to urllib2_localnet and use the local HTTP server rather than an external HTTP server. (cherry picked from commit 8e98175a03fe03d62822d96007a74e5273013764) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* bpo-46638: Makes registry virtualisation setting stable when building MSIX ↵Miss Islington (bot)2022-02-073-4/+16
| | | | | | | packages (GH-31130) (cherry picked from commit 3a5afc14e16370c1f4f72d43cb553298ad9a1fa4) Co-authored-by: Steve Dower <steve.dower@python.org>
* [3.10] bpo-46655: allow stringized TypeAlias with get_type_hints (GH-31156). ↵Gregory Beauregard2022-02-073-1/+7
| | | | | | | (#31175) (cherry picked from commit 77b025be4a4cd5a3bfc1b1af560cc57e8e956c98) Co-authored-by: Gregory Beauregard <greg@greg.red>
* [3.10] bpo-46611: add coverage to instance and class checks in `typing.py` ↵Nikita Sobolev2022-02-072-16/+59
| | | | | | | (GH-31078) (GH-31182) (cherry picked from commit 067c03bf40d13393209f0138fa9c4d5980c4ff8a) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* bpo-40479: Fix undefined behavior in Modules/_hashopenssl.c (GH-31153)Miss Islington (bot)2022-02-072-0/+2
| | | | | | va_end() must be called before returning. (cherry picked from commit 59e004af63742361b67d1e1ae70229ff0db1059d) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* Add more tests for variable substitution in generics (GH-31170)Miss Islington (bot)2022-02-061-0/+27
| | | | | (cherry picked from commit 3da5526136034188185d6a3fdba71e2b56577ee2) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-46648: Skip test_urllib2.test_issue16464() (GH-31161)Miss Islington (bot)2022-02-061-0/+2
| | | | | | POST requests to http://www.example.com/ fail randomly. (cherry picked from commit 1578de2fcd685c71f9c84e09bac32901dea192c1) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.10] bpo-46609: Update asyncio-task coroutine doc (GH-31132)Terry Jan Reedy2022-02-041-1/+1
| | | @coroutine in removed in 3.11, not 3.10.
* bpo-46629: Update classicAppCompat.sccd for new signing certificate (GH-31111)Miss Islington (bot)2022-02-042-29/+42
| | | | | (cherry picked from commit 9b4e3d94a5746af093392ed8e977b26fcc1bfd11) Co-authored-by: Steve Dower <steve.dower@python.org>
* Optimize images by IMGbot (GH-21348)Miss Islington (bot)2022-02-0425-1/+1
| | | | Co-authored-by: ImgBotApp <ImgBotHelp@gmail.com> (cherry picked from commit ba650af7d660084e08859dd1ee1917cccee24e88)
* bpo-46588: fix typo in test_calltip.py (GH-31119)Miss Islington (bot)2022-02-041-1/+1
| | | | | (cherry picked from commit 222865daabfa7a8b12ca9a5e9c23b9ce217448f1) Co-authored-by: Caio Agiani <agianicaio@gmail.com>
* bpo-14916: use specified tokenizer fd for file input (GH-31006)Miss Islington (bot)2022-02-032-1/+2
| | | | | | | | | | | | | @pablogsal, sorry i failed to rebase to main, so i recreated https://github.com/python/cpython/pull/22190GH-issuecomment-1024633392 > PyRun_InteractiveOne\*() functions allow to explicitily set fd instead of stdin. but stdin was hardcoded in readline call. > This patch does not fix target file for prompt unlike original bpo one : prompt fd is unrelated to tokenizer source which could be read only. It is more of a bugfix regarding the docs : actual documentation say "prompt the user" so one would expect prompt to go on stdout not a file for both PyRun_InteractiveOne\*() and PyRun_InteractiveLoop\*(). Automerge-Triggered-By: GH:pablogsal (cherry picked from commit 89b13042fcfc95bae21a49806a205ef62f1cdd73) Co-authored-by: Paul m. p. P <mail.peny@free.fr>
* bpo-46630: Fix initial focus of IDLE query dialogs (GH-31112)Miss Islington (bot)2022-02-033-1/+5
| | | | | | | On Windows, one had to Tab or click on the entry box to get a cursor and be able to enter anything. (cherry picked from commit d1df81a730499cc6286d02afa6028a1e9c22bbbf) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-45975: IDLE - Remove extraneous parens (GH-31107)Miss Islington (bot)2022-02-033-4/+4
| | | | | | | mistakenly included in 3 files in previous PR and backported both to 3.10 and 3.9. (cherry picked from commit 916d0d822c79933f4c420f7a36f16f3eb788646b) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-45773: Remove invalid peephole optimizations (GH-31066)Miss Islington (bot)2022-02-032-2/+1
| | | | | (cherry picked from commit e0433c1e70254d4d0357a9e14596929a04bdf769) Co-authored-by: Brandt Bucher <brandt@python.org>
* Add recipe for subslices (GH-31095)Raymond Hettinger2022-02-031-0/+6
|
* [3.10] bpo-46576: bpo-46524: Disable compiler optimization within ↵Gregory P. Smith2022-02-032-0/+13
| | | | | | | | | | | | | | | | | | | | | | | test_peg_generator. (GH-31015) (GH-31089) Disable compiler optimization within test_peg_generator. This speed up test_peg_generator by always disabling compiler optimizations by using -O0 or equivalent when the test is building its own C extensions. A build not using --with-pydebug in order to speed up test execution winds up with this test taking a very long time as it would do repeated compilation of parser C code using the same optimization flags as CPython was built with. This speeds the test up 6-8x on gps-raspbian. Also incorporate's GH-31017's win32 conditional and flags. Co-authored-by: Kumar Aditya kumaraditya303. (cherry picked from commit 164a017e13ee96bd1ea1ae79f5ac9e25fe83994e) Co-authored-by: Gregory P. Smith <greg@krypto.org>
* bpo-45975: Use walrus operator for some idlelib while loops (GH-31083)Miss Islington (bot)2022-02-035-24/+9
| | | | | (cherry picked from commit 51a95be1d035a717ab29e98056b8831a98e61125) Co-authored-by: Nick Drozd <nicholasdrozd@gmail.com>
* bpo-46616: Ensures test_importlib.test_windows cleans up registry keys after ↵Miss Islington (bot)2022-02-022-3/+16
| | | | | | | completion (GH-31086) (cherry picked from commit 89a0a90c2e0e685bc70206fc45e4413c4f4411ed) Co-authored-by: Steve Dower <steve.dower@python.org>
* [3.10] bpo-45173: Note configparser deprecations will be removed in 3.12 ↵Hugo van Kemenade2022-02-022-4/+5
| | | | | (GH-31084) Cherry-pick of [`b06e9ba`](https://github.com/python/cpython/pull/30952/commits/b06e9ba398fafe39028c3b2dc3943266a16b1416) from https://github.com/python/cpython/pull/30952.
* Fix minor details in the Counter docs (GH-31029) (GH-31072)Miss Islington (bot)2022-02-022-3/+14
|
* bpo-44359: Fix test_ftplib unhandled thread exceptions (GH-31069)Miss Islington (bot)2022-02-022-4/+13
| | | | | | | test_ftplib now silently ignores socket errors to prevent logging unhandled threading exceptions. (cherry picked from commit 0611eafc709cbe8a2a0bdde082d25df0c5034de7) Co-authored-by: Victor Stinner <vstinner@python.org>
* bpo-46591: Make About IDLE doc link label clickable (GH-30251)Miss Islington (bot)2022-02-024-2/+7
| | | | | | Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> (cherry picked from commit 53c78080573b3bae4c4e782b9f47dce48aac9688) Co-authored-by: Wes <5124946+wesinator@users.noreply.github.com>
* bpo-46487: Add `get_write_buffer_limits` to Write and _SSLProtocol ↵Miss Islington (bot)2022-02-013-0/+13
| | | | | | | | transports (GH-30958) Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> (cherry picked from commit 64568acbd88a88d54ac9b8215447f88280448dd5) Co-authored-by: Emiya <importz750@gmail.com>
* bpo-45925: Update macOS installer to SQLite 3.37.2 (GH-30921) (GH-31057)Ned Deily2022-02-012-3/+4
| | | | Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
* [3.10] bpo-46584: remove check for `py2.3` from `ctypes/test_python_api` ↵Miss Islington (bot)2022-02-011-6/+2
| | | | | | | | (GH-31024) (GH-31054) (cherry picked from commit 913e340a323c7e61ae6e4acbb1312b4342657bec) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* bpo-44031: fix test_tabnanny failure in non-ascii CWD (GH-31014)Miss Islington (bot)2022-02-011-2/+2
| | | | | (cherry picked from commit 108e66b6d23efd0fc2966163ead9434b328c5f17) Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
* bpo-46482: add a test for `typing.Annotation.__new__` (GH-30821)Miss Islington (bot)2022-02-011-0/+7
| | | | | (cherry picked from commit 4c0612ad00ba45dbea2a86f7db6d21546cf243f8) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* bpo-46542: test_lib2to3 uses support.infinite_recursion() (GH-31035)Miss Islington (bot)2022-01-315-23/+47
| | | | | | | | | | | | | | | | | | | | | | | | * bpo-46542: test_lib2to3 uses support.infinite_recursion() Fix a Python crash in test_lib2to3 when using Python built in debug mode: limit the recursion limit. The test_all_project_files() test of test_lib2to3 now uses the test.support.infinite_recursion() context manager when processing the infinite_recursion.py file to prevent a crash when Python is built in debug mode. The two test_all_project_files() tests now use subTest() and log the refactored/parsed filename (if test_lib2to3 is run in verbose mode). * Update Lib/lib2to3/tests/data/infinite_recursion.py Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> Co-authored-by: Łukasz Langa <lukasz@langa.pl> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> (cherry picked from commit ee0ac328d38a86f7907598c94cb88a97635b32f8) Co-authored-by: Victor Stinner <vstinner@python.org>
* bpo-26552: Fixed case where failing `asyncio.ensure_future` did not close ↵Kumar Aditya2022-01-293-3/+21
| | | | the coroutine (#30288) (#31003)
* bpo-46560: Fix a typo in `typing.ParamSpec's` doc string (GH-30995)Miss Islington (bot)2022-01-281-1/+1
| | | | | (cherry picked from commit ffa505b580464d9d90c29e69bd4db8c52275280a) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* bpo-45925: Update Windows installer to SQLite 3.37.2 (GH-30485)Steve Dower2022-01-284-3/+4
| | | Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
* bpo-46530: add `"thread_time"` to `test_time.test_get_clock_info` (GH-30913)Miss Islington (bot)2022-01-281-12/+18
| | | | | (cherry picked from commit c27a33132be101e246ae2584f1826477357138d6) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* bpo-46542: test_json uses support.infinite_recursion() (GH-30972)Miss Islington (bot)2022-01-282-6/+15
| | | | | | | Fix test_json tests checking for RecursionError: modify these tests to use support.infinite_recursion(). (cherry picked from commit e7a6285f1be18992191599792524d3aa6aedfa55) Co-authored-by: Victor Stinner <vstinner@python.org>
* bpo-29844: Remove obsolete paragraph from Tools/msi/README.txt (GH-29141)Miss Islington (bot)2022-01-271-8/+3
| | | (cherry picked from commit 098a33f6a60ca2df88e03024ac9d8da507cfa5c8)
* bpo-46539: Pass status of special typeforms to forward references (GH-30926)Miss Islington (bot)2022-01-273-3/+18
| | | | | | | | | | | Previously this didn't matter because there weren't any valid code paths that could trigger a type check with a special form, but after the bug fix for `Annotated` wrapping special forms it's now possible to annotate something like `Annotated['ClassVar[int]', (3, 4)]`. This change would also be needed for proposed future changes, such as allowing `ClassVar` and `Final` to nest each other in dataclasses. (cherry picked from commit ced50051bb752a7c1e616f4b0c001f37f0354f32) Co-authored-by: Gregory Beauregard <greg@greg.red>