summaryrefslogtreecommitdiffstats
path: root/Misc
Commit message (Collapse)AuthorAgeFilesLines
...
* gh-101759: Update macOS installer to SQLite 3.40.1 (GH-101761)Miss Islington (bot)2023-02-101-0/+1
| | | | | (cherry picked from commit d40a23c0a11060ba7fa076d50980c18a11a13a40) Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
* gh-101726: Update the OpenSSL version to 1.1.1t (GH-101727)Steve Dower2023-02-091-0/+4
| | | | | | | | Fixes CVE-2023-0286 (High) and a couple of Medium security issues. https://www.openssl.org/news/secadv/20230207.txt --------- Co-authored-by: Gregory P. Smith <greg@krypto.org>
* Apply suggestions from code reviewMiss Islington (bot)2023-02-081-0/+3
|
* gh-101614: Don't treat python3_d.dll as a Python DLL when checking extension ↵Miss Islington (bot)2023-02-081-0/+1
| | | | | | | modules for incompatibility (GH-101615) (cherry picked from commit 3a88de7a0af00872d9d57e1d98bc2f035cb15a1c) Co-authored-by: David Hewitt <1939362+davidhewitt@users.noreply.github.com>
* [3.10] gh-97725: Fix documentation for the default file of ↵Oleg Iarygin2023-02-081-0/+2
| | | | | `asyncio.Task.print_stack` (#101652) (#101654) (cherry picked from commit f87f6e23964d7a4c38b655089cda65538a24ec36)
* Python 3.10.10v3.10.10Pablo Galindo2023-02-0740-70/+400
|
* gh-101372: Fix unicodedata.is_normalized to properly handle the UCD 3… ↵Miss Islington (bot)2023-02-061-0/+2
| | | | | | | (gh-101388) (cherry picked from commit 9ef7e75434587fc8f167d73eee5dd9bdca62714b) Co-authored-by: Dong-hee Na <donghee.na@python.org>
* gh-101334: Don't force USTAR format in test_tarfile. (GH-101572)Miss Islington (bot)2023-02-051-0/+1
| | | | | | | | That causes the test to fail when run using a high UID as that ancient format cannot represent it. The current default (PAX) and the old default (GNU) both support high UIDs. (cherry picked from commit ffcb8220d7a8c8ca169b467d9e4a752874f68af2) Co-authored-by: Gregory P. Smith <greg@krypto.org>
* [3.10] [3.11] gh-99952: fix refcount issues in ctypes.Structure from_param() ↵Miss Islington (bot)2023-02-041-0/+2
| | | | | | | | | | | | | | | | result (GH-101339) (#101340) [3.11] gh-99952: [ctypes] fix refcount issues in from_param() result. (GH-100169) Fixes a reference counting issue with `ctypes.Structure` when a `from_param()` method call is used and the structure size is larger than a C pointer `sizeof(void*)`. This problem existed for a very long time, but became more apparent in 3.8+ by change likely due to garbage collection cleanup timing changes.. (cherry picked from commit dfad678d7024ab86d265d84ed45999e031a03691) (cherry picked from commit fa7c37af4936abfe34aa261d6ed9703bc5842ad4) Co-authored-by: Gregory P. Smith <greg@krypto.org> Co-authored-by: Yukihiro Nakadaira <yukihiro.nakadaira@gmail.com> Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
* gh-101522: Allow overriding Windows dependencies versions and paths using ↵Steve Dower2023-02-031-0/+2
| | | | MSBuild properties (GH-101523)
* [3.10] gh-101400: Fix incorrect lineno in exception message on contin… ↵Dong-hee Na2023-01-311-0/+2
| | | | (gh-101448)
* gh-100795: Don't call freeaddrinfo on failure. (GH-101252)Miss Islington (bot)2023-01-231-0/+3
| | | | | | | | | | | | When getaddrinfo returns an error, the output pointer is in an unknown state Don't call freeaddrinfo on it. See the issue for discussion and details with links to reasoning. _Most_ libc getaddrinfo implementations never modify the output pointer unless they are returning success. (cherry picked from commit b724ac2fe7fbb5a7a33d639cad8e748f17b325e0) Co-authored-by: Gregory P. Smith <greg@krypto.org> Co-authored-by: Sergey G. Brester <github@sebres.de> Co-authored-by: Oleg Iarygin <dralife@yandex.ru>
* [3.10] gh-96192: fix os.ismount() to use a path that is str or bytes ↵Miss Islington (bot)2023-01-221-0/+1
| | | | | | | | | | | (GH-96194) (#99456) gh-96192: fix os.ismount() to use a path that is str or bytes (GH-96194) (cherry picked from commit 367f552129341796d75fc4cc40edb49405235a2b) Signed-off-by: Christoph Anton Mitterer <mail@christoph.anton.mitterer.name> Co-authored-by: Christoph Anton Mitterer <calestyo@scientia.org> Co-authored-by: Eryk Sun <eryksun@gmail.com> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* gh-101143: Remove references to `TimerHandle` from ↵Miss Islington (bot)2023-01-211-0/+2
| | | | | | | | `asyncio.base_events.BaseEventLoop._add_callback` (GH-101197) (cherry picked from commit 9e947675ae3dc32f5863e5ed3022301cf7fd79b4) Co-authored-by: J. Nick Koston <nick@koston.org> Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
* [3.10] gh-95778: add doc missing in some places (GH-100627). (#101065)Éric2023-01-211-0/+9
| | | | | (cherry picked from commit 46521826cb1883e29e4640f94089dd92c57efc5b) Co-authored-by: Éric <earaujo@caravan.coop>
* [3.10] gh-101144: Allow zipfile.Path .open & .read_text encoding to be ↵Miss Islington (bot)2023-01-201-0/+4
| | | | | | | | | | | | | | positional (GH-101179) (GH-101182) The zipfile.Path open() and read_text() encoding parameter can be supplied as a positional argument without causing a TypeError again. 3.10.0b1 included a regression that made it keyword only. Documentation update included as users writing code to be compatible with a wide range of versions will need to consider this for some time.. (cherry picked from commit 5927013e47a8c63b70e104152351f3447baa819c) (cherry picked from commit efe3a389cabd7295e6e0938767cdc4055c871e3c) Co-authored-by: Gregory P. Smith <greg@krypto.org> [Google] Automerge-Triggered-By: GH:gpshead
* gh-82052: Don't send partial UTF-8 sequences to the Windows API (GH-101103)Miss Islington (bot)2023-01-171-0/+1
| | | | | | Don't send partial UTF-8 sequences to the Windows API (cherry picked from commit f34176b77f222726d901595968a4b44456186da4) Co-authored-by: Paul Moore <p.f.moore@gmail.com>
* [3.10] gh-101046: Fix a potential memory leak in the parser when raising ↵Pablo Galindo Salgado2023-01-161-0/+2
| | | | | MemoryError (GH-101051). (#101086) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* [3.10] GH-100942: Fix incorrect cast in property_copy(). (GH-100965). (#101009)Nikita Sobolev2023-01-151-0/+2
| | | | | (cherry picked from commit 94fc7706b7bc3d57cdd6d15bf8e8c4499ae53a69) Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
* [3.10] GH-100573: Fix server hang caused by os.stat() on named pipe ↵Miss Islington (bot)2023-01-131-0/+1
| | | | | | (Windows) (GH-100959) (#101020) (cherry picked from commit 1bc7a736837272b15ad3a7aa472977bc720d1033)
* [3.10] gh-100160: Remove any deprecation warnings in ↵Serhiy Storchaka2023-01-131-0/+2
| | | | | | | | | asyncio.get_event_loop() (GH-100412) (GH-100970) Some deprecation warnings will reappear (in a slightly different form) in 3.12. Co-authored-by: Guido van Rossum <guido@python.org>. (cherry picked from commit 1b2459dc64b1c3eea89312ea9bf422f8d7c75bb2)
* [3.10] GH-100892: Fix race in clearing `threading.local` (GH-100922). (#100938)Kumar Aditya2023-01-111-0/+1
| | | | | (cherry picked from commit 762745a124cbc297cf2fe6f3ec9ca1840bb2e873) Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
* gh-100180: Update macOS installer to OpenSSL 1.1.1s (GH-100908)Miss Islington (bot)2023-01-101-0/+1
| | | | | (cherry picked from commit 57a5259a438c717755fc667fcbedb515ef8e0c85) Co-authored-by: Ned Deily <nad@python.org>
* gh-100180: Update Windows installer to OpenSSL 1.1.1s (GH-100903)Steve Dower2023-01-101-0/+1
|
* GH-81061: Fix refcount issue when returning `None` from a `ctypes.py_object` ↵Miss Islington (bot)2023-01-091-0/+2
| | | | | | | callback (GH-13364) (cherry picked from commit 837ba052672d1a5f85a46c1b6d4b6e7d192af6f3) Co-authored-by: dgelessus <dgelessus@users.noreply.github.com>
* [3.10] gh-100689: Revert "bpo-41798: pyexpat: Allocate the expat_CAPI on the ↵Miss Islington (bot)2023-01-081-0/+1
| | | | | | | | | | | | | | heap memory (GH-24061)" (GH-100745) (#100847) gh-100689: Revert "bpo-41798: pyexpat: Allocate the expat_CAPI on the heap memory (GH-24061)" (GH-100745) * gh-100689: Revert "bpo-41798: pyexpat: Allocate the expat_CAPI on the heap memory (GH-24061)" This reverts commit 7c83eaa536d2f436ae46211ca48692f576c732f0. (cherry picked from commit b034fd3e5926c63a681a211087b4c666834c7525) Co-authored-by: Nikita Sobolev <mail@sobolevn.me> Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.10] gh-100776: Fix misleading default value in help(input) (GH-100788) ↵Shantanu2023-01-081-0/+1
| | | | | | | (#100842) (cherry picked from commit a2141882f259e21bb09fa0b7cba8142147b9e3d7) Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
* [3.10] gh-90104: avoid RecursionError on recursive dataclass field repr ↵Carl Meyer2023-01-061-0/+1
| | | | | | | | | (gh-100756) (GH-100785) Avoid RecursionError on recursive dataclass field repr (cherry picked from commit 0a7936a38f0bab1619ee9fe257880a51c9d839d5) Automerge-Triggered-By: GH:ericvsmith
* gh-100739: Respect mock spec when checking for unsafe prefixes (GH-100740)Miss Islington (bot)2023-01-041-0/+1
| | | | | | (cherry picked from commit 7f1eefc6f4843f0fca60308f557a71af11d18a53) Co-authored-by: Christian Klein <167265+cklein@users.noreply.github.com> Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* GH-86508: skip binding to local addresses of different family in ↵Miss Islington (bot)2023-01-041-0/+1
| | | | | | | `asyncio.open_connection` (GH-100615) (cherry picked from commit ba8dcdbcab5fd9989be6c9a51002394e782c463c) Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
* gh-100616: Document 'attr' parameter for window.vline() in curses module ↵Miss Islington (bot)2022-12-301-0/+2
| | | | | | | | (GH-24961) (cherry picked from commit f4fcfdf8c593611f98b9358cc0c5604c15306465) Co-authored-by: mathieui <mathieui@users.noreply.github.com> Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
* [3.10] gh-100287: Fix unittest.mock.seal with AsyncMock (GH-100496) (#100508)Shantanu2022-12-241-0/+1
| | | | | (cherry picked from commit e4b43ebb3afbd231a4e5630e7e358aa3093f8677) Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
* gh-100472: Fix docs claim that compileall parameters could be bytes (GH-100473)Miss Islington (bot)2022-12-241-0/+1
| | | | | (cherry picked from commit 046cbc2080360b0b0bbe6ea7554045a6bbbd94bd) Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
* [3.10] gh-100474: Fix handling of dirs named index.html in http.server ↵Miss Islington (bot)2022-12-241-0/+2
| | | | | (GH-100504) Co-authored-by: James Frost <git@frost.cx>
* bpo-40447: accept all path-like objects in compileall.compile_file (GH-19883)Miss Islington (bot)2022-12-231-0/+2
| | | | | | | | | (cherry picked from commit 1ecfd1ebf1f53ef6ac82085b25ed09952b470d4e) Co-authored-by: Filipe Laíns <lains@riseup.net> Signed-off-by: Filipe Laíns <lains@archlinux.org> Signed-off-by: Filipe Laíns <lains@riseup.net> Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com> Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
* [3.10] gh-76963: PEP3118 itemsize of an empty ctypes array should not be 0 ↵Miss Islington (bot)2022-12-231-0/+3
| | | | | | | | | | (GH-5576) (#100451) gh-76963: PEP3118 itemsize of an empty ctypes array should not be 0 (GH-5576) The itemsize returned in a memoryview of a ctypes array is now computed from the item type, instead of dividing the total size by the length and assuming that the length is not zero. (cherry picked from commit 84bc6a4f25fcf467813ee12b74118f7b1b54e285) Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
* gh-100374: Fixed a bug in socket.getfqdn() (gh-100375)Miss Islington (bot)2022-12-211-0/+1
| | | | | (cherry picked from commit 12be23cf3c1301be2c6b8fd4cb2cd35a567d2ea2) Co-authored-by: Dominic Socular <BBH@awsl.rip>
* [3.10] gh-99240: Reset pointer to NULL when the pointed memory is freed in ↵colorfulappl2022-12-211-0/+2
| | | | | | | | argument parsing (GH-99890) (#100386) (cherry picked from commit efbb1eb9f54cad4f7bf5df03eed3a6aba02d99f4) Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
* [3.10] gh-85267: Improvements to inspect.signature __text_signature__ ↵Shantanu2022-12-211-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | handling (GH-98796) (#100393) This makes a couple related changes to inspect.signature's behaviour when parsing a signature from `__text_signature__`. First, `inspect.signature` is documented as only raising ValueError or TypeError. However, in some cases, we could raise RuntimeError. This PR changes that, thereby fixing GH-83685. (Note that the new ValueErrors in RewriteSymbolics are caught and then reraised with a message) Second, `inspect.signature` could randomly drop parameters that it didn't understand (corresponding to `return None` in the `p` function). This is the core issue in GH-85267. I think this is very surprising behaviour and it seems better to fail outright. Third, adding this new failure broke a couple tests. To fix them (and to e.g. allow `inspect.signature(select.epoll.register)` as in GH-85267), I add constant folding of a couple binary operations to RewriteSymbolics. (There's some discussion of making signature expression evaluation arbitrary powerful in GH-68155. I think that's out of scope. The additional constant folding here is pretty straightforward, useful, and not much of a slippery slope) Fourth, while GH-85267 is incorrect about the cause of the issue, it turns out if you had consecutive newlines in __text_signature__, you'd get `tokenize.TokenError`. Finally, the `if name is invalid:` code path was dead, since `parse_name` never returned `invalid`.. (cherry picked from commit 79311cbfe718f17c89bab67d7f89da3931bfa2ac) Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
* [3.10] gh-99240: Fix double-free bug in Argument Clinic str_converter ↵colorfulappl2022-12-201-0/+2
| | | | | | | generated code (GH-99241) (#100353) (cherry picked from commit 8dbe08eb7c807f484fe9870f5b7f5ae2881fd966) Fix double-free bug mentioned at GH-99240, by moving memory clean up out of "exit" label.
* [3.10] gh-96002: Add functional test for Argument Clinic (GH-96178) (#100232)colorfulappl2022-12-171-0/+1
| | | | | | (cherry picked from commit c450c8c9ed6e420025f39d0e4850a79f8160cdcd) Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
* bpo-43984: Allow winreg.SetValueEx to set -1 without treating it as an error ↵Miss Islington (bot)2022-12-091-0/+3
| | | | | | | (GH-25775) (cherry picked from commit a29a7b9b786d6b928c4bb4e6e683a3788e3ab1c1) Co-authored-by: Shreyan Avigyan <shreyan.avigyan@gmail.com>
* [3.10] bpo-44817: Ignore additional errors in ntpath.realpath (GH-27574) ↵Miss Islington (bot)2022-12-081-0/+2
| | | | | | | (GH-100023) (cherry picked from commit 124ecd657646f808d1d3282c37ee19aae6bcb47f) Co-authored-by: Michael Förderer <michael.foerderer@gmx.de>
* gh-98778: Update HTTPError to initialize properly even if fp is None (gh-99966)Miss Islington (bot)2022-12-081-0/+2
| | | | | (cherry picked from commit dc8a86893df37e137cfe992e95e7d66cd68e9eaf) Co-authored-by: Dong-hee Na <donghee.na@python.org>
* gh-83035: handle decorator with nested parens in inspect.getsource (GH-99654)Miss Islington (bot)2022-12-071-0/+1
| | | | | (cherry picked from commit 68e41295b8611a990de68f15c89f1eb3dea51867) Co-authored-by: Carl Meyer <carl@oddbird.net>
* [3.10] gh-100050: Fix an assertion error when raising unclosed parenthesis ↵Pablo Galindo Salgado2022-12-071-0/+2
| | | | | | | | errors in the tokenizer (GH-100065) (#100073) Automerge-Triggered-By: GH:pablogsal. (cherry picked from commit 97e7004cfe48305bcd642c653b406dc7470e196d) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* Python 3.10.9v3.10.9Pablo Galindo2022-12-0664-139/+656
|
* [3.10] gh-93453: Only emit deprecation warning in asyncio.get_event_loop ↵Łukasz Langa2022-12-061-0/+3
| | | | | | | | | | | when a new event loop is created (#100059) It no longer emits a deprecation warning if the current event loop was set. (cherry picked from commit 3fae04b10e2655a20a3aadb5e0d63e87206d0c67) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* gh-100001: Also escape \s in http.server log messages. (GH-100038)Miss Islington (bot)2022-12-051-0/+5
| | | | | | | | | | Also \ escape \s in the http.server BaseHTTPRequestHandler.log_message so that it is technically possible to parse the line and reconstruct what the original data was. Without this a \xHH is ambiguious as to if it is a hex replacement we put in or the characters r"\x" came through in the original request line. (cherry picked from commit 7e29398407dbd53b714702abb89aa2fd7baca48a) Co-authored-by: Gregory P. Smith <greg@krypto.org>
* gh-100001: Omit control characters in http.server stderr logs. (GH-100002)Miss Islington (bot)2022-12-051-0/+6
| | | | | | Replace control characters in http.server.BaseHTTPRequestHandler.log_message with an escaped \xHH sequence to avoid causing problems for the terminal the output is printed to. (cherry picked from commit d8ab0a4dfa48f881b4ac9ab857d2e9de42f72828) Co-authored-by: Gregory P. Smith <greg@krypto.org>